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

#include <CaloDeposit.h>

Public Member Functions

 CaloDeposit ()
 
 CaloDeposit (int trackID, float t, float e, double pos[3], raw::CellID_t CellID)
 
 CaloDeposit (int trackID, float t, float e, double pos[3], raw::CellID_t CellID, float step_l)
 
 CaloDeposit (double pos[3])
 
int const & TrackID () const
 
float const & Time () const
 
float const & Energy () const
 
double const & X () const
 
double const & Y () const
 
double const & Z () const
 
raw::CellID_t const & CellID () const
 
double const * Pos () const
 
float const & StepLength () const
 
bool operator< (gar::sdp::CaloDeposit const &b) const
 
void operator+= (gar::sdp::CaloDeposit const &b)
 

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...
 
double fPos [3]
 position of the energy deposit More...
 
raw::CellID_t fCellID
 cellID encoded in 64 bits containing det_id, stave, module, layer, slice, cellX and cellY, use Helper to access the values More...
 
float fStepLength
 step length More...
 

Detailed Description

Definition at line 19 of file CaloDeposit.h.

Constructor & Destructor Documentation

gar::sdp::CaloDeposit::CaloDeposit ( )

Definition at line 17 of file CaloDeposit.cxx.

18  : fTrackID(0)
19  , fTime (0.)
20  , fEnergy (0.)
21  , fCellID (0)
22  , fStepLength(0.)
23  {
24  fPos[0] = 0.;
25  fPos[1] = 0.;
26  fPos[2] = 0.;
27  }
raw::CellID_t fCellID
cellID encoded in 64 bits containing det_id, stave, module, layer, slice, cellX and cellY...
Definition: CaloDeposit.h:91
int fTrackID
g4 track ID of particle making the deposit
Definition: CaloDeposit.h:87
float fTime
time of the energy deposit
Definition: CaloDeposit.h:88
float fStepLength
step length
Definition: CaloDeposit.h:92
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90
float fEnergy
energy deposited
Definition: CaloDeposit.h:89
gar::sdp::CaloDeposit::CaloDeposit ( int  trackID,
float  t,
float  e,
double  pos[3],
raw::CellID_t  CellID 
)
inline

Definition at line 25 of file CaloDeposit.h.

30  : fTrackID (trackID)
31  , fTime (t)
32  , fEnergy (e)
33  , fCellID (CellID)
34  , fStepLength(0.)
35  {
36  fPos[0] = pos[0];
37  fPos[1] = pos[1];
38  fPos[2] = pos[2];
39  }
raw::CellID_t fCellID
cellID encoded in 64 bits containing det_id, stave, module, layer, slice, cellX and cellY...
Definition: CaloDeposit.h:91
int fTrackID
g4 track ID of particle making the deposit
Definition: CaloDeposit.h:87
const double e
float fTime
time of the energy deposit
Definition: CaloDeposit.h:88
raw::CellID_t const & CellID() const
Definition: CaloDeposit.h:76
float fStepLength
step length
Definition: CaloDeposit.h:92
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90
float fEnergy
energy deposited
Definition: CaloDeposit.h:89
gar::sdp::CaloDeposit::CaloDeposit ( int  trackID,
float  t,
float  e,
double  pos[3],
raw::CellID_t  CellID,
float  step_l 
)
inline

Definition at line 41 of file CaloDeposit.h.

47  : fTrackID (trackID)
48  , fTime (t)
49  , fEnergy (e)
50  , fCellID (CellID)
51  , fStepLength(step_l)
52  {
53  fPos[0] = pos[0];
54  fPos[1] = pos[1];
55  fPos[2] = pos[2];
56  }
raw::CellID_t fCellID
cellID encoded in 64 bits containing det_id, stave, module, layer, slice, cellX and cellY...
Definition: CaloDeposit.h:91
int fTrackID
g4 track ID of particle making the deposit
Definition: CaloDeposit.h:87
const double e
float fTime
time of the energy deposit
Definition: CaloDeposit.h:88
raw::CellID_t const & CellID() const
Definition: CaloDeposit.h:76
float fStepLength
step length
Definition: CaloDeposit.h:92
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90
float fEnergy
energy deposited
Definition: CaloDeposit.h:89
gar::sdp::CaloDeposit::CaloDeposit ( double  pos[3])
inline

Definition at line 58 of file CaloDeposit.h.

59  : fTrackID(0),
60  fTime(0.),
61  fEnergy(0.),
62  fCellID(0),
63  fStepLength(0.)
64  {
65  fPos[0] = pos[0];
66  fPos[1] = pos[1];
67  fPos[2] = pos[2];
68  }
raw::CellID_t fCellID
cellID encoded in 64 bits containing det_id, stave, module, layer, slice, cellX and cellY...
Definition: CaloDeposit.h:91
int fTrackID
g4 track ID of particle making the deposit
Definition: CaloDeposit.h:87
float fTime
time of the energy deposit
Definition: CaloDeposit.h:88
float fStepLength
step length
Definition: CaloDeposit.h:92
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90
float fEnergy
energy deposited
Definition: CaloDeposit.h:89

Member Function Documentation

raw::CellID_t const& gar::sdp::CaloDeposit::CellID ( ) const
inline

Definition at line 76 of file CaloDeposit.h.

76 { return fCellID; }
raw::CellID_t fCellID
cellID encoded in 64 bits containing det_id, stave, module, layer, slice, cellX and cellY...
Definition: CaloDeposit.h:91
float const& gar::sdp::CaloDeposit::Energy ( ) const
inline

Definition at line 72 of file CaloDeposit.h.

72 { return fEnergy; }
float fEnergy
energy deposited
Definition: CaloDeposit.h:89
void gar::sdp::CaloDeposit::operator+= ( gar::sdp::CaloDeposit const &  b)

Definition at line 39 of file CaloDeposit.cxx.

40  {
41  //Simply adding contributions
42  fEnergy += b.Energy();
43 
44  //Taking the earliest time
45  if(b.Time() < fTime)
46  fTime = b.Time();
47  }
float fTime
time of the energy deposit
Definition: CaloDeposit.h:88
float fEnergy
energy deposited
Definition: CaloDeposit.h:89
static bool * b
Definition: config.cpp:1043
bool gar::sdp::CaloDeposit::operator< ( gar::sdp::CaloDeposit const &  b) const

Definition at line 31 of file CaloDeposit.cxx.

32  {
33  if( fTime < b.Time() )
34  return true;
35 
36  return false;
37  }
float fTime
time of the energy deposit
Definition: CaloDeposit.h:88
static bool * b
Definition: config.cpp:1043
double const* gar::sdp::CaloDeposit::Pos ( ) const
inline

Definition at line 77 of file CaloDeposit.h.

77 { return &fPos[0]; }
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90
float const& gar::sdp::CaloDeposit::StepLength ( ) const
inline

Definition at line 78 of file CaloDeposit.h.

78 { return fStepLength; }
float fStepLength
step length
Definition: CaloDeposit.h:92
float const& gar::sdp::CaloDeposit::Time ( ) const
inline

Definition at line 71 of file CaloDeposit.h.

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

Definition at line 70 of file CaloDeposit.h.

70 { return fTrackID; }
int fTrackID
g4 track ID of particle making the deposit
Definition: CaloDeposit.h:87
double const& gar::sdp::CaloDeposit::X ( ) const
inline

Definition at line 73 of file CaloDeposit.h.

73 { return fPos[0]; }
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90
double const& gar::sdp::CaloDeposit::Y ( ) const
inline

Definition at line 74 of file CaloDeposit.h.

74 { return fPos[1]; }
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90
double const& gar::sdp::CaloDeposit::Z ( ) const
inline

Definition at line 75 of file CaloDeposit.h.

75 { return fPos[2]; }
double fPos[3]
position of the energy deposit
Definition: CaloDeposit.h:90

Member Data Documentation

raw::CellID_t gar::sdp::CaloDeposit::fCellID
private

cellID encoded in 64 bits containing det_id, stave, module, layer, slice, cellX and cellY, use Helper to access the values

Definition at line 91 of file CaloDeposit.h.

float gar::sdp::CaloDeposit::fEnergy
private

energy deposited

Definition at line 89 of file CaloDeposit.h.

double gar::sdp::CaloDeposit::fPos[3]
private

position of the energy deposit

Definition at line 90 of file CaloDeposit.h.

float gar::sdp::CaloDeposit::fStepLength
private

step length

Definition at line 92 of file CaloDeposit.h.

float gar::sdp::CaloDeposit::fTime
private

time of the energy deposit

Definition at line 88 of file CaloDeposit.h.

int gar::sdp::CaloDeposit::fTrackID
private

g4 track ID of particle making the deposit

Definition at line 87 of file CaloDeposit.h.


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