CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | List of all members
cass::ACQIRIS::PxPyCalculatorWithBField Class Reference

calculate px,py momenta More...

#include <momenta_calculator.h>

+ Inheritance diagram for cass::ACQIRIS::PxPyCalculatorWithBField:
+ Collaboration diagram for cass::ACQIRIS::PxPyCalculatorWithBField:

Public Member Functions

virtual ~PxPyCalculatorWithBField ()
 
particleHit_toperator() (const Particle &particle, particleHit_t &particlehit) const
 calculate the momenta More...
 
- Public Member Functions inherited from cass::ACQIRIS::MomentumCalculator
virtual ~MomentumCalculator ()
 virtual destructor since this is a base class More...
 

Additional Inherited Members

- Public Types inherited from cass::ACQIRIS::MomentumCalculator
enum  MomCalcType { PxPyWBField, PxPyWOBField, PzOneRegion, PzMultipleRegions }
 enum for the types of momcalculators More...
 
- Static Public Member Functions inherited from cass::ACQIRIS::MomentumCalculator
static std::tr1::shared_ptr< MomentumCalculatorinstance (const MomCalcType &type)
 create instance of requested type More...
 

Detailed Description

calculate px,py momenta

This calcultates the momenta components of the particle in the detectorplane for a spectrometer with a magnetic field.

Author
Lutz Foucar

Definition at line 141 of file momenta_calculator.h.

Constructor & Destructor Documentation

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

Definition at line 144 of file momenta_calculator.h.

Member Function Documentation

particleHit_t & PxPyCalculatorWithBField::operator() ( const Particle particle,
particleHit_t particlehit 
) const
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

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.


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