Public Member Functions | Private Attributes | List of all members
gar::sdp::EnergyDeposit Class Reference

#include <EnergyDeposit.h>

Public Member Functions

 EnergyDeposit ()
 
 EnergyDeposit (int trackID, float t, float e, float xpos, float ypos, float zpos, float length, bool isPrimary)
 
int const & TrackID () const
 
float const & Time () const
 
float const & Energy () const
 
float const & X () const
 
float const & Y () const
 
float const & Z () const
 
float const & dX () const
 
bool IsPrimary () const
 
bool operator< (gar::sdp::EnergyDeposit const &b) const
 

Private Attributes

int fTrackID
 g4 track ID of particle making the deposit More...
 
float fTime
 time of the energy deposit More...
 
float fEnergy
 energy deposited More...
 
float fX
 x position of the energy deposit More...
 
float fY
 y position of the energy deposit More...
 
float fZ
 z position of the energy deposit More...
 
float fdX
 the size of the step for this energy deposit More...
 
bool fIsPrimary
 is this from the primary particle, or a secondary (ie EM) More...
 

Detailed Description

Definition at line 16 of file EnergyDeposit.h.

Constructor & Destructor Documentation

gar::sdp::EnergyDeposit::EnergyDeposit ( )

Definition at line 17 of file EnergyDeposit.cxx.

18  : fTrackID (0)
19  , fTime (0.)
20  , fEnergy (0.)
21  , fX (0.)
22  , fY (0.)
23  , fZ (0.)
24  , fdX (0.)
25  , fIsPrimary (true)
26  {}
float fEnergy
energy deposited
Definition: EnergyDeposit.h:57
float fdX
the size of the step for this energy deposit
Definition: EnergyDeposit.h:61
int fTrackID
g4 track ID of particle making the deposit
Definition: EnergyDeposit.h:55
float fX
x position of the energy deposit
Definition: EnergyDeposit.h:58
float fTime
time of the energy deposit
Definition: EnergyDeposit.h:56
float fZ
z position of the energy deposit
Definition: EnergyDeposit.h:60
float fY
y position of the energy deposit
Definition: EnergyDeposit.h:59
bool fIsPrimary
is this from the primary particle, or a secondary (ie EM)
Definition: EnergyDeposit.h:62
gar::sdp::EnergyDeposit::EnergyDeposit ( int  trackID,
float  t,
float  e,
float  xpos,
float  ypos,
float  zpos,
float  length,
bool  isPrimary 
)
inline

Definition at line 22 of file EnergyDeposit.h.

30  : fTrackID (trackID)
31  , fTime (t)
32  , fEnergy (e)
33  , fX (xpos)
34  , fY (ypos)
35  , fZ (zpos)
36  , fdX (length)
37  , fIsPrimary(isPrimary)
38  {}
TH3F * xpos
Definition: doAna.cpp:29
float fEnergy
energy deposited
Definition: EnergyDeposit.h:57
float fdX
the size of the step for this energy deposit
Definition: EnergyDeposit.h:61
TH3F * ypos
Definition: doAna.cpp:30
int fTrackID
g4 track ID of particle making the deposit
Definition: EnergyDeposit.h:55
float fX
x position of the energy deposit
Definition: EnergyDeposit.h:58
TH3F * zpos
Definition: doAna.cpp:31
const double e
float fTime
time of the energy deposit
Definition: EnergyDeposit.h:56
float fZ
z position of the energy deposit
Definition: EnergyDeposit.h:60
float fY
y position of the energy deposit
Definition: EnergyDeposit.h:59
bool fIsPrimary
is this from the primary particle, or a secondary (ie EM)
Definition: EnergyDeposit.h:62

Member Function Documentation

float const& gar::sdp::EnergyDeposit::dX ( ) const
inline

Definition at line 46 of file EnergyDeposit.h.

46 { return fdX; }
float fdX
the size of the step for this energy deposit
Definition: EnergyDeposit.h:61
float const& gar::sdp::EnergyDeposit::Energy ( ) const
inline

Definition at line 42 of file EnergyDeposit.h.

42 { return fEnergy; }
float fEnergy
energy deposited
Definition: EnergyDeposit.h:57
bool gar::sdp::EnergyDeposit::IsPrimary ( ) const
inline

Definition at line 47 of file EnergyDeposit.h.

47 { return fIsPrimary; }
bool fIsPrimary
is this from the primary particle, or a secondary (ie EM)
Definition: EnergyDeposit.h:62
bool gar::sdp::EnergyDeposit::operator< ( gar::sdp::EnergyDeposit const &  b) const

Definition at line 30 of file EnergyDeposit.cxx.

31  {
32  if( std::abs(fTrackID) < std::abs(b.TrackID()) )
33  return true;
34  else if( std::abs(fTrackID) == std::abs(b.TrackID()) ){
35  if( fTime < b.Time() )
36  return true;
37  else if(fTime == b.Time() ){
38  if(fZ < b.Z()) return true;
39  }
40  }
41 
42  return false;
43  }
int fTrackID
g4 track ID of particle making the deposit
Definition: EnergyDeposit.h:55
T abs(T value)
float fTime
time of the energy deposit
Definition: EnergyDeposit.h:56
float fZ
z position of the energy deposit
Definition: EnergyDeposit.h:60
static bool * b
Definition: config.cpp:1043
float const& gar::sdp::EnergyDeposit::Time ( ) const
inline

Definition at line 41 of file EnergyDeposit.h.

41 { return fTime; }
float fTime
time of the energy deposit
Definition: EnergyDeposit.h:56
int const& gar::sdp::EnergyDeposit::TrackID ( ) const
inline

Definition at line 40 of file EnergyDeposit.h.

40 { return fTrackID; }
int fTrackID
g4 track ID of particle making the deposit
Definition: EnergyDeposit.h:55
float const& gar::sdp::EnergyDeposit::X ( ) const
inline

Definition at line 43 of file EnergyDeposit.h.

43 { return fX; }
float fX
x position of the energy deposit
Definition: EnergyDeposit.h:58
float const& gar::sdp::EnergyDeposit::Y ( ) const
inline

Definition at line 44 of file EnergyDeposit.h.

44 { return fY; }
float fY
y position of the energy deposit
Definition: EnergyDeposit.h:59
float const& gar::sdp::EnergyDeposit::Z ( ) const
inline

Definition at line 45 of file EnergyDeposit.h.

45 { return fZ; }
float fZ
z position of the energy deposit
Definition: EnergyDeposit.h:60

Member Data Documentation

float gar::sdp::EnergyDeposit::fdX
private

the size of the step for this energy deposit

Definition at line 61 of file EnergyDeposit.h.

float gar::sdp::EnergyDeposit::fEnergy
private

energy deposited

Definition at line 57 of file EnergyDeposit.h.

bool gar::sdp::EnergyDeposit::fIsPrimary
private

is this from the primary particle, or a secondary (ie EM)

Definition at line 62 of file EnergyDeposit.h.

float gar::sdp::EnergyDeposit::fTime
private

time of the energy deposit

Definition at line 56 of file EnergyDeposit.h.

int gar::sdp::EnergyDeposit::fTrackID
private

g4 track ID of particle making the deposit

Definition at line 55 of file EnergyDeposit.h.

float gar::sdp::EnergyDeposit::fX
private

x position of the energy deposit

Definition at line 58 of file EnergyDeposit.h.

float gar::sdp::EnergyDeposit::fY
private

y position of the energy deposit

Definition at line 59 of file EnergyDeposit.h.

float gar::sdp::EnergyDeposit::fZ
private

z position of the energy deposit

Definition at line 60 of file EnergyDeposit.h.


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