ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHHepMCGenEventMap Class Reference

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>

+ Inheritance diagram for PHHepMCGenEventMap:
+ Collaboration diagram for PHHepMCGenEventMap:

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)
 
PHHepMCGenEventMapoperator= (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
 
PHHepMCGenEventMapCloneMe () const override
 Virtual copy constructor.
 
bool empty () const
 container service
 
size_t size () const
 
size_t count (int idkey) const
 
void clear ()
 
const PHHepMCGenEventget (int idkey) const
 fetch event
 
PHHepMCGenEventget (int idkey)
 
PHHepMCGenEventinsert (const PHHepMCGenEvent *event)
 insert a event of interest, e.g. jetty event from pythia
 
PHHepMCGenEventinsert_active_event (const PHHepMCGenEvent *event=nullptr)
 insert a event of interest, e.g. jetty event from pythia
 
PHHepMCGenEventinsert_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
 
PHHepMCGenEventinsert_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 HepMCGenEventMapget_map () const
 for c++11 range-based for loop
 
HepMCGenEventMapget_map ()
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectclone () const final
 
PHObjectClone (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
 

Detailed Description

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

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

PHHepMCGenEventMap::PHHepMCGenEventMap ( )
default

Referenced by CloneMe().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

PHHepMCGenEventMap::~PHHepMCGenEventMap ( )
override

Definition at line 26 of file PHHepMCGenEventMap.cc.

View newest version in sPHENIX GitHub at line 26 of file PHHepMCGenEventMap.cc

References Reset().

+ Here is the call graph for this function:

Member Function Documentation

ConstIter PHHepMCGenEventMap::begin ( ) const
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().

+ Here is the caller graph for this function:

Iter PHHepMCGenEventMap::begin ( )
inline

Definition at line 70 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 70 of file PHHepMCGenEventMap.h

References _map.

PHHepMCGenEventMap::ClassDefOverride ( PHHepMCGenEventMap  ,
 
)
private
void PHHepMCGenEventMap::clear ( )
inline

Definition at line 44 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 44 of file PHHepMCGenEventMap.h

References Reset().

+ Here is the call graph for this function:

PHHepMCGenEventMap* PHHepMCGenEventMap::CloneMe ( ) const
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().

+ Here is the call graph for this function:

size_t PHHepMCGenEventMap::count ( int  idkey) const
inline

Definition at line 43 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 43 of file PHHepMCGenEventMap.h

References _map.

bool PHHepMCGenEventMap::empty ( ) const
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.

ConstIter PHHepMCGenEventMap::end ( ) const
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().

+ Here is the caller graph for this function:

Iter PHHepMCGenEventMap::end ( )
inline

Definition at line 71 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 71 of file PHHepMCGenEventMap.h

References _map.

size_t PHHepMCGenEventMap::erase ( int  idkey)
inline

Definition at line 58 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 58 of file PHHepMCGenEventMap.h

References _map.

ConstIter PHHepMCGenEventMap::find ( unsigned int  idkey) const
inline

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().

+ Here is the caller graph for this function:

Iter PHHepMCGenEventMap::find ( int  idkey)
inline

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().

+ Here is the caller graph for this function:

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.

const HepMCGenEventMap& PHHepMCGenEventMap::get_map ( ) const
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().

+ Here is the caller graph for this function:

HepMCGenEventMap& PHHepMCGenEventMap::get_map ( )
inline

Definition at line 80 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 80 of file PHHepMCGenEventMap.h

References _map.

void PHHepMCGenEventMap::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput 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().

+ Here is the caller graph for this function:

PHHepMCGenEvent* PHHepMCGenEventMap::insert ( const PHHepMCGenEvent 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().

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHHepMCGenEventMap::isValid ( ) const
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().

+ Here is the call graph for this function:

ConstReverseIter PHHepMCGenEventMap::rbegin ( ) const
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().

+ Here is the caller graph for this function:

ReverseIter PHHepMCGenEventMap::rbegin ( )
inline

Definition at line 75 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 75 of file PHHepMCGenEventMap.h

References _map.

ConstReverseIter PHHepMCGenEventMap::rend ( ) const
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().

+ Here is the caller graph for this function:

ReverseIter PHHepMCGenEventMap::rend ( )
inline

Definition at line 76 of file PHHepMCGenEventMap.h.

View newest version in sPHENIX GitHub at line 76 of file PHHepMCGenEventMap.h

References _map.

void PHHepMCGenEventMap::Reset ( )
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().

+ Here is the caller graph for this function:

size_t PHHepMCGenEventMap::size ( void  ) const
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().

+ Here is the caller graph for this function:

Member Data Documentation

HepMCGenEventMap PHHepMCGenEventMap::_map
private

The documentation for this class was generated from the following files: