1 #ifndef __PHHEPMCGENEVENTMAP_H__
2 #define __PHHEPMCGENEVENTMAP_H__
22 typedef std::map<int, PHHepMCGenEvent*>::const_iterator
ConstIter;
23 typedef std::map<int, PHHepMCGenEvent*>::iterator
Iter;
25 typedef std::map<int, PHHepMCGenEvent*>::reverse_iterator
ReverseIter;
33 void identify(std::ostream& os = std::cout)
const;
38 bool empty()
const {
return _map.empty(); }
39 size_t size()
const {
return _map.size(); }
40 size_t count(
int idkey)
const {
return _map.count(idkey); }
58 return _map.erase(idkey);
63 Iter find(
int idkey) {
return _map.find(idkey); }
PHHepMCGenEventMap is collection of HEPMC events input into this simulation map of embedding ID -> PH...
bool empty() const
container service
const HepMCGenEventMap & get_map() const
for c++11 range-based for loop
PHHepMCGenEventMap * Clone(const char *newname="") const
HepMCGenEventMap & get_map()
ConstReverseIter rbegin() const
iterator from lowest ID to highest, i.e. signal to background
size_t count(int idkey) const
ConstIter begin() const
iterator from lowest ID to highest, i.e. background to signal
int isValid() const
isValid returns non zero if object contains vailid data
ConstIter find(unsigned int idkey) const
find
std::map< int, PHHepMCGenEvent * >::reverse_iterator ReverseIter
PHHepMCGenEventMap & operator=(const PHHepMCGenEventMap &eventmap)
std::map< int, PHHepMCGenEvent * >::const_iterator ConstIter
ConstReverseIter rend() const
std::map< int, PHHepMCGenEvent * >::const_reverse_iterator ConstReverseIter
std::map< int, PHHepMCGenEvent * >::iterator Iter
PHHepMCGenEvent * insert(const PHHepMCGenEvent *event)
insert a event of interest, e.g. jetty event from pythia
virtual ~PHHepMCGenEventMap()
void identify(std::ostream &os=std::cout) const
PHHepMCGenEvent * insert_event(const int embedding_id, const PHHepMCGenEvent *event=nullptr)
insert a event with specific embedding ID
PHHepMCGenEvent * insert_active_event(const PHHepMCGenEvent *event=nullptr)
insert a event of interest, e.g. jetty event from pythia
std::map< int, PHHepMCGenEvent * > HepMCGenEventMap
PHHepMCGenEvent * insert_background_event(const PHHepMCGenEvent *event=nullptr)
insert a event of background, e.g. Au+Au collision background. First event has embedding ID = 0...