CFEL - ASG Software Suite
2.5.0
CASS
|
base class for calculating momenta from a detector hit More...
#include <momenta_calculator.h>
Public Types | |
enum | MomCalcType { PxPyWBField, PxPyWOBField, PzOneRegion, PzMultipleRegions } |
enum for the types of momcalculators More... | |
Public Member Functions | |
virtual | ~MomentumCalculator () |
virtual destructor since this is a base class More... | |
virtual particleHit_t & | operator() (const Particle &particle, particleHit_t &particlehit) const =0 |
calculate the momenta More... | |
Static Public Member Functions | |
static std::tr1::shared_ptr< MomentumCalculator > | instance (const MomCalcType &type) |
create instance of requested type More... | |
base class for calculating momenta from a detector hit
Definition at line 88 of file momenta_calculator.h.
enum for the types of momcalculators
Enumerator | |
---|---|
PxPyWBField | |
PxPyWOBField | |
PzOneRegion | |
PzMultipleRegions |
Definition at line 95 of file momenta_calculator.h.
|
inlinevirtual |
virtual destructor since this is a base class
Definition at line 92 of file momenta_calculator.h.
|
static |
create instance of requested type
creates an instance of the requested type
type | the type of momentum calculator requested |
Definition at line 467 of file momenta_calculator.cpp.
References cass::toString().
Referenced by cass::ACQIRIS::Particle::loadSettings().
|
pure virtual |
calculate the momenta
calculates the momenta of the particle form a given detectorhit. First correct the position of the detectorhit and the time of flight.
[in] | particlehit | the detectorhit to calculate the momenta from |
[in] | particle | the particle object that contains the properties of the particle that the momentum needs to be calculated from |
Implemented in cass::ACQIRIS::PzCalculatorMulitpleRegions, cass::ACQIRIS::PzCalculatorDirectOneRegion, cass::ACQIRIS::PxPyCalculatorWithBField, and cass::ACQIRIS::PxPyCalculatorWithoutBField.