ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
PHHepMCGenEventMap is collection of HEPMC events input into this simulation map of embedding ID -> PHHepMCGenEvent positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background. More...
#include <coresoftware/blob/master/generators/phhepmc/PHHepMCGenEventMap.h>
Public Types | |
typedef std::map< int, PHHepMCGenEvent * > | HepMCGenEventMap |
typedef std::map< int, PHHepMCGenEvent * > ::const_iterator | ConstIter |
typedef std::map< int, PHHepMCGenEvent * >::iterator | Iter |
typedef std::map< int, PHHepMCGenEvent * > ::const_reverse_iterator | ConstReverseIter |
typedef std::map< int, PHHepMCGenEvent * > ::reverse_iterator | ReverseIter |
Public Member Functions | |
PHHepMCGenEventMap ()=default | |
PHHepMCGenEventMap (const PHHepMCGenEventMap &eventmap) | |
PHHepMCGenEventMap & | operator= (const PHHepMCGenEventMap &eventmap) |
~PHHepMCGenEventMap () override | |
void | identify (std::ostream &os=std::cout) const override |
void | Reset () override |
Clear Event. | |
int | isValid () const override |
isValid returns non zero if object contains vailid data | |
PHHepMCGenEventMap * | CloneMe () const override |
Virtual copy constructor. | |
bool | empty () const |
container service | |
size_t | size () const |
size_t | count (int idkey) const |
void | clear () |
const PHHepMCGenEvent * | get (int idkey) const |
fetch event | |
PHHepMCGenEvent * | get (int idkey) |
PHHepMCGenEvent * | insert (const PHHepMCGenEvent *event) |
insert a event of interest, e.g. jetty event from pythia | |
PHHepMCGenEvent * | insert_active_event (const PHHepMCGenEvent *event=nullptr) |
insert a event of interest, e.g. jetty event from pythia | |
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, which is usually the primary Au+Au collision in the case of HI embedding | |
PHHepMCGenEvent * | insert_event (const int embedding_id, const PHHepMCGenEvent *event=nullptr) |
insert a event with specific embedding ID | |
size_t | erase (int idkey) |
ConstIter | find (unsigned int idkey) const |
find | |
Iter | find (int idkey) |
ConstIter | begin () const |
iterator from lowest ID to highest, i.e. background to signal | |
ConstIter | end () const |
Iter | begin () |
Iter | end () |
ConstReverseIter | rbegin () const |
iterator from lowest ID to highest, i.e. signal to background | |
ConstReverseIter | rend () const |
ReverseIter | rbegin () |
ReverseIter | rend () |
const HepMCGenEventMap & | get_map () const |
for c++11 range-based for loop | |
HepMCGenEventMap & | get_map () |
Public Member Functions inherited from PHObject | |
PHObject () | |
ctor | |
~PHObject () override | |
dtor | |
virtual PHObject * | clone () const final |
PHObject * | Clone (const char *newname="") const final |
void | Copy (TObject &object) const final |
virtual int | isValid (const float) const |
virtual int | isValid (const double) const |
virtual int | isValid (const int) const |
virtual int | isValid (const unsigned int) const |
virtual int | isImplemented (const float f) const |
virtual int | isImplemented (const double f) const |
virtual int | isImplemented (const int i) const |
virtual int | isImplemented (const unsigned int i) const |
virtual int | Integrate () const |
virtual int | Integrate (PHObject *) |
virtual void | CopyFrom (const PHObject *obj) |
Private Member Functions | |
ClassDefOverride (PHHepMCGenEventMap, 4) | |
Private Attributes | |
HepMCGenEventMap | _map |
PHHepMCGenEventMap is collection of HEPMC events input into this simulation map of embedding ID -> PHHepMCGenEvent positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background.
Definition at line 17 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 17 of file PHHepMCGenEventMap.h
typedef std::map<int, PHHepMCGenEvent*>::const_iterator PHHepMCGenEventMap::ConstIter |
Definition at line 25 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 25 of file PHHepMCGenEventMap.h
typedef std::map<int, PHHepMCGenEvent*>::const_reverse_iterator PHHepMCGenEventMap::ConstReverseIter |
Definition at line 27 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 27 of file PHHepMCGenEventMap.h
typedef std::map<int, PHHepMCGenEvent*> PHHepMCGenEventMap::HepMCGenEventMap |
map of embedding ID -> PHHepMCGenEvent positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background
Definition at line 24 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 24 of file PHHepMCGenEventMap.h
typedef std::map<int, PHHepMCGenEvent*>::iterator PHHepMCGenEventMap::Iter |
Definition at line 26 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 26 of file PHHepMCGenEventMap.h
typedef std::map<int, PHHepMCGenEvent*>::reverse_iterator PHHepMCGenEventMap::ReverseIter |
Definition at line 28 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 28 of file PHHepMCGenEventMap.h
|
default |
PHHepMCGenEventMap::PHHepMCGenEventMap | ( | const PHHepMCGenEventMap & | eventmap | ) |
Definition at line 12 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 12 of file PHHepMCGenEventMap.cc
References _map, and get_map().
|
override |
Definition at line 26 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 26 of file PHHepMCGenEventMap.cc
References Reset().
|
inline |
iterator from lowest ID to highest, i.e. background to signal
Definition at line 68 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 68 of file PHHepMCGenEventMap.h
References _map.
Referenced by FermimotionAfterburner::AddpF(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), AnaTutorialECCE::getHEPMCTruth(), AnaTutorial::getHEPMCTruth(), eIDMLInterface::getHEPMCTruth(), DumpPHHepMCGenEventMap::process_Node(), and Fun4AllHepMCPileupInputManager::PushBackEvents().
|
inline |
Definition at line 70 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 70 of file PHHepMCGenEventMap.h
References _map.
|
private |
|
inline |
Definition at line 44 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 44 of file PHHepMCGenEventMap.h
References Reset().
|
inlineoverridevirtual |
Virtual copy constructor.
Reimplemented from PHObject.
Definition at line 39 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 39 of file PHHepMCGenEventMap.h
References PHHepMCGenEventMap().
|
inline |
Definition at line 43 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 43 of file PHHepMCGenEventMap.h
References _map.
|
inline |
container service
Definition at line 41 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 41 of file PHHepMCGenEventMap.h
References _map.
|
inline |
Definition at line 69 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 69 of file PHHepMCGenEventMap.h
References _map.
Referenced by FermimotionAfterburner::AddpF(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), AnaTutorialECCE::getHEPMCTruth(), AnaTutorial::getHEPMCTruth(), eIDMLInterface::getHEPMCTruth(), DumpPHHepMCGenEventMap::process_Node(), and Fun4AllHepMCPileupInputManager::PushBackEvents().
|
inline |
Definition at line 71 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 71 of file PHHepMCGenEventMap.h
References _map.
|
inline |
Definition at line 58 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 58 of file PHHepMCGenEventMap.h
References _map.
find
Definition at line 65 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 65 of file PHHepMCGenEventMap.h
References _map.
Referenced by Fun4AllOscarInputManager::ConvertFromOscar(), and Fun4AllHepMCInputManager::run().
Definition at line 66 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 66 of file PHHepMCGenEventMap.h
References _map.
const PHHepMCGenEvent * PHHepMCGenEventMap::get | ( | int | idkey | ) | const |
fetch event
Definition at line 57 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 57 of file PHHepMCGenEventMap.cc
References _map.
Referenced by DecayFinder::findDecay(), KFParticle_truthAndDetTools::getHepMCInfo(), PHHepMCGenHelper::HepMC2Lab_boost_rotation_translation(), QAG4SimulationKFParticle::makeHepLV(), PHHepMCParticleSelectorDecayProductChain::process_event(), JetHepMCLoader::process_event(), and Fun4AllHepMCOutputManager::Write().
PHHepMCGenEvent * PHHepMCGenEventMap::get | ( | int | idkey | ) |
Definition at line 64 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 64 of file PHHepMCGenEventMap.cc
References _map.
|
inline |
for c++11 range-based for loop
Definition at line 79 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 79 of file PHHepMCGenEventMap.h
References _map.
Referenced by operator=(), PHHepMCGenEventMap(), and PHG4ScoringManager::process_event().
|
inline |
Definition at line 80 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 80 of file PHHepMCGenEventMap.h
References _map.
|
overridevirtual |
identify Function from PHObject
os | Output Stream |
Reimplemented from PHObject.
Definition at line 43 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 43 of file PHHepMCGenEventMap.cc
References _map.
Referenced by PHHepMCGenHelper::HepMC2Lab_boost_rotation_translation(), and insert_event().
|
inline |
insert a event of interest, e.g. jetty event from pythia
Definition at line 50 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 50 of file PHHepMCGenEventMap.h
References insert_active_event().
PHHepMCGenEvent * PHHepMCGenEventMap::insert_active_event | ( | const PHHepMCGenEvent * | event = nullptr | ) |
insert a event of interest, e.g. jetty event from pythia
Definition at line 71 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 71 of file PHHepMCGenEventMap.cc
References _map, and PHHepMCGenEvent::set_embedding_id().
Referenced by insert(), and Fun4AllHepMCPileupInputManager::InsertEvent().
PHHepMCGenEvent * PHHepMCGenEventMap::insert_background_event | ( | const PHHepMCGenEvent * | event = nullptr | ) |
insert a event of background, e.g. Au+Au collision background. First event has embedding ID = 0, which is usually the primary Au+Au collision in the case of HI embedding
Definition at line 80 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 80 of file PHHepMCGenEventMap.cc
References _map, and PHHepMCGenEvent::set_embedding_id().
Referenced by Fun4AllDstPileupMerger::copy_background_event(), and Fun4AllHepMCPileupInputManager::InsertEvent().
PHHepMCGenEvent * PHHepMCGenEventMap::insert_event | ( | const int | embedding_id, |
const PHHepMCGenEvent * | event = nullptr |
||
) |
insert a event with specific embedding ID
Definition at line 89 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 89 of file PHHepMCGenEventMap.cc
References _map, identify(), and PHHepMCGenEvent::set_embedding_id().
Referenced by PHHepMCGenHelper::insert_event().
|
inlineoverridevirtual |
isValid returns non zero if object contains vailid data
Reimplemented from PHObject.
Definition at line 38 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 38 of file PHHepMCGenEventMap.h
PHHepMCGenEventMap & PHHepMCGenEventMap::operator= | ( | const PHHepMCGenEventMap & | eventmap | ) |
Definition at line 18 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 18 of file PHHepMCGenEventMap.cc
References _map, get_map(), and Reset().
|
inline |
iterator from lowest ID to highest, i.e. signal to background
Definition at line 73 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 73 of file PHHepMCGenEventMap.h
References _map.
Referenced by HepMCFlowAfterBurner::process_event(), HepMCNodeReader::process_event(), and PHG4ParticleGeneratorBase::ReuseExistingVertex().
|
inline |
Definition at line 75 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 75 of file PHHepMCGenEventMap.h
References _map.
|
inline |
Definition at line 74 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 74 of file PHHepMCGenEventMap.h
References _map.
Referenced by HepMCFlowAfterBurner::process_event(), HepMCNodeReader::process_event(), and PHG4ParticleGeneratorBase::ReuseExistingVertex().
|
inline |
Definition at line 76 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 76 of file PHHepMCGenEventMap.h
References _map.
|
overridevirtual |
Clear Event.
Reimplemented from PHObject.
Definition at line 31 of file PHHepMCGenEventMap.cc.
View newest version in sPHENIX GitHub at line 31 of file PHHepMCGenEventMap.cc
References _map.
Referenced by clear(), operator=(), and ~PHHepMCGenEventMap().
|
inline |
Definition at line 42 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 42 of file PHHepMCGenEventMap.h
References _map.
Referenced by TPCIntegratedCharge::process_event(), TPCDataStreamEmulator::process_event(), PHG4ScoringManager::process_event(), and DumpPHHepMCGenEventMap::process_Node().
|
private |
Definition at line 83 of file PHHepMCGenEventMap.h.
View newest version in sPHENIX GitHub at line 83 of file PHHepMCGenEventMap.h
Referenced by begin(), count(), empty(), end(), erase(), find(), get(), get_map(), identify(), insert_active_event(), insert_background_event(), insert_event(), operator=(), PHHepMCGenEventMap(), rbegin(), rend(), Reset(), and size().