CFEL - ASG Software Suite
2.5.0
CASS
|
calculate px,py momenta More...
#include <momenta_calculator.h>
Public Member Functions | |
virtual | ~PxPyCalculatorWithBField () |
particleHit_t & | operator() (const Particle &particle, particleHit_t &particlehit) const |
calculate the momenta More... | |
![]() | |
virtual | ~MomentumCalculator () |
virtual destructor since this is a base class More... | |
Additional Inherited Members | |
![]() | |
enum | MomCalcType { PxPyWBField, PxPyWOBField, PzOneRegion, PzMultipleRegions } |
enum for the types of momcalculators More... | |
![]() | |
static std::tr1::shared_ptr< MomentumCalculator > | instance (const MomCalcType &type) |
create instance of requested type More... | |
calculate px,py momenta
This calcultates the momenta components of the particle in the detectorplane for a spectrometer with a magnetic field.
Definition at line 141 of file momenta_calculator.h.
|
inlinevirtual |
Definition at line 144 of file momenta_calculator.h.
|
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 |
Implements cass::ACQIRIS::MomentumCalculator.
Definition at line 501 of file momenta_calculator.cpp.
References cass::ACQIRIS::getDetPlaneMomenta(), cass::ACQIRIS::px, cass::ACQIRIS::py, cass::ACQIRIS::tofCor_ns, cass::ACQIRIS::xCorScalRot_mm, and cass::ACQIRIS::yCorScalRot_mm.