EnergyDeposit.h
Go to the documentation of this file.
1 //
2 // EnergyDeposit.h
3 //
4 // Created by Brian Rebel on 1/30/17.
5 //
6 
7 #ifndef GAR_SIMULATIONDATAPRODUCTS_EnergyDeposit_h
8 #define GAR_SIMULATIONDATAPRODUCTS_EnergyDeposit_h
9 
10 #include <list>
11 
12 namespace gar {
13  namespace sdp {
14 
15 
17  public:
18 
19  EnergyDeposit();
20 
21 #ifndef __GCCXML__
22  EnergyDeposit(int trackID,
23  float t,
24  float e,
25  float xpos,
26  float ypos,
27  float zpos,
28  float length,
29  bool isPrimary)
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  {}
39 
40  int const& TrackID() const { return fTrackID; }
41  float const& Time() const { return fTime; }
42  float const& Energy() const { return fEnergy; }
43  float const& X() const { return fX; }
44  float const& Y() const { return fY; }
45  float const& Z() const { return fZ; }
46  float const& dX() const { return fdX; }
47  bool IsPrimary() const { return fIsPrimary; }
48 
49  bool operator <(gar::sdp::EnergyDeposit const& b) const;
50 
51 #endif
52 
53  private:
54 
55  int fTrackID; ///< g4 track ID of particle making the deposit
56  float fTime; ///< time of the energy deposit
57  float fEnergy; ///< energy deposited
58  float fX; ///< x position of the energy deposit
59  float fY; ///< y position of the energy deposit
60  float fZ; ///< z position of the energy deposit
61  float fdX; ///< the size of the step for this energy deposit
62  bool fIsPrimary; ///< is this from the primary particle, or a secondary (ie EM)
63  };
64 
65 
66  } // sdp
67 } // gar
68 
69 #endif /* GAR_SIMULATIONDATAPRODUCTS_EnergyDeposit_h */
TH3F * xpos
Definition: doAna.cpp:29
float fEnergy
energy deposited
Definition: EnergyDeposit.h:57
bool IsPrimary() const
Definition: EnergyDeposit.h:47
float const & Energy() const
Definition: EnergyDeposit.h:42
float const & Z() const
Definition: EnergyDeposit.h:45
float const & Y() const
Definition: EnergyDeposit.h:44
float fdX
the size of the step for this energy deposit
Definition: EnergyDeposit.h:61
float const & Time() const
Definition: EnergyDeposit.h:41
TH3F * ypos
Definition: doAna.cpp:30
float const & dX() const
Definition: EnergyDeposit.h:46
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
int const & TrackID() const
Definition: EnergyDeposit.h:40
float fZ
z position of the energy deposit
Definition: EnergyDeposit.h:60
General GArSoft Utilities.
float fY
y position of the energy deposit
Definition: EnergyDeposit.h:59
float const & X() const
Definition: EnergyDeposit.h:43
static bool * b
Definition: config.cpp:1043
bool operator<(gar::sdp::EnergyDeposit const &b) const
EnergyDeposit(int trackID, float t, float e, float xpos, float ypos, float zpos, float length, bool isPrimary)
Definition: EnergyDeposit.h:22
bool fIsPrimary
is this from the primary particle, or a secondary (ie EM)
Definition: EnergyDeposit.h:62