LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
sim::MCTrack Class Reference

#include "MCTrack.h"

Inheritance diagram for sim::MCTrack:

Public Member Functions

 MCTrack ()
 Default constructor. More...
 
virtual ~MCTrack ()
 Default destructor. More...
 
void Clear ()
 
simb::Origin_t Origin () const
 
int PdgCode () const
 
unsigned int TrackID () const
 
const std::string & Process () const
 
const MCStepStart () const
 
const MCStepEnd () const
 
const std::vector< std::vector< double > > & dQdx () const
 
const std::vector< double > & dEdx () 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
 
void Origin (simb::Origin_t o)
 
void PdgCode (int id)
 
void TrackID (unsigned int id)
 
void Process (std::string name)
 
void Start (const MCStep s)
 
void End (const MCStep s)
 
void dEdx (const std::vector< double > s)
 
void dQdx (const std::vector< std::vector< double >> s)
 
void MotherPdgCode (int id)
 
void MotherTrackID (unsigned int id)
 
void MotherProcess (const std::string &n)
 
void MotherStart (const MCStep &s)
 
void MotherEnd (const MCStep &s)
 
void AncestorPdgCode (int id)
 
void AncestorTrackID (unsigned int id)
 
void AncestorProcess (const std::string &n)
 
void AncestorStart (const MCStep &s)
 
void AncestorEnd (const MCStep &s)
 

Public Attributes

elements
 STL member. More...
 

Protected Attributes

simb::Origin_t fOrigin
 Origin of this particle (see simb::Origin_t) More...
 
int fPDGCode
 PDG code of this track particle. More...
 
unsigned int fTrackID
 G4 track ID. More...
 
std::string fProcess
 G4 creation process of this track particle. More...
 
MCStep fStart
 G4 start position/momentum of this track particle. More...
 
MCStep fEnd
 G4 end position/momentum of this track particle. More...
 
std::vector< std::vector< double > > fdQdx
 
std::vector< double > fdEdx
 
int fMotherPDGCode
 This particle's mother's PDG code. More...
 
unsigned int fMotherTrackID
 This particle's mother's G4 track ID. More...
 
std::string fMotherProcess
 This particle's mother's G4 process name. More...
 
MCStep fMotherStart
 This particle's mother's G4 start position/momentum. More...
 
MCStep fMotherEnd
 This particle's mother's G4 end position/momentum. More...
 
int fAncestorPDGCode
 This particle's ancestor's PDG code. More...
 
unsigned int fAncestorTrackID
 This particle's ancestor's G4 track ID. More...
 
std::string fAncestorProcess
 This particle's ancestor's G4 process name. More...
 
MCStep fAncestorStart
 This particle's ancestor's G4 start position/momentum. More...
 
MCStep fAncestorEnd
 This particle's ancestor's G4 start position/momentum. More...
 

Detailed Description

Definition at line 27 of file MCTrack.h.

Constructor & Destructor Documentation

sim::MCTrack::MCTrack ( )
inline

Default constructor.

Definition at line 31 of file MCTrack.h.

References Clear().

31 : std::vector<sim::MCStep>() { Clear(); }
void Clear()
Definition: MCTrack.cxx:5
virtual sim::MCTrack::~MCTrack ( )
inlinevirtual

Default destructor.

Definition at line 34 of file MCTrack.h.

References Clear().

34 {}

Member Function Documentation

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

Definition at line 60 of file MCTrack.h.

References fAncestorEnd.

Referenced by sim::DumpMCTracks::DumpMCTrack(), and sim::MCTrackRecoAlg::Reconstruct().

60 { return fAncestorEnd; }
MCStep fAncestorEnd
This particle&#39;s ancestor&#39;s G4 start position/momentum.
Definition: MCTrack.h:105
void sim::MCTrack::AncestorEnd ( const MCStep s)
inline

Definition at line 81 of file MCTrack.h.

References fAncestorEnd.

81 { fAncestorEnd = s; }
MCStep fAncestorEnd
This particle&#39;s ancestor&#39;s G4 start position/momentum.
Definition: MCTrack.h:105
int sim::MCTrack::AncestorPdgCode ( ) const
inline

Definition at line 56 of file MCTrack.h.

References fAncestorPDGCode.

Referenced by sim::DumpMCTracks::DumpMCTrack(), sim::MCTrackCollectionAnaAlg::FillDominantParticleInfo(), and sim::MCTrackRecoAlg::Reconstruct().

56 { return fAncestorPDGCode; }
int fAncestorPDGCode
This particle&#39;s ancestor&#39;s PDG code.
Definition: MCTrack.h:101
void sim::MCTrack::AncestorPdgCode ( int  id)
inline

Definition at line 77 of file MCTrack.h.

References fAncestorPDGCode.

77 { fAncestorPDGCode = id; }
int fAncestorPDGCode
This particle&#39;s ancestor&#39;s PDG code.
Definition: MCTrack.h:101
const std::string& sim::MCTrack::AncestorProcess ( ) const
inline

Definition at line 58 of file MCTrack.h.

References fMotherProcess.

Referenced by sim::DumpMCTracks::DumpMCTrack(), and sim::MCTrackRecoAlg::Reconstruct().

58 { return fMotherProcess; }
std::string fMotherProcess
This particle&#39;s mother&#39;s G4 process name.
Definition: MCTrack.h:97
void sim::MCTrack::AncestorProcess ( const std::string &  n)
inline

Definition at line 79 of file MCTrack.h.

References fAncestorProcess, and n.

79 { fAncestorProcess = n; }
Char_t n[5]
std::string fAncestorProcess
This particle&#39;s ancestor&#39;s G4 process name.
Definition: MCTrack.h:103
const MCStep& sim::MCTrack::AncestorStart ( ) const
inline

Definition at line 59 of file MCTrack.h.

References fAncestorStart.

Referenced by sim::DumpMCTracks::DumpMCTrack(), and sim::MCTrackRecoAlg::Reconstruct().

59 { return fAncestorStart; }
MCStep fAncestorStart
This particle&#39;s ancestor&#39;s G4 start position/momentum.
Definition: MCTrack.h:104
void sim::MCTrack::AncestorStart ( const MCStep s)
inline

Definition at line 80 of file MCTrack.h.

References fAncestorStart.

80 { fAncestorStart = s; }
MCStep fAncestorStart
This particle&#39;s ancestor&#39;s G4 start position/momentum.
Definition: MCTrack.h:104
unsigned int sim::MCTrack::AncestorTrackID ( ) const
inline

Definition at line 57 of file MCTrack.h.

References fAncestorTrackID.

Referenced by sim::DumpMCTracks::DumpMCTrack(), sim::MCTrackCollectionAnaAlg::FillDominantParticleInfo(), and sim::MCTrackRecoAlg::Reconstruct().

57 { return fAncestorTrackID; }
unsigned int fAncestorTrackID
This particle&#39;s ancestor&#39;s G4 track ID.
Definition: MCTrack.h:102
void sim::MCTrack::AncestorTrackID ( unsigned int  id)
inline

Definition at line 78 of file MCTrack.h.

References fAncestorTrackID.

78 { fAncestorTrackID = id; }
unsigned int fAncestorTrackID
This particle&#39;s ancestor&#39;s G4 track ID.
Definition: MCTrack.h:102
void sim::MCTrack::Clear ( )

Definition at line 5 of file MCTrack.cxx.

References clear(), fAncestorEnd, fAncestorPDGCode, fAncestorProcess, fAncestorStart, fAncestorTrackID, fdEdx, fdQdx, fEnd, fMotherEnd, fMotherPDGCode, fMotherProcess, fMotherStart, fMotherTrackID, fOrigin, fPDGCode, fProcess, fStart, fTrackID, sim::kINVALID_DOUBLE, sim::kINVALID_INT, sim::kINVALID_UINT, and simb::kUnknown.

Referenced by MCTrack(), and ~MCTrack().

6  {
8 
10  fProcess = "";
13 
16  fMotherProcess = "";
17 
20  fAncestorProcess = "";
21 
23 
24  MCStep invalid_step(invalid, invalid);
25 
26  fStart = invalid_step;
27  fEnd = invalid_step;
28 
29  fdEdx.clear();
30  fdQdx.clear();
31 
32  fMotherStart = invalid_step;
33  fMotherEnd = invalid_step;
34 
35  fAncestorStart = invalid_step;
36  fAncestorEnd = invalid_step;
37  }
const double kINVALID_DOUBLE
Definition: MCLimits.h:10
MCStep fStart
G4 start position/momentum of this track particle.
Definition: MCTrack.h:88
MCStep fMotherEnd
This particle&#39;s mother&#39;s G4 end position/momentum.
Definition: MCTrack.h:99
unsigned int fAncestorTrackID
This particle&#39;s ancestor&#39;s G4 track ID.
Definition: MCTrack.h:102
const int kINVALID_INT
Definition: MCLimits.h:16
std::string fProcess
G4 creation process of this track particle.
Definition: MCTrack.h:87
std::vector< double > fdEdx
Definition: MCTrack.h:93
int fPDGCode
PDG code of this track particle.
Definition: MCTrack.h:85
int fMotherPDGCode
This particle&#39;s mother&#39;s PDG code.
Definition: MCTrack.h:95
MCStep fEnd
G4 end position/momentum of this track particle.
Definition: MCTrack.h:89
int fAncestorPDGCode
This particle&#39;s ancestor&#39;s PDG code.
Definition: MCTrack.h:101
simb::Origin_t fOrigin
Origin of this particle (see simb::Origin_t)
Definition: MCTrack.h:84
MCStep fAncestorEnd
This particle&#39;s ancestor&#39;s G4 start position/momentum.
Definition: MCTrack.h:105
std::string fMotherProcess
This particle&#39;s mother&#39;s G4 process name.
Definition: MCTrack.h:97
unsigned int fTrackID
G4 track ID.
Definition: MCTrack.h:86
MCStep fAncestorStart
This particle&#39;s ancestor&#39;s G4 start position/momentum.
Definition: MCTrack.h:104
unsigned int fMotherTrackID
This particle&#39;s mother&#39;s G4 track ID.
Definition: MCTrack.h:96
std::vector< std::vector< double > > fdQdx
Definition: MCTrack.h:91
const unsigned int kINVALID_UINT
Definition: MCLimits.h:14
MCStep fMotherStart
This particle&#39;s mother&#39;s G4 start position/momentum.
Definition: MCTrack.h:98
std::string fAncestorProcess
This particle&#39;s ancestor&#39;s G4 process name.
Definition: MCTrack.h:103
vec_iX clear()
const std::vector<double>& sim::MCTrack::dEdx ( ) const
inline

Definition at line 48 of file MCTrack.h.

References fdEdx.

Referenced by sim::DumpMCTracks::DumpMCTrack().

48 { return fdEdx; } // dEdx[# of MCSteps]
std::vector< double > fdEdx
Definition: MCTrack.h:93
void sim::MCTrack::dEdx ( const std::vector< double >  s)
inline

Definition at line 68 of file MCTrack.h.

References fdEdx.

68 { fdEdx = s; }
std::vector< double > fdEdx
Definition: MCTrack.h:93
const std::vector<std::vector<double> >& sim::MCTrack::dQdx ( ) const
inline

Definition at line 44 of file MCTrack.h.

References fdQdx.

Referenced by sim::DumpMCTracks::DumpMCTrack().

45  {
46  return fdQdx;
47  } // dQdx[# of MCSteps][# of plane]
std::vector< std::vector< double > > fdQdx
Definition: MCTrack.h:91
void sim::MCTrack::dQdx ( const std::vector< std::vector< double >>  s)
inline

Definition at line 69 of file MCTrack.h.

References fdQdx.

69 { fdQdx = s; }
std::vector< std::vector< double > > fdQdx
Definition: MCTrack.h:91
const MCStep& sim::MCTrack::End ( ) const
inline

Definition at line 43 of file MCTrack.h.

References fEnd.

Referenced by sim::DumpMCTracks::DumpMCTrack(), and sim::MCTrackRecoAlg::Reconstruct().

43 { return fEnd; }
MCStep fEnd
G4 end position/momentum of this track particle.
Definition: MCTrack.h:89
void sim::MCTrack::End ( const MCStep  s)
inline

Definition at line 67 of file MCTrack.h.

References fEnd.

67 { fEnd = s; }
MCStep fEnd
G4 end position/momentum of this track particle.
Definition: MCTrack.h:89
const MCStep& sim::MCTrack::MotherEnd ( ) const
inline

Definition at line 54 of file MCTrack.h.

References fMotherEnd.

Referenced by sim::DumpMCTracks::DumpMCTrack(), and sim::MCTrackRecoAlg::Reconstruct().

54 { return fMotherEnd; }
MCStep fMotherEnd
This particle&#39;s mother&#39;s G4 end position/momentum.
Definition: MCTrack.h:99
void sim::MCTrack::MotherEnd ( const MCStep s)
inline

Definition at line 75 of file MCTrack.h.

References fMotherEnd.

75 { fMotherEnd = s; }
MCStep fMotherEnd
This particle&#39;s mother&#39;s G4 end position/momentum.
Definition: MCTrack.h:99
int sim::MCTrack::MotherPdgCode ( ) const
inline

Definition at line 50 of file MCTrack.h.

References fMotherPDGCode.

Referenced by sim::DumpMCTracks::DumpMCTrack(), sim::MCTrackCollectionAnaAlg::FillDominantParticleInfo(), and sim::MCTrackRecoAlg::Reconstruct().

50 { return fMotherPDGCode; }
int fMotherPDGCode
This particle&#39;s mother&#39;s PDG code.
Definition: MCTrack.h:95
void sim::MCTrack::MotherPdgCode ( int  id)
inline

Definition at line 71 of file MCTrack.h.

References fMotherPDGCode.

71 { fMotherPDGCode = id; }
int fMotherPDGCode
This particle&#39;s mother&#39;s PDG code.
Definition: MCTrack.h:95
const std::string& sim::MCTrack::MotherProcess ( ) const
inline

Definition at line 52 of file MCTrack.h.

References fMotherProcess.

Referenced by sim::DumpMCTracks::DumpMCTrack(), and sim::MCTrackRecoAlg::Reconstruct().

52 { return fMotherProcess; }
std::string fMotherProcess
This particle&#39;s mother&#39;s G4 process name.
Definition: MCTrack.h:97
void sim::MCTrack::MotherProcess ( const std::string &  n)
inline

Definition at line 73 of file MCTrack.h.

References fMotherProcess, and n.

73 { fMotherProcess = n; }
std::string fMotherProcess
This particle&#39;s mother&#39;s G4 process name.
Definition: MCTrack.h:97
Char_t n[5]
const MCStep& sim::MCTrack::MotherStart ( ) const
inline

Definition at line 53 of file MCTrack.h.

References fMotherStart.

Referenced by sim::DumpMCTracks::DumpMCTrack(), and sim::MCTrackRecoAlg::Reconstruct().

53 { return fMotherStart; }
MCStep fMotherStart
This particle&#39;s mother&#39;s G4 start position/momentum.
Definition: MCTrack.h:98
void sim::MCTrack::MotherStart ( const MCStep s)
inline

Definition at line 74 of file MCTrack.h.

References fMotherStart.

74 { fMotherStart = s; }
MCStep fMotherStart
This particle&#39;s mother&#39;s G4 start position/momentum.
Definition: MCTrack.h:98
unsigned int sim::MCTrack::MotherTrackID ( ) const
inline

Definition at line 51 of file MCTrack.h.

References fMotherTrackID.

Referenced by sim::DumpMCTracks::DumpMCTrack(), sim::MCTrackCollectionAnaAlg::FillDominantParticleInfo(), and sim::MCTrackRecoAlg::Reconstruct().

51 { return fMotherTrackID; }
unsigned int fMotherTrackID
This particle&#39;s mother&#39;s G4 track ID.
Definition: MCTrack.h:96
void sim::MCTrack::MotherTrackID ( unsigned int  id)
inline

Definition at line 72 of file MCTrack.h.

References fMotherTrackID.

72 { fMotherTrackID = id; }
unsigned int fMotherTrackID
This particle&#39;s mother&#39;s G4 track ID.
Definition: MCTrack.h:96
simb::Origin_t sim::MCTrack::Origin ( ) const
inline

Definition at line 38 of file MCTrack.h.

References fOrigin.

Referenced by trkf::TrackAna::analyze(), sim::DumpMCTracks::DumpMCTrack(), sim::MCTrackCollectionAnaAlg::FillDominantParticleInfo(), and sim::MCTrackRecoAlg::Reconstruct().

38 { return fOrigin; }
simb::Origin_t fOrigin
Origin of this particle (see simb::Origin_t)
Definition: MCTrack.h:84
void sim::MCTrack::Origin ( simb::Origin_t  o)
inline

Definition at line 62 of file MCTrack.h.

References fOrigin.

62 { fOrigin = o; }
simb::Origin_t fOrigin
Origin of this particle (see simb::Origin_t)
Definition: MCTrack.h:84
void sim::MCTrack::PdgCode ( int  id)
inline

Definition at line 63 of file MCTrack.h.

References fPDGCode.

63 { fPDGCode = id; }
int fPDGCode
PDG code of this track particle.
Definition: MCTrack.h:85
const std::string& sim::MCTrack::Process ( ) const
inline

Definition at line 41 of file MCTrack.h.

References fProcess.

Referenced by sim::DumpMCTracks::DumpMCTrack(), trkf::KalmanFilterTrajectoryFitter::produce(), trkf::KalmanFilterFinalTrackFitter::produce(), and sim::MCTrackRecoAlg::Reconstruct().

41 { return fProcess; }
std::string fProcess
G4 creation process of this track particle.
Definition: MCTrack.h:87
void sim::MCTrack::Process ( std::string  name)
inline

Definition at line 65 of file MCTrack.h.

References fProcess.

65 { fProcess = name; }
std::string fProcess
G4 creation process of this track particle.
Definition: MCTrack.h:87
const MCStep& sim::MCTrack::Start ( ) const
inline
void sim::MCTrack::Start ( const MCStep  s)
inline

Definition at line 66 of file MCTrack.h.

References fStart.

66 { fStart = s; }
MCStep fStart
G4 start position/momentum of this track particle.
Definition: MCTrack.h:88
unsigned int sim::MCTrack::TrackID ( ) const
inline
void sim::MCTrack::TrackID ( unsigned int  id)
inline

Definition at line 64 of file MCTrack.h.

References fTrackID.

64 { fTrackID = id; }
unsigned int fTrackID
G4 track ID.
Definition: MCTrack.h:86

Member Data Documentation

T std::vector< T >::elements
inherited

STL member.

MCStep sim::MCTrack::fAncestorEnd
protected

This particle's ancestor's G4 start position/momentum.

Definition at line 105 of file MCTrack.h.

Referenced by AncestorEnd(), and Clear().

int sim::MCTrack::fAncestorPDGCode
protected

This particle's ancestor's PDG code.

Definition at line 101 of file MCTrack.h.

Referenced by AncestorPdgCode(), and Clear().

std::string sim::MCTrack::fAncestorProcess
protected

This particle's ancestor's G4 process name.

Definition at line 103 of file MCTrack.h.

Referenced by AncestorProcess(), and Clear().

MCStep sim::MCTrack::fAncestorStart
protected

This particle's ancestor's G4 start position/momentum.

Definition at line 104 of file MCTrack.h.

Referenced by AncestorStart(), and Clear().

unsigned int sim::MCTrack::fAncestorTrackID
protected

This particle's ancestor's G4 track ID.

Definition at line 102 of file MCTrack.h.

Referenced by AncestorTrackID(), and Clear().

std::vector<double> sim::MCTrack::fdEdx
protected

Definition at line 93 of file MCTrack.h.

Referenced by Clear(), and dEdx().

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

Definition at line 91 of file MCTrack.h.

Referenced by Clear(), and dQdx().

MCStep sim::MCTrack::fEnd
protected

G4 end position/momentum of this track particle.

Definition at line 89 of file MCTrack.h.

Referenced by Clear(), and End().

MCStep sim::MCTrack::fMotherEnd
protected

This particle's mother's G4 end position/momentum.

Definition at line 99 of file MCTrack.h.

Referenced by Clear(), and MotherEnd().

int sim::MCTrack::fMotherPDGCode
protected

This particle's mother's PDG code.

Definition at line 95 of file MCTrack.h.

Referenced by Clear(), and MotherPdgCode().

std::string sim::MCTrack::fMotherProcess
protected

This particle's mother's G4 process name.

Definition at line 97 of file MCTrack.h.

Referenced by AncestorProcess(), Clear(), and MotherProcess().

MCStep sim::MCTrack::fMotherStart
protected

This particle's mother's G4 start position/momentum.

Definition at line 98 of file MCTrack.h.

Referenced by Clear(), and MotherStart().

unsigned int sim::MCTrack::fMotherTrackID
protected

This particle's mother's G4 track ID.

Definition at line 96 of file MCTrack.h.

Referenced by Clear(), and MotherTrackID().

simb::Origin_t sim::MCTrack::fOrigin
protected

Origin of this particle (see simb::Origin_t)

Definition at line 84 of file MCTrack.h.

Referenced by Clear(), and Origin().

int sim::MCTrack::fPDGCode
protected

PDG code of this track particle.

Definition at line 85 of file MCTrack.h.

Referenced by Clear(), and PdgCode().

std::string sim::MCTrack::fProcess
protected

G4 creation process of this track particle.

Definition at line 87 of file MCTrack.h.

Referenced by Clear(), and Process().

MCStep sim::MCTrack::fStart
protected

G4 start position/momentum of this track particle.

Definition at line 88 of file MCTrack.h.

Referenced by Clear(), and Start().

unsigned int sim::MCTrack::fTrackID
protected

G4 track ID.

Definition at line 86 of file MCTrack.h.

Referenced by Clear(), and TrackID().


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