LArDeposit.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_LArDeposit_h
8 #define GAR_SIMULATIONDATAPRODUCTS_LArDeposit_h
9 
10 #include <list>
11 
12 namespace gar {
13  namespace sdp {
14 
15 
16  class LArDeposit{
17  public:
18 
19  LArDeposit();
20 
21 #ifndef __GCCXML__
22  LArDeposit(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::LArDeposit 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_LArDeposit_h */
LArDeposit(int trackID, float t, float e, float xpos, float ypos, float zpos, float length, bool isPrimary)
Definition: LArDeposit.h:22
float const & Energy() const
Definition: LArDeposit.h:42
int const & TrackID() const
Definition: LArDeposit.h:40
TH3F * xpos
Definition: doAna.cpp:29
float fZ
z position of the energy deposit
Definition: LArDeposit.h:60
float fdX
the size of the step for this energy deposit
Definition: LArDeposit.h:61
float fEnergy
energy deposited
Definition: LArDeposit.h:57
TH3F * ypos
Definition: doAna.cpp:30
float fTime
time of the energy deposit
Definition: LArDeposit.h:56
float const & Time() const
Definition: LArDeposit.h:41
float const & X() const
Definition: LArDeposit.h:43
bool operator<(gar::sdp::LArDeposit const &b) const
Definition: LArDeposit.cxx:30
int fTrackID
g4 track ID of particle making the deposit
Definition: LArDeposit.h:55
float const & Z() const
Definition: LArDeposit.h:45
TH3F * zpos
Definition: doAna.cpp:31
const double e
bool fIsPrimary
is this from the primary particle, or a secondary (ie EM)
Definition: LArDeposit.h:62
float fY
y position of the energy deposit
Definition: LArDeposit.h:59
float fX
x position of the energy deposit
Definition: LArDeposit.h:58
General GArSoft Utilities.
float const & Y() const
Definition: LArDeposit.h:44
float const & dX() const
Definition: LArDeposit.h:46
static bool * b
Definition: config.cpp:1043
bool IsPrimary() const
Definition: LArDeposit.h:47