LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 32 of file MCTrack.h.

References Clear().

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

Default destructor.

Definition at line 35 of file MCTrack.h.

References Clear().

35 {}

Member Function Documentation

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

Definition at line 59 of file MCTrack.h.

References fAncestorEnd.

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

59 { 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, and s.

81 { fAncestorEnd = s; }
Float_t s
Definition: plot.C:23
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 55 of file MCTrack.h.

References fAncestorPDGCode.

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

55 { 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 57 of file MCTrack.h.

References fMotherProcess.

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

57 { 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 58 of file MCTrack.h.

References fAncestorStart.

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

58 { 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, and s.

80 { fAncestorStart = s; }
Float_t s
Definition: plot.C:23
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 56 of file MCTrack.h.

References fAncestorTrackID.

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

56 { 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 8 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().

9  {
11 
13  fProcess = "";
16 
19  fMotherProcess = "";
20 
23  fAncestorProcess = "";
24 
25  TLorentzVector invalid(kINVALID_DOUBLE,
29 
30  MCStep invalid_step(invalid,invalid);
31 
32  fStart = invalid_step;
33  fEnd = invalid_step;
34 
35  fdEdx.clear();
36  fdQdx.clear();
37 
38  fMotherStart = invalid_step;
39  fMotherEnd = invalid_step;
40 
41  fAncestorStart = invalid_step;
42  fAncestorEnd = invalid_step;
43 
44  }
const double kINVALID_DOUBLE
Definition: MCLimits.h:10
MCStep fStart
G4 start position/momentum of this track particle.
Definition: MCTrack.h:90
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:89
std::vector< double > fdEdx
Definition: MCTrack.h:93
int fPDGCode
PDG code of this track particle.
Definition: MCTrack.h:87
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:91
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:86
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:88
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:92
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 47 of file MCTrack.h.

References fdEdx.

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

47 {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 67 of file MCTrack.h.

References fdEdx, and s.

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

Definition at line 46 of file MCTrack.h.

References fdQdx.

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

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

Definition at line 68 of file MCTrack.h.

References fdQdx, and s.

68 { fdQdx = s;}
Float_t s
Definition: plot.C:23
std::vector< std::vector< double > > fdQdx
Definition: MCTrack.h:92
const MCStep& sim::MCTrack::End ( ) const
inline

Definition at line 45 of file MCTrack.h.

References fEnd.

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

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

Definition at line 66 of file MCTrack.h.

References fEnd, and s.

66 { fEnd = s; }
Float_t s
Definition: plot.C:23
MCStep fEnd
G4 end position/momentum of this track particle.
Definition: MCTrack.h:91
const MCStep& sim::MCTrack::MotherEnd ( ) const
inline

Definition at line 53 of file MCTrack.h.

References fMotherEnd.

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

53 { 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, and s.

75 { fMotherEnd = s; }
Float_t s
Definition: plot.C:23
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 49 of file MCTrack.h.

References fMotherPDGCode.

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

49 { 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 51 of file MCTrack.h.

References fMotherProcess.

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

51 { 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 52 of file MCTrack.h.

References fMotherStart.

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

52 { 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, and s.

74 { fMotherStart = s; }
Float_t s
Definition: plot.C:23
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 50 of file MCTrack.h.

References fMotherTrackID.

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

50 { 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 40 of file MCTrack.h.

References fOrigin.

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

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

Definition at line 61 of file MCTrack.h.

References fOrigin.

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

Definition at line 62 of file MCTrack.h.

References fPDGCode.

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

Definition at line 43 of file MCTrack.h.

References fProcess.

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

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

Definition at line 64 of file MCTrack.h.

References fProcess.

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

Definition at line 65 of file MCTrack.h.

References fStart, and s.

65 { fStart = s; }
Float_t s
Definition: plot.C:23
MCStep fStart
G4 start position/momentum of this track particle.
Definition: MCTrack.h:90
unsigned int sim::MCTrack::TrackID ( ) const
inline
void sim::MCTrack::TrackID ( unsigned int  id)
inline

Definition at line 63 of file MCTrack.h.

References fTrackID.

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

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 92 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 91 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 86 of file MCTrack.h.

Referenced by Clear(), and Origin().

int sim::MCTrack::fPDGCode
protected

PDG code of this track particle.

Definition at line 87 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 89 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 90 of file MCTrack.h.

Referenced by Clear(), and Start().

unsigned int sim::MCTrack::fTrackID
protected

G4 track ID.

Definition at line 88 of file MCTrack.h.

Referenced by Clear(), and TrackID().


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