CFEL - ASG Software Suite  2.5.0
CASS
Public Types | Public Member Functions | Static Public Member Functions | List of all members
cass::ACQIRIS::MomentumCalculator Class Referenceabstract

base class for calculating momenta from a detector hit More...

#include <momenta_calculator.h>

+ Inheritance diagram for cass::ACQIRIS::MomentumCalculator:

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_toperator() (const Particle &particle, particleHit_t &particlehit) const =0
 calculate the momenta More...
 

Static Public Member Functions

static std::tr1::shared_ptr< MomentumCalculatorinstance (const MomCalcType &type)
 create instance of requested type More...
 

Detailed Description

base class for calculating momenta from a detector hit

Author
Lutz Foucar

Definition at line 88 of file momenta_calculator.h.

Member Enumeration Documentation

enum for the types of momcalculators

Enumerator
PxPyWBField 
PxPyWOBField 
PzOneRegion 
PzMultipleRegions 

Definition at line 95 of file momenta_calculator.h.

Constructor & Destructor Documentation

virtual cass::ACQIRIS::MomentumCalculator::~MomentumCalculator ( )
inlinevirtual

virtual destructor since this is a base class

Definition at line 92 of file momenta_calculator.h.

Member Function Documentation

std::tr1::shared_ptr< MomentumCalculator > MomentumCalculator::instance ( const MomCalcType type)
static

create instance of requested type

creates an instance of the requested type

Returns
pointer to the instance of the requested type
Parameters
typethe type of momentum calculator requested

Definition at line 467 of file momenta_calculator.cpp.

References cass::toString().

Referenced by cass::ACQIRIS::Particle::loadSettings().

virtual particleHit_t& cass::ACQIRIS::MomentumCalculator::operator() ( const Particle particle,
particleHit_t particlehit 
) const
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.

Returns
the particle hit that contains all momenta
Parameters
[in]particlehitthe detectorhit to calculate the momenta from
[in]particlethe 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.


The documentation for this class was generated from the following files: