Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-28 07:03:43

0001 
0002 #include <TObject.h>
0003 #include <TVector3.h>
0004 
0005 #ifndef _CHARGED_PARTICLE_STEP_
0006 #define _CHARGED_PARTICLE_STEP_
0007 
0008 class ChargedParticleStep: public TObject {
0009  public:
0010   ChargedParticleStep()/*: m_Length(0.0)*/ {};
0011  ChargedParticleStep(const TVector3 &position, const TVector3 &momentum/*, double length*/):
0012   m_Position(position), m_Momentum(momentum)/*, m_Length(length)*/ {};
0013   ~ChargedParticleStep() {};
0014 
0015   inline const TVector3 &GetPosition ( void ) const { return m_Position; };
0016   inline const TVector3 &GetMomentum ( void ) const { return m_Momentum; };
0017   inline       TVector3  GetDirection( void ) const { return m_Momentum.Unit(); };
0018 
0019   // Nodes along the particle trajectory; 
0020  private:
0021   TVector3 m_Position, m_Momentum;
0022   //double m_Length;
0023 
0024 #ifndef DISABLE_ROOT_IO
0025   ClassDef(ChargedParticleStep, 1);
0026 #endif
0027 };
0028 
0029 #endif