LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
sim::SimEnergyDeposit Class Reference

#include "SimEnergyDeposit.h"

Public Types

using Length_t = float
 
using Point_t = ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Length_t > >
 

Public Member Functions

 SimEnergyDeposit (int np=0, int ne=0, double e=0., Point_t start={0., 0., 0.}, Point_t end={0., 0., 0.}, double t0=0., double t1=0., int id=0, int pdg=0)
 
int NumPhotons () const
 
int NumElectrons () const
 
double Energy () const
 
geo::Point_t Start () const
 
geo::Point_t End () const
 
double Time () const
 
int TrackID () const
 
int PdgCode () const
 
geo::Length_t StartX () const
 
geo::Length_t StartY () const
 
geo::Length_t StartZ () const
 
double StartT () const
 
geo::Length_t EndX () const
 
geo::Length_t EndY () const
 
geo::Length_t EndZ () const
 
double EndT () const
 
geo::Point_t MidPoint () const
 
geo::Length_t MidPointX () const
 
geo::Length_t MidPointY () const
 
geo::Length_t MidPointZ () const
 
geo::Length_t X () const
 
geo::Length_t Y () const
 
geo::Length_t Z () const
 
double T () const
 
double T0 () const
 
double T1 () const
 
double E () const
 
geo::Length_t StepLength () const
 
bool operator< (const SimEnergyDeposit &rhs) const
 

Private Attributes

int numPhotons
 
int numElectrons
 
float edep
 
Point_t startPos
 
Point_t endPos
 
double startTime
 
double endTime
 
int trackID
 
int pdgCode
 

Detailed Description

Definition at line 46 of file SimEnergyDeposit.h.

Member Typedef Documentation

Definition at line 51 of file SimEnergyDeposit.h.

using sim::SimEnergyDeposit::Point_t = ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D<Length_t> >

Definition at line 52 of file SimEnergyDeposit.h.

Constructor & Destructor Documentation

sim::SimEnergyDeposit::SimEnergyDeposit ( int  np = 0,
int  ne = 0,
double  e = 0.,
Point_t  start = {0.,0.,0.},
Point_t  end = {0.,0.,0.},
double  t0 = 0.,
double  t1 = 0.,
int  id = 0,
int  pdg = 0 
)
inline

Definition at line 66 of file SimEnergyDeposit.h.

69  {0.,0.,0.},
70  Point_t end = {0.,0.,0.},
71  double t0 = 0.,
72  double t1 = 0.,
73  int id = 0,
74  int pdg = 0)
75  : numPhotons(np)
76  , numElectrons(ne)
77  , edep(e)
78  , startPos(start)
79  , endPos(end)
80  , startTime(t0)
81  , endTime(t1)
82  , trackID(id)
83  , pdgCode(pdg)
84  {}
code to link reconstructed objects back to the MC truth information
TTree * t1
Definition: plottest35.C:26
recob::tracking::Point_t Point_t
std::vector< evd::details::RawDigitInfo_t >::const_iterator end(RawDigitCacheDataClass const &cache)
Float_t e
Definition: plot.C:34

Member Function Documentation

double sim::SimEnergyDeposit::E ( ) const
inline

Definition at line 132 of file SimEnergyDeposit.h.

References edep.

132 { return edep; }
geo::Point_t sim::SimEnergyDeposit::End ( ) const
inline

Definition at line 97 of file SimEnergyDeposit.h.

References endPos.

97 { return { endPos.X(), endPos.Y(), endPos.Z() }; }
double sim::SimEnergyDeposit::EndT ( ) const
inline

Definition at line 113 of file SimEnergyDeposit.h.

References endTime.

113 { return endTime; }
geo::Length_t sim::SimEnergyDeposit::EndX ( ) const
inline

Definition at line 110 of file SimEnergyDeposit.h.

References endPos.

110 { return endPos.X(); }
geo::Length_t sim::SimEnergyDeposit::EndY ( ) const
inline

Definition at line 111 of file SimEnergyDeposit.h.

References endPos.

111 { return endPos.Y(); }
geo::Length_t sim::SimEnergyDeposit::EndZ ( ) const
inline

Definition at line 112 of file SimEnergyDeposit.h.

References endPos.

112 { return endPos.Z(); }
geo::Point_t sim::SimEnergyDeposit::MidPoint ( ) const
inline

Definition at line 116 of file SimEnergyDeposit.h.

References endPos, and startPos.

116  {
117  return {
118  ( startPos.X() + endPos.X() )/2.
119  , ( startPos.Y() + endPos.Y() )/2.
120  , ( startPos.Z() + endPos.Z() )/2.
121  };
122  }
geo::Length_t sim::SimEnergyDeposit::MidPointX ( ) const
inline
geo::Length_t sim::SimEnergyDeposit::MidPointY ( ) const
inline
geo::Length_t sim::SimEnergyDeposit::MidPointZ ( ) const
inline
int sim::SimEnergyDeposit::NumElectrons ( ) const
inline

Definition at line 94 of file SimEnergyDeposit.h.

References numElectrons.

94 { return numElectrons; }
int sim::SimEnergyDeposit::NumPhotons ( ) const
inline

Definition at line 93 of file SimEnergyDeposit.h.

References numPhotons.

93 { return numPhotons; }
bool sim::SimEnergyDeposit::operator< ( const SimEnergyDeposit rhs) const
inline

Definition at line 146 of file SimEnergyDeposit.h.

References edep, startPos, startTime, and trackID.

147  {
148  return trackID < rhs.trackID
149  && startTime < rhs.startTime
150  && startPos.Z() < rhs.startPos.Z()
151  && startPos.Y() < rhs.startPos.Y()
152  && startPos.X() < rhs.startPos.X()
153  && edep > rhs.edep; // sort by _decreasing_ energy
154  }
int sim::SimEnergyDeposit::PdgCode ( ) const
inline
geo::Point_t sim::SimEnergyDeposit::Start ( ) const
inline

Definition at line 96 of file SimEnergyDeposit.h.

References startPos.

96 { return { startPos.X(), startPos.Y(), startPos.Z() }; }
double sim::SimEnergyDeposit::StartT ( ) const
inline

Definition at line 109 of file SimEnergyDeposit.h.

References startTime.

109 { return startTime; }
geo::Length_t sim::SimEnergyDeposit::StartX ( ) const
inline

Definition at line 106 of file SimEnergyDeposit.h.

References startPos.

106 { return startPos.X(); }
geo::Length_t sim::SimEnergyDeposit::StartY ( ) const
inline

Definition at line 107 of file SimEnergyDeposit.h.

References startPos.

107 { return startPos.Y(); }
geo::Length_t sim::SimEnergyDeposit::StartZ ( ) const
inline

Definition at line 108 of file SimEnergyDeposit.h.

References startPos.

108 { return startPos.Z(); }
geo::Length_t sim::SimEnergyDeposit::StepLength ( ) const
inline

Definition at line 137 of file SimEnergyDeposit.h.

References endPos, and startPos.

Referenced by larg4::ISCalculationSeparate::CalculateIonization().

137 { return ( endPos - startPos ).R(); }
double sim::SimEnergyDeposit::T ( ) const
inline

Definition at line 129 of file SimEnergyDeposit.h.

References endTime, and startTime.

double sim::SimEnergyDeposit::T0 ( ) const
inline

Definition at line 130 of file SimEnergyDeposit.h.

References startTime.

130 { return startTime; }
double sim::SimEnergyDeposit::T1 ( ) const
inline

Definition at line 131 of file SimEnergyDeposit.h.

References endTime.

131 { return endTime; }
double sim::SimEnergyDeposit::Time ( ) const
inline

Definition at line 98 of file SimEnergyDeposit.h.

References endTime, and startTime.

int sim::SimEnergyDeposit::TrackID ( ) const
inline

Definition at line 99 of file SimEnergyDeposit.h.

References trackID.

99 { return trackID; }
geo::Length_t sim::SimEnergyDeposit::X ( ) const
inline

Definition at line 126 of file SimEnergyDeposit.h.

References endPos, and startPos.

126 { return ( startPos.X() + endPos.X() )/2.; }
geo::Length_t sim::SimEnergyDeposit::Y ( ) const
inline

Definition at line 127 of file SimEnergyDeposit.h.

References endPos, and startPos.

127 { return ( startPos.Y() + endPos.Y() )/2.; }
geo::Length_t sim::SimEnergyDeposit::Z ( ) const
inline

Definition at line 128 of file SimEnergyDeposit.h.

References endPos, and startPos.

128 { return ( startPos.Z() + endPos.Z() )/2.; }

Member Data Documentation

float sim::SimEnergyDeposit::edep
private

Definition at line 184 of file SimEnergyDeposit.h.

Referenced by E(), Energy(), and operator<().

Point_t sim::SimEnergyDeposit::endPos
private

Definition at line 186 of file SimEnergyDeposit.h.

Referenced by End(), EndX(), EndY(), EndZ(), MidPoint(), MidPointX(), MidPointY(), MidPointZ(), StepLength(), X(), Y(), and Z().

double sim::SimEnergyDeposit::endTime
private

Definition at line 188 of file SimEnergyDeposit.h.

Referenced by EndT(), T(), T1(), and Time().

int sim::SimEnergyDeposit::numElectrons
private

Definition at line 183 of file SimEnergyDeposit.h.

Referenced by NumElectrons().

int sim::SimEnergyDeposit::numPhotons
private

Definition at line 182 of file SimEnergyDeposit.h.

Referenced by NumPhotons().

int sim::SimEnergyDeposit::pdgCode
private

Definition at line 190 of file SimEnergyDeposit.h.

Referenced by PdgCode().

Point_t sim::SimEnergyDeposit::startPos
private
double sim::SimEnergyDeposit::startTime
private

Definition at line 187 of file SimEnergyDeposit.h.

Referenced by operator<(), StartT(), T(), T0(), and Time().

int sim::SimEnergyDeposit::trackID
private

Definition at line 189 of file SimEnergyDeposit.h.

Referenced by operator<(), and TrackID().


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