#include <EveIdCalculator.h>
Definition at line 83 of file EveIdCalculator.h.
sim::EveIdCalculator::EveIdCalculator |
( |
| ) |
|
sim::EveIdCalculator::~EveIdCalculator |
( |
| ) |
|
|
virtual |
int sim::EveIdCalculator::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 42 of file EveIdCalculator.cxx.
60 return (*search).second;
m_previousList_t::const_iterator m_previousList_ptr
virtual int DoCalculateEveId(const int trackID)
m_previousList_t m_previousList
int sim::EveIdCalculator::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 sim::EmEveIdCalculator.
Definition at line 64 of file EveIdCalculator.cxx.
74 if ( particleHistory.empty() ){
const sim::ParticleList * m_particleList
Initialize this calculator for a particular ParticleList.
Definition at line 31 of file EveIdCalculator.cxx.
const sim::ParticleList * m_particleList
m_previousList_t m_previousList
Accessor: For which ParticleList does this calculator generate results?
Definition at line 96 of file EveIdCalculator.h.
const sim::ParticleList * m_particleList
The documentation for this class was generated from the following files: