#include <MCTruthEveIdCalculator.h>
Definition at line 89 of file MCTruthEveIdCalculator.h.
The ParticleList associated with the eve ID calculation.
Keep track of the previous eve IDs for the current ParticleList.
Definition at line 128 of file MCTruthEveIdCalculator.h.
truth::MCTruthEveIdCalculator::MCTruthEveIdCalculator |
( |
| ) |
|
truth::MCTruthEveIdCalculator::~MCTruthEveIdCalculator |
( |
| ) |
|
|
virtual |
int truth::MCTruthEveIdCalculator::CalculateEveId |
( |
const int |
trackID | ) |
|
The main eve ID calculation method. This is the reason why we use the Template Method for this class: because no matter what the core eve ID calculation is, we want to perform the following an additional task: The eve ID calculation can be lengthy. If the user is going through a LArVoxelList and trying to figuring out the eve ID associated with each voxel, this routine may be called many times. To save on time, keep the results of previous eve ID calculations for the current particle list. Only do the complete eve ID calculation if we haven't done it already for a given track ID.
Definition at line 49 of file MCTruthEveIdCalculator.cxx.
67 return (*search).second;
virtual int DoCalculateEveId(const int trackID)
m_previousList_t::const_iterator m_previousList_ptr
m_previousList_t m_previousList
int truth::MCTruthEveIdCalculator::DoCalculateEveId |
( |
const int |
trackID | ) |
|
|
protectedvirtual |
This is the core method to calculate the eve ID. If another class is going to override the default calculation, this the method that must be implemented.
Reimplemented in truth::MCTruthEmEveIdCalculator.
Definition at line 71 of file MCTruthEveIdCalculator.cxx.
81 if ( particleHistory.empty() ){
89 const simb::MCParticle* particle = particleHistory[0];
90 return particle->TrackId();
const MCTruthParticleList * m_particleList
Initialize this calculator for a particular ParticleList.
Definition at line 38 of file MCTruthEveIdCalculator.cxx.
const MCTruthParticleList * m_particleList
m_previousList_t m_previousList
Accessor: For which ParticleList does this calculator generate results?
Definition at line 102 of file MCTruthEveIdCalculator.h.
const MCTruthParticleList * m_particleList
The documentation for this class was generated from the following files: