|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Manages access to stored track information used for MCParticle output. More...
#include <TrackManager.hh>
Public Member Functions | |
| TrackManager () | |
| virtual | ~TrackManager () |
| TrackSummary * | findTrackSummary (G4int trackID) |
| TrackSummaryVector * | getTrackSummaries () |
| TrackSummaryMap * | getTrackSummaryMap () |
| void | registerTrackSummary (TrackSummary *trackSummary) |
| void | reset () |
| void | saveTrackSummaries (const G4Event *event, LCEvent *lcevent) |
Public Member Functions inherited from Singleton< TrackManager > | |
| Singleton () | |
| ~Singleton () | |
| void | release () |
Public Member Functions inherited from Module | |
| virtual | ~Module () |
| virtual void | beginEvent (const G4Event *) |
| virtual void | beginRun (const G4Run *) |
| virtual void | cleanup () |
| bool | deleteOnExit () |
| virtual void | endEvent (const G4Event *) |
| virtual void | endRun (const G4Run *) |
| const std::string & | getName () const |
| ModuleStatus | getStatus () const |
| virtual void | initialize () |
| LogStream & | log () |
| virtual void | postTracking (const G4Track *) |
| virtual void | preTracking (const G4Track *) |
| virtual void | stepping (const G4Step *) |
Private Member Functions | |
| TrackSummary * | findFirstSavedAncestor (TrackSummary *trackSummary) |
Private Attributes | |
| TrackSummaryVector * | _trackSummaries |
| TrackSummaryMap * | _trackSummaryMap |
Additional Inherited Members | |
Public Types inherited from Module | |
| enum | ModuleStatus { eOkay = 0 , eNotInitialized = 1 , eBadState = 2 , eFatalError = 3 } |
Static Public Member Functions inherited from Singleton< TrackManager > | |
| static TrackManager * | instance () |
Public Attributes inherited from Module | |
| bool | m_deleteOnExit |
| LogStream * | m_log |
| std::string | m_name |
| ModuleStatus | m_status |
Protected Member Functions inherited from Module | |
| Module (const std::string &name, bool deleteOnExit=true, bool autoRegister=true) | |
Manages access to stored track information used for MCParticle output.
Definition at line 23 of file TrackManager.hh.
|
inline |
Class constructor.
Definition at line 30 of file TrackManager.hh.
References TrackManager::_trackSummaries, and TrackManager::_trackSummaryMap.
|
inlinevirtual |
Class destructor.
Definition at line 39 of file TrackManager.hh.
References TrackManager::_trackSummaries, and TrackManager::_trackSummaryMap.
|
private |
Find the first saved ancestor of a TrackSummary and associate it to the first saved MCParticle ancestor.
| [in] | trackSummary | The child TrackSummary. |
Definition at line 124 of file TrackManager.cc.
References TrackSummary::findParent(), TrackSummary::getMCParticle(), TrackSummary::getToBeSaved(), TrackSummary::getTrackID(), and Singleton< MCParticleManager >::instance().
Referenced by TrackManager::saveTrackSummaries().
|
inline |
Find a TrackSummary by track ID.
| [in] | trackID | The track ID. |
Definition at line 96 of file TrackManager.hh.
References TrackManager::_trackSummaryMap.
Referenced by TrackSummary::findParent().
|
inline |
Get the current collection of TrackSummary objects.
Definition at line 50 of file TrackManager.hh.
References TrackManager::_trackSummaries.
|
inline |
Get the map of TrackSummary objects to track IDs.
Definition at line 79 of file TrackManager.hh.
References TrackManager::_trackSummaryMap.
|
inline |
Map a TrackSummary to its track ID.
| [in] | trackSummary | The TrackSummary. |
Definition at line 87 of file TrackManager.hh.
References TrackSummary::getTrackID().
|
inlinevirtual |
Reset the state of this object by clearing data structures.
Reimplemented from Module.
Definition at line 64 of file TrackManager.hh.
References TrackManager::_trackSummaries, and TrackManager::_trackSummaryMap.
| void saveTrackSummaries | ( | const G4Event * | event, |
| LCEvent * | lcevent | ||
| ) |
Save the TrackSummary vector into a collection of MCParticles in an output LCEvent.
| [in] | event | The current G4Event. |
| [in,out] | lcevent | The output LCEvent. |
Definition at line 23 of file TrackManager.cc.
References TrackManager::_trackSummaries, TrackSummary::buildMCParticle(), LOG::debug, LOG::done, TrackManager::findFirstSavedAncestor(), TrackSummary::getMCParticle(), TrackSummary::getToBeSaved(), TrackSummary::getTrackID(), Singleton< LcioManager >::instance(), Singleton< MCParticleManager >::instance(), and Module::log().
|
private |
Definition at line 112 of file TrackManager.hh.
Referenced by TrackManager::TrackManager(), TrackManager::~TrackManager(), TrackManager::getTrackSummaries(), TrackManager::reset(), and TrackManager::saveTrackSummaries().
|
private |
Definition at line 113 of file TrackManager.hh.
Referenced by TrackManager::TrackManager(), TrackManager::~TrackManager(), TrackManager::findTrackSummary(), TrackManager::getTrackSummaryMap(), and TrackManager::reset().