LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "EmEveIdCalculator.h"
Public Member Functions | |
EmEveIdCalculator () | |
virtual | ~EmEveIdCalculator () |
void | Init (const sim::ParticleList *list) |
Initialize this calculator for a particular ParticleList. More... | |
const sim::ParticleList * | ParticleList () const |
int | CalculateEveId (const int trackID) |
Protected Attributes | |
const sim::ParticleList * | m_particleList |
Private Member Functions | |
virtual int | DoCalculateEveId (const int trackID) |
Definition at line 63 of file EmEveIdCalculator.h.
|
inline |
Definition at line 67 of file EmEveIdCalculator.h.
|
inlinevirtual |
|
inherited |
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.
References sim::EveIdCalculator::DoCalculateEveId(), and sim::EveIdCalculator::m_previousList.
Referenced by sim::EveIdCalculator::ParticleList().
|
privatevirtual |
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 from sim::EveIdCalculator.
Definition at line 22 of file EmEveIdCalculator.cxx.
References sim::EveIdCalculator::m_particleList.
Referenced by ~EmEveIdCalculator().
|
inherited |
Initialize this calculator for a particular ParticleList.
Definition at line 31 of file EveIdCalculator.cxx.
References sim::EveIdCalculator::m_particleList, and sim::EveIdCalculator::m_previousList.
|
inlineinherited |
Accessor: For which ParticleList does this calculator generate results?
Definition at line 96 of file EveIdCalculator.h.
References sim::EveIdCalculator::CalculateEveId(), sim::EveIdCalculator::DoCalculateEveId(), and sim::EveIdCalculator::m_particleList.
|
protectedinherited |
Definition at line 118 of file EveIdCalculator.h.
Referenced by DoCalculateEveId(), sim::EveIdCalculator::DoCalculateEveId(), sim::EveIdCalculator::Init(), and sim::EveIdCalculator::ParticleList().