All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
sim::MCShower Class Reference

#include <MCShower.h>

Public Member Functions

 MCShower ()
 Default constructor; clears the local data. More...
 
virtual ~MCShower ()
 Default destructor. More...
 
virtual void Clear ()
 Clear method. More...
 
simb::Origin_t Origin () const
 
int PdgCode () const
 
unsigned int TrackID () const
 
const std::string & Process () const
 
const MCStepStart () const
 
const MCStepEnd () const
 
int MotherPdgCode () const
 
unsigned int MotherTrackID () const
 
const std::string & MotherProcess () const
 
const MCStepMotherStart () const
 
const MCStepMotherEnd () const
 
int AncestorPdgCode () const
 
unsigned int AncestorTrackID () const
 
const std::string & AncestorProcess () const
 
const MCStepAncestorStart () const
 
const MCStepAncestorEnd () const
 
const MCStepDetProfile () const
 
const std::vector< unsigned int > & DaughterTrackID () const
 
double Charge (size_t plane) const
 
double dQdx (size_t plane) const
 
const std::vector< double > & Charge () const
 
const std::vector< double > & dQdx () const
 
double dEdx () const
 
const TVector3 & StartDir () const
 
void Origin (simb::Origin_t o)
 
void PdgCode (int id)
 
void TrackID (unsigned int id)
 
void Process (const std::string &name)
 
void Start (const MCStep &s)
 
void End (const MCStep &s)
 
void StartDir (const TVector3 &sdir)
 
void MotherPdgCode (int id)
 
void MotherTrackID (unsigned int id)
 
void MotherProcess (const std::string &name)
 
void MotherStart (const MCStep &s)
 
void MotherEnd (const MCStep &s)
 
void AncestorPdgCode (int id)
 
void AncestorTrackID (unsigned int id)
 
void AncestorProcess (const std::string &name)
 
void AncestorStart (const MCStep &s)
 
void AncestorEnd (const MCStep &s)
 
void DetProfile (const MCStep &s)
 
void DaughterTrackID (const std::vector< unsigned int > &id_v)
 
void Charge (const std::vector< double > &q)
 Copies the specified charge vector (one entry per plane) into this object. More...
 
void Charge (std::vector< double > &&q)
 Moves the specified charge vector (one entry per plane) into this object. More...
 
void dQdx (const std::vector< double > &dqdx)
 Copies the specified dQ/dx vector (one entry per plane) into this object. More...
 
void dQdx (std::vector< double > &&dqdx)
 Moves the specified dQ/dx vector (one entry per plane) into this object. More...
 
void dEdx (double dedx)
 
void dEdxRAD (double dedx)
 

Protected Member Functions

void ClearData ()
 Clears the fields of this class. More...
 

Protected Attributes

Origin info
simb::Origin_t fOrigin
 
Shower particle info
int fPDGCode
 Shower particle PDG code. More...
 
unsigned int fTrackID
 Shower particle G4 track ID. More...
 
std::string fProcess
 Shower particle's creation process. More...
 
MCStep fStart
 Shower particle's G4 start point. More...
 
MCStep fEnd
 Shower particle's G4 end point. More...
 
TVector3 fStartDir
 
Mother's particle info
int fMotherPDGCode
 Shower's mother PDG code. More...
 
unsigned int fMotherTrackID
 Shower's mother G4 track ID. More...
 
std::string fMotherProcess
 Shower's mother creation process. More...
 
MCStep fMotherStart
 Shower's mother G4 start point. More...
 
MCStep fMotherEnd
 
Ancestor's particle info
int fAncestorPDGCode
 Shower's ancestor PDG code. More...
 
unsigned int fAncestorTrackID
 Shower's ancestor G4 track ID. More...
 
std::string fAncestorProcess
 Shower's ancestor creation process. More...
 
MCStep fAncestorStart
 Shower's ancestor G4 start point. More...
 
MCStep fAncestorEnd
 
Energy deposition info
std::vector< unsigned int > fDaughterTrackID
 Daughters' track ID. More...
 
MCStep fDetProfile
 Combined energy deposition information. More...
 
double fdEdx
 Shower True dEdx. More...
 
double fdEdx_radial
 
Charge per plane
std::vector< double > fPlaneCharge
 Charge deposit per plane. More...
 
std::vector< double > fdQdx
 

Detailed Description

Definition at line 34 of file MCShower.h.

Constructor & Destructor Documentation

sim::MCShower::MCShower ( )
inline

Default constructor; clears the local data.

Definition at line 39 of file MCShower.h.

39 { ClearData(); }
void ClearData()
Clears the fields of this class.
Definition: MCShower.cxx:11
sim::MCShower::~MCShower ( )
virtualdefault

Default destructor.

Member Function Documentation

const MCStep& sim::MCShower::AncestorEnd ( ) const
inline

Definition at line 68 of file MCShower.h.

68 { return fAncestorEnd; }
MCStep fAncestorEnd
Definition: MCShower.h:159
void sim::MCShower::AncestorEnd ( const MCStep s)
inline

Definition at line 104 of file MCShower.h.

104 { fAncestorEnd = s; }
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
MCStep fAncestorEnd
Definition: MCShower.h:159
int sim::MCShower::AncestorPdgCode ( ) const
inline

Definition at line 64 of file MCShower.h.

64 { return fAncestorPDGCode; }
int fAncestorPDGCode
Shower&#39;s ancestor PDG code.
Definition: MCShower.h:155
void sim::MCShower::AncestorPdgCode ( int  id)
inline

Definition at line 100 of file MCShower.h.

100 { fAncestorPDGCode = id; }
int fAncestorPDGCode
Shower&#39;s ancestor PDG code.
Definition: MCShower.h:155
const std::string& sim::MCShower::AncestorProcess ( ) const
inline

Definition at line 66 of file MCShower.h.

66 { return fAncestorProcess; }
std::string fAncestorProcess
Shower&#39;s ancestor creation process.
Definition: MCShower.h:157
void sim::MCShower::AncestorProcess ( const std::string &  name)
inline

Definition at line 102 of file MCShower.h.

102 { fAncestorProcess = name; }
std::string fAncestorProcess
Shower&#39;s ancestor creation process.
Definition: MCShower.h:157
then echo fcl name
const MCStep& sim::MCShower::AncestorStart ( ) const
inline

Definition at line 67 of file MCShower.h.

67 { return fAncestorStart; }
MCStep fAncestorStart
Shower&#39;s ancestor G4 start point.
Definition: MCShower.h:158
void sim::MCShower::AncestorStart ( const MCStep s)
inline

Definition at line 103 of file MCShower.h.

103 { fAncestorStart = s; }
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
MCStep fAncestorStart
Shower&#39;s ancestor G4 start point.
Definition: MCShower.h:158
unsigned int sim::MCShower::AncestorTrackID ( ) const
inline

Definition at line 65 of file MCShower.h.

65 { return fAncestorTrackID; }
unsigned int fAncestorTrackID
Shower&#39;s ancestor G4 track ID.
Definition: MCShower.h:156
void sim::MCShower::AncestorTrackID ( unsigned int  id)
inline

Definition at line 101 of file MCShower.h.

101 { fAncestorTrackID = id; }
unsigned int fAncestorTrackID
Shower&#39;s ancestor G4 track ID.
Definition: MCShower.h:156
double sim::MCShower::Charge ( size_t  plane) const

Definition at line 49 of file MCShower.cxx.

51  {
52  if (plane >= fPlaneCharge.size())
53  throw std::out_of_range("No charge stored for plane " + std::to_string(plane));
54  return fPlaneCharge[plane];
55  } // MCShower::Charge()
std::string to_string(WindowPattern const &pattern)
std::vector< double > fPlaneCharge
Charge deposit per plane.
Definition: MCShower.h:173
const std::vector<double>& sim::MCShower::Charge ( ) const
inline

Definition at line 77 of file MCShower.h.

77 { return fPlaneCharge; }
std::vector< double > fPlaneCharge
Charge deposit per plane.
Definition: MCShower.h:173
void sim::MCShower::Charge ( const std::vector< double > &  q)
inline

Copies the specified charge vector (one entry per plane) into this object.

Definition at line 111 of file MCShower.h.

111 { fPlaneCharge = q; }
std::vector< double > fPlaneCharge
Charge deposit per plane.
Definition: MCShower.h:173
void sim::MCShower::Charge ( std::vector< double > &&  q)
inline

Moves the specified charge vector (one entry per plane) into this object.

Definition at line 113 of file MCShower.h.

113 { fPlaneCharge = std::move(q); }
std::vector< double > fPlaneCharge
Charge deposit per plane.
Definition: MCShower.h:173
virtual void sim::MCShower::Clear ( )
inlinevirtual

Clear method.

Definition at line 46 of file MCShower.h.

46 { ClearData(); }
void ClearData()
Clears the fields of this class.
Definition: MCShower.cxx:11
void sim::MCShower::ClearData ( )
protected

Clears the fields of this class.

Definition at line 11 of file MCShower.cxx.

13  {
14  TLorentzVector invalid(kINVALID_DOUBLE,
18  MCStep invalid_step(invalid,invalid);
19 
20  fOrigin = simb::kUnknown;
21 
24  fProcess = "";
25  fStart = invalid_step;
26  fEnd = invalid_step;
27 
30  fMotherProcess = "";
31  fMotherStart = invalid_step;
32  fMotherEnd = invalid_step;
33 
36  fAncestorProcess = "";
37  fAncestorStart = invalid_step;
38  fAncestorEnd = invalid_step;
39 
40  fDetProfile = invalid_step;
41 
42  fDaughterTrackID.clear();
43  fPlaneCharge.clear();
45  fdQdx.clear();
46  }
const double kINVALID_DOUBLE
Definition: MCLimits.h:10
const int kINVALID_INT
Definition: MCLimits.h:16
int fMotherPDGCode
Shower&#39;s mother PDG code.
Definition: MCShower.h:146
unsigned int fAncestorTrackID
Shower&#39;s ancestor G4 track ID.
Definition: MCShower.h:156
MCStep fStart
Shower particle&#39;s G4 start point.
Definition: MCShower.h:138
unsigned int fTrackID
Shower particle G4 track ID.
Definition: MCShower.h:136
MCStep fDetProfile
Combined energy deposition information.
Definition: MCShower.h:165
unsigned int fMotherTrackID
Shower&#39;s mother G4 track ID.
Definition: MCShower.h:147
std::string fAncestorProcess
Shower&#39;s ancestor creation process.
Definition: MCShower.h:157
int fPDGCode
Shower particle PDG code.
Definition: MCShower.h:135
int fAncestorPDGCode
Shower&#39;s ancestor PDG code.
Definition: MCShower.h:155
std::string fProcess
Shower particle&#39;s creation process.
Definition: MCShower.h:137
double fdEdx
Shower True dEdx.
Definition: MCShower.h:166
std::string fMotherProcess
Shower&#39;s mother creation process.
Definition: MCShower.h:148
MCStep fMotherStart
Shower&#39;s mother G4 start point.
Definition: MCShower.h:149
std::vector< double > fdQdx
Definition: MCShower.h:174
simb::Origin_t fOrigin
Definition: MCShower.h:130
MCStep fEnd
Shower particle&#39;s G4 end point.
Definition: MCShower.h:139
std::vector< unsigned int > fDaughterTrackID
Daughters&#39; track ID.
Definition: MCShower.h:164
const unsigned int kINVALID_UINT
Definition: MCLimits.h:14
std::vector< double > fPlaneCharge
Charge deposit per plane.
Definition: MCShower.h:173
MCStep fMotherEnd
Definition: MCShower.h:150
MCStep fAncestorStart
Shower&#39;s ancestor G4 start point.
Definition: MCShower.h:158
MCStep fAncestorEnd
Definition: MCShower.h:159
const std::vector<unsigned int>& sim::MCShower::DaughterTrackID ( ) const
inline

Definition at line 72 of file MCShower.h.

72 { return fDaughterTrackID; }
std::vector< unsigned int > fDaughterTrackID
Daughters&#39; track ID.
Definition: MCShower.h:164
void sim::MCShower::DaughterTrackID ( const std::vector< unsigned int > &  id_v)
inline

Definition at line 108 of file MCShower.h.

108 { fDaughterTrackID = id_v; }
std::vector< unsigned int > fDaughterTrackID
Daughters&#39; track ID.
Definition: MCShower.h:164
double sim::MCShower::dEdx ( ) const
inline

Definition at line 81 of file MCShower.h.

81 { return fdEdx; }
double fdEdx
Shower True dEdx.
Definition: MCShower.h:166
void sim::MCShower::dEdx ( double  dedx)
inline

Definition at line 120 of file MCShower.h.

120 {fdEdx = dedx;}
double fdEdx
Shower True dEdx.
Definition: MCShower.h:166
void sim::MCShower::dEdxRAD ( double  dedx)
inline

Definition at line 121 of file MCShower.h.

121 {fdEdx_radial = dedx;}
double fdEdx_radial
Definition: MCShower.h:167
const MCStep& sim::MCShower::DetProfile ( ) const
inline

Definition at line 70 of file MCShower.h.

70 { return fDetProfile; }
MCStep fDetProfile
Combined energy deposition information.
Definition: MCShower.h:165
void sim::MCShower::DetProfile ( const MCStep s)
inline

Definition at line 106 of file MCShower.h.

106 { fDetProfile = s; }
MCStep fDetProfile
Combined energy deposition information.
Definition: MCShower.h:165
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
double sim::MCShower::dQdx ( size_t  plane) const

Definition at line 58 of file MCShower.cxx.

60  {
61  if (plane >= fdQdx.size())
62  throw std::out_of_range("No dQ/dx stored for plane " + std::to_string(plane));
63  return fdQdx[plane];
64  } // MCShower::dQdx()
std::vector< double > fdQdx
Definition: MCShower.h:174
std::string to_string(WindowPattern const &pattern)
const std::vector<double>& sim::MCShower::dQdx ( ) const
inline

Definition at line 78 of file MCShower.h.

78 { return fdQdx; }
std::vector< double > fdQdx
Definition: MCShower.h:174
void sim::MCShower::dQdx ( const std::vector< double > &  dqdx)
inline

Copies the specified dQ/dx vector (one entry per plane) into this object.

Definition at line 116 of file MCShower.h.

116 { fdQdx = dqdx; }
std::vector< double > fdQdx
Definition: MCShower.h:174
void sim::MCShower::dQdx ( std::vector< double > &&  dqdx)
inline

Moves the specified dQ/dx vector (one entry per plane) into this object.

Definition at line 118 of file MCShower.h.

118 { fdQdx = std::move(dqdx); }
std::vector< double > fdQdx
Definition: MCShower.h:174
const MCStep& sim::MCShower::End ( ) const
inline

Definition at line 56 of file MCShower.h.

56 { return fEnd; }
MCStep fEnd
Shower particle&#39;s G4 end point.
Definition: MCShower.h:139
void sim::MCShower::End ( const MCStep s)
inline

Definition at line 91 of file MCShower.h.

91 { fEnd = s; }
MCStep fEnd
Shower particle&#39;s G4 end point.
Definition: MCShower.h:139
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
const MCStep& sim::MCShower::MotherEnd ( ) const
inline

Definition at line 62 of file MCShower.h.

62 { return fMotherEnd; }
MCStep fMotherEnd
Definition: MCShower.h:150
void sim::MCShower::MotherEnd ( const MCStep s)
inline

Definition at line 98 of file MCShower.h.

98 { fMotherEnd = s; }
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
MCStep fMotherEnd
Definition: MCShower.h:150
int sim::MCShower::MotherPdgCode ( ) const
inline

Definition at line 58 of file MCShower.h.

58 { return fMotherPDGCode; }
int fMotherPDGCode
Shower&#39;s mother PDG code.
Definition: MCShower.h:146
void sim::MCShower::MotherPdgCode ( int  id)
inline

Definition at line 94 of file MCShower.h.

94 { fMotherPDGCode = id; }
int fMotherPDGCode
Shower&#39;s mother PDG code.
Definition: MCShower.h:146
const std::string& sim::MCShower::MotherProcess ( ) const
inline

Definition at line 60 of file MCShower.h.

60 { return fMotherProcess; }
std::string fMotherProcess
Shower&#39;s mother creation process.
Definition: MCShower.h:148
void sim::MCShower::MotherProcess ( const std::string &  name)
inline

Definition at line 96 of file MCShower.h.

96 { fMotherProcess = name; }
std::string fMotherProcess
Shower&#39;s mother creation process.
Definition: MCShower.h:148
then echo fcl name
const MCStep& sim::MCShower::MotherStart ( ) const
inline

Definition at line 61 of file MCShower.h.

61 { return fMotherStart; }
MCStep fMotherStart
Shower&#39;s mother G4 start point.
Definition: MCShower.h:149
void sim::MCShower::MotherStart ( const MCStep s)
inline

Definition at line 97 of file MCShower.h.

97 { fMotherStart = s; }
MCStep fMotherStart
Shower&#39;s mother G4 start point.
Definition: MCShower.h:149
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
unsigned int sim::MCShower::MotherTrackID ( ) const
inline

Definition at line 59 of file MCShower.h.

59 { return fMotherTrackID; }
unsigned int fMotherTrackID
Shower&#39;s mother G4 track ID.
Definition: MCShower.h:147
void sim::MCShower::MotherTrackID ( unsigned int  id)
inline

Definition at line 95 of file MCShower.h.

95 { fMotherTrackID = id; }
unsigned int fMotherTrackID
Shower&#39;s mother G4 track ID.
Definition: MCShower.h:147
simb::Origin_t sim::MCShower::Origin ( ) const
inline

Definition at line 50 of file MCShower.h.

50 { return fOrigin; }
simb::Origin_t fOrigin
Definition: MCShower.h:130
void sim::MCShower::Origin ( simb::Origin_t  o)
inline

Definition at line 85 of file MCShower.h.

85 { fOrigin = o; }
simb::Origin_t fOrigin
Definition: MCShower.h:130
int sim::MCShower::PdgCode ( ) const
inline

Definition at line 52 of file MCShower.h.

52 { return fPDGCode; }
int fPDGCode
Shower particle PDG code.
Definition: MCShower.h:135
void sim::MCShower::PdgCode ( int  id)
inline

Definition at line 87 of file MCShower.h.

87 { fPDGCode = id; }
int fPDGCode
Shower particle PDG code.
Definition: MCShower.h:135
const std::string& sim::MCShower::Process ( ) const
inline

Definition at line 54 of file MCShower.h.

54 { return fProcess; }
std::string fProcess
Shower particle&#39;s creation process.
Definition: MCShower.h:137
void sim::MCShower::Process ( const std::string &  name)
inline

Definition at line 89 of file MCShower.h.

89 { fProcess = name; }
std::string fProcess
Shower particle&#39;s creation process.
Definition: MCShower.h:137
then echo fcl name
const MCStep& sim::MCShower::Start ( ) const
inline

Definition at line 55 of file MCShower.h.

55 { return fStart; }
MCStep fStart
Shower particle&#39;s G4 start point.
Definition: MCShower.h:138
void sim::MCShower::Start ( const MCStep s)
inline

Definition at line 90 of file MCShower.h.

90 { fStart = s; }
MCStep fStart
Shower particle&#39;s G4 start point.
Definition: MCShower.h:138
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
const TVector3& sim::MCShower::StartDir ( ) const
inline

Definition at line 82 of file MCShower.h.

82 {return fStartDir;}
TVector3 fStartDir
Definition: MCShower.h:140
void sim::MCShower::StartDir ( const TVector3 &  sdir)
inline

Definition at line 92 of file MCShower.h.

92 { fStartDir = sdir; }
TVector3 fStartDir
Definition: MCShower.h:140
unsigned int sim::MCShower::TrackID ( ) const
inline

Definition at line 53 of file MCShower.h.

53 { return fTrackID; }
unsigned int fTrackID
Shower particle G4 track ID.
Definition: MCShower.h:136
void sim::MCShower::TrackID ( unsigned int  id)
inline

Definition at line 88 of file MCShower.h.

88 { fTrackID = id; }
unsigned int fTrackID
Shower particle G4 track ID.
Definition: MCShower.h:136

Member Data Documentation

MCStep sim::MCShower::fAncestorEnd
protected

Shower's ancestor G4 end point

Definition at line 159 of file MCShower.h.

int sim::MCShower::fAncestorPDGCode
protected

Shower's ancestor PDG code.

Definition at line 155 of file MCShower.h.

std::string sim::MCShower::fAncestorProcess
protected

Shower's ancestor creation process.

Definition at line 157 of file MCShower.h.

MCStep sim::MCShower::fAncestorStart
protected

Shower's ancestor G4 start point.

Definition at line 158 of file MCShower.h.

unsigned int sim::MCShower::fAncestorTrackID
protected

Shower's ancestor G4 track ID.

Definition at line 156 of file MCShower.h.

std::vector<unsigned int> sim::MCShower::fDaughterTrackID
protected

Daughters' track ID.

Definition at line 164 of file MCShower.h.

double sim::MCShower::fdEdx
protected

Shower True dEdx.

Definition at line 166 of file MCShower.h.

double sim::MCShower::fdEdx_radial
protected

Shower True dEdx, with a radial requirement

Definition at line 167 of file MCShower.h.

MCStep sim::MCShower::fDetProfile
protected

Combined energy deposition information.

Definition at line 165 of file MCShower.h.

std::vector<double> sim::MCShower::fdQdx
protected

Charge deposit per plane

Definition at line 174 of file MCShower.h.

MCStep sim::MCShower::fEnd
protected

Shower particle's G4 end point.

Definition at line 139 of file MCShower.h.

MCStep sim::MCShower::fMotherEnd
protected

Shower's mother G4 end point

Definition at line 150 of file MCShower.h.

int sim::MCShower::fMotherPDGCode
protected

Shower's mother PDG code.

Definition at line 146 of file MCShower.h.

std::string sim::MCShower::fMotherProcess
protected

Shower's mother creation process.

Definition at line 148 of file MCShower.h.

MCStep sim::MCShower::fMotherStart
protected

Shower's mother G4 start point.

Definition at line 149 of file MCShower.h.

unsigned int sim::MCShower::fMotherTrackID
protected

Shower's mother G4 track ID.

Definition at line 147 of file MCShower.h.

simb::Origin_t sim::MCShower::fOrigin
protected

Origin information

Definition at line 130 of file MCShower.h.

int sim::MCShower::fPDGCode
protected

Shower particle PDG code.

Definition at line 135 of file MCShower.h.

std::vector<double> sim::MCShower::fPlaneCharge
protected

Charge deposit per plane.

Definition at line 173 of file MCShower.h.

std::string sim::MCShower::fProcess
protected

Shower particle's creation process.

Definition at line 137 of file MCShower.h.

MCStep sim::MCShower::fStart
protected

Shower particle's G4 start point.

Definition at line 138 of file MCShower.h.

TVector3 sim::MCShower::fStartDir
protected

Shower Starting Direction, within the first 2.4cm

Definition at line 140 of file MCShower.h.

unsigned int sim::MCShower::fTrackID
protected

Shower particle G4 track ID.

Definition at line 136 of file MCShower.h.


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