Public Member Functions | Protected Attributes | List of all members
garana::FSParticle Class Reference

#include <FSParticle.h>

Public Member Functions

 FSParticle ()
 
 FSParticle (const int &trackid, const int &pdg, const float &x, const float &y, const float &z, const float &t, const float &px, const float &py, const float &pz, const float &e)
 
 FSParticle (const int &trackid, const int &pdg, const TLorentzVector &r, const TLorentzVector &p)
 
int const & TrackId () const
 
int const & PDG () const
 
const TLorentzVector & Pos4 () const
 
const TLorentzVector & Mom4 () const
 
float X () const
 return position x-component [GeV/c] More...
 
float Y () const
 return position y-component [GeV/c] More...
 
float Z () const
 return position z-component [GeV/c] More...
 
float T () const
 return time [ns] More...
 
float Px () const
 return momentum x-component [GeV/c] More...
 
float Py () const
 return momentum y-component [GeV/c] More...
 
float Pz () const
 return momentum z-component [GeV/c] More...
 
float P () const
 return magnitude of particle momentum [GeV/c] More...
 
float E () const
 return total energy [GeV] More...
 
float KE () const
 

Protected Attributes

int fTrackId = INT_MAX
 generator track ID More...
 
int fPdg = INT_MAX
 particle PDG code More...
 
TLorentzVector fR
 final particle 4-position in lab frame [cm,ns] More...
 
TLorentzVector fP
 final particle 4-momentum in lab frame [GeV/c,GeV] More...
 

Detailed Description

Definition at line 9 of file FSParticle.h.

Constructor & Destructor Documentation

garana::FSParticle::FSParticle ( )
inline

Definition at line 14 of file FSParticle.h.

14 {}
FSParticle::FSParticle ( const int &  trackid,
const int &  pdg,
const float &  x,
const float &  y,
const float &  z,
const float &  t,
const float &  px,
const float &  py,
const float &  pz,
const float &  e 
)

Definition at line 13 of file FSParticle.cxx.

14  :
15  fTrackId(trackid),
16  fPdg(pdg),
17  fR(TLorentzVector(x,y,z,t)),
18  fP(TLorentzVector(px,py,pz,e))
19  {}
int fPdg
particle PDG code
Definition: FSParticle.h:43
TLorentzVector fR
final particle 4-position in lab frame [cm,ns]
Definition: FSParticle.h:44
const double e
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
int fTrackId
generator track ID
Definition: FSParticle.h:42
list x
Definition: train.py:276
FSParticle::FSParticle ( const int &  trackid,
const int &  pdg,
const TLorentzVector &  r,
const TLorentzVector &  p 
)

Definition at line 21 of file FSParticle.cxx.

21  :
22  fTrackId(trackid),
23  fPdg(pdg),
24  fR(r),
25  fP(p)
26  {}
int fPdg
particle PDG code
Definition: FSParticle.h:43
TLorentzVector fR
final particle 4-position in lab frame [cm,ns]
Definition: FSParticle.h:44
p
Definition: test.py:223
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
int fTrackId
generator track ID
Definition: FSParticle.h:42

Member Function Documentation

float FSParticle::E ( ) const

return total energy [GeV]

Definition at line 41 of file FSParticle.cxx.

41 { return fP.E(); }
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
float FSParticle::KE ( ) const

Definition at line 42 of file FSParticle.cxx.

42 { return E()-sqrt(E()*E()-P()*P()); }
float E() const
return total energy [GeV]
Definition: FSParticle.cxx:41
float P() const
return magnitude of particle momentum [GeV/c]
Definition: FSParticle.cxx:40
const TLorentzVector & FSParticle::Mom4 ( ) const

Definition at line 32 of file FSParticle.cxx.

32 { return fP; }
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
float FSParticle::P ( ) const

return magnitude of particle momentum [GeV/c]

Definition at line 40 of file FSParticle.cxx.

40 { return fP.P(); }
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
int const & FSParticle::PDG ( ) const

Definition at line 30 of file FSParticle.cxx.

30 { return fPdg; }
int fPdg
particle PDG code
Definition: FSParticle.h:43
const TLorentzVector & FSParticle::Pos4 ( ) const

Definition at line 31 of file FSParticle.cxx.

31 { return fR; }
TLorentzVector fR
final particle 4-position in lab frame [cm,ns]
Definition: FSParticle.h:44
float FSParticle::Px ( ) const

return momentum x-component [GeV/c]

Definition at line 37 of file FSParticle.cxx.

37 { return fP.Px(); }
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
float FSParticle::Py ( ) const

return momentum y-component [GeV/c]

Definition at line 38 of file FSParticle.cxx.

38 { return fP.Py(); }
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
float FSParticle::Pz ( ) const

return momentum z-component [GeV/c]

Definition at line 39 of file FSParticle.cxx.

39 { return fP.Pz(); }
TLorentzVector fP
final particle 4-momentum in lab frame [GeV/c,GeV]
Definition: FSParticle.h:45
float FSParticle::T ( ) const

return time [ns]

Definition at line 36 of file FSParticle.cxx.

36 { return fR.T(); }
TLorentzVector fR
final particle 4-position in lab frame [cm,ns]
Definition: FSParticle.h:44
int const & FSParticle::TrackId ( ) const

Definition at line 29 of file FSParticle.cxx.

29 { return fTrackId; }
int fTrackId
generator track ID
Definition: FSParticle.h:42
float FSParticle::X ( ) const

return position x-component [GeV/c]

Definition at line 33 of file FSParticle.cxx.

33 { return fR.X(); }
TLorentzVector fR
final particle 4-position in lab frame [cm,ns]
Definition: FSParticle.h:44
float FSParticle::Y ( ) const

return position y-component [GeV/c]

Definition at line 34 of file FSParticle.cxx.

34 { return fR.Y(); }
TLorentzVector fR
final particle 4-position in lab frame [cm,ns]
Definition: FSParticle.h:44
float FSParticle::Z ( ) const

return position z-component [GeV/c]

Definition at line 35 of file FSParticle.cxx.

35 { return fR.Z(); }
TLorentzVector fR
final particle 4-position in lab frame [cm,ns]
Definition: FSParticle.h:44

Member Data Documentation

TLorentzVector garana::FSParticle::fP
protected

final particle 4-momentum in lab frame [GeV/c,GeV]

Definition at line 45 of file FSParticle.h.

int garana::FSParticle::fPdg = INT_MAX
protected

particle PDG code

Definition at line 43 of file FSParticle.h.

TLorentzVector garana::FSParticle::fR
protected

final particle 4-position in lab frame [cm,ns]

Definition at line 44 of file FSParticle.h.

int garana::FSParticle::fTrackId = INT_MAX
protected

generator track ID

Definition at line 42 of file FSParticle.h.


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