Public Member Functions | Protected Attributes | List of all members
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::stringProcess () 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::stringMotherProcess () const
 
const MCStepMotherStart () const
 
const MCStepMotherEnd () const
 
int AncestorPdgCode () const
 
unsigned int AncestorTrackID () const
 
const std::stringAncestorProcess () 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)
 

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.

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

Default destructor.

Definition at line 35 of file MCTrack.h.

35 {}

Member Function Documentation

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

Definition at line 59 of file MCTrack.h.

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.

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

Definition at line 55 of file MCTrack.h.

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.

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.

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.

79 { fAncestorProcess = n; }
std::void_t< T > n
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.

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.

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

Definition at line 56 of file MCTrack.h.

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.

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

Definition at line 5 of file MCTrack.cxx.

6  {
8 
10  fProcess = "";
13 
16  fMotherProcess = "";
17 
20  fAncestorProcess = "";
21 
22  TLorentzVector invalid(kINVALID_DOUBLE,
26 
27  MCStep invalid_step(invalid,invalid);
28 
29  fStart = invalid_step;
30  fEnd = invalid_step;
31 
32  fdEdx.clear();
33  fdQdx.clear();
34 
35  fMotherStart = invalid_step;
36  fMotherEnd = invalid_step;
37 
38  fAncestorStart = invalid_step;
39  fAncestorEnd = invalid_step;
40 
41  }
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
vector< vector< double > > clear
std::string fAncestorProcess
This particle&#39;s ancestor&#39;s G4 process name.
Definition: MCTrack.h:103
const std::vector<double>& sim::MCTrack::dEdx ( ) const
inline

Definition at line 47 of file MCTrack.h.

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.

67 { fdEdx = s;}
std::vector< double > fdEdx
Definition: MCTrack.h:93
static QCString * s
Definition: config.cpp:1042
const std::vector< std::vector<double> >& sim::MCTrack::dQdx ( ) const
inline

Definition at line 46 of file MCTrack.h.

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.

68 { fdQdx = s;}
std::vector< std::vector< double > > fdQdx
Definition: MCTrack.h:92
static QCString * s
Definition: config.cpp:1042
const MCStep& sim::MCTrack::End ( void  ) const
inline

Definition at line 45 of file MCTrack.h.

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.

66 { fEnd = s; }
MCStep fEnd
G4 end position/momentum of this track particle.
Definition: MCTrack.h:91
static QCString * s
Definition: config.cpp:1042
const MCStep& sim::MCTrack::MotherEnd ( ) const
inline

Definition at line 53 of file MCTrack.h.

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.

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

Definition at line 49 of file MCTrack.h.

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.

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.

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.

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

Definition at line 52 of file MCTrack.h.

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.

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

Definition at line 50 of file MCTrack.h.

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.

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.

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.

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

Definition at line 41 of file MCTrack.h.

41 { return fPDGCode; }
int fPDGCode
PDG code of this track particle.
Definition: MCTrack.h:87
void sim::MCTrack::PdgCode ( int  id)
inline

Definition at line 62 of file MCTrack.h.

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

Definition at line 43 of file MCTrack.h.

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.

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

Definition at line 44 of file MCTrack.h.

44 { return fStart; }
MCStep fStart
G4 start position/momentum of this track particle.
Definition: MCTrack.h:90
void sim::MCTrack::Start ( const MCStep  s)
inline

Definition at line 65 of file MCTrack.h.

65 { fStart = s; }
MCStep fStart
G4 start position/momentum of this track particle.
Definition: MCTrack.h:90
static QCString * s
Definition: config.cpp:1042
unsigned int sim::MCTrack::TrackID ( ) const
inline

Definition at line 42 of file MCTrack.h.

42 { return fTrackID; }
unsigned int fTrackID
G4 track ID.
Definition: MCTrack.h:88
void sim::MCTrack::TrackID ( unsigned int  id)
inline

Definition at line 63 of file MCTrack.h.

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

Member Data Documentation

MCStep sim::MCTrack::fAncestorEnd
protected

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

Definition at line 105 of file MCTrack.h.

int sim::MCTrack::fAncestorPDGCode
protected

This particle's ancestor's PDG code.

Definition at line 101 of file MCTrack.h.

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

This particle's ancestor's G4 process name.

Definition at line 103 of file MCTrack.h.

MCStep sim::MCTrack::fAncestorStart
protected

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

Definition at line 104 of file MCTrack.h.

unsigned int sim::MCTrack::fAncestorTrackID
protected

This particle's ancestor's G4 track ID.

Definition at line 102 of file MCTrack.h.

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

Definition at line 93 of file MCTrack.h.

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

Definition at line 92 of file MCTrack.h.

MCStep sim::MCTrack::fEnd
protected

G4 end position/momentum of this track particle.

Definition at line 91 of file MCTrack.h.

MCStep sim::MCTrack::fMotherEnd
protected

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

Definition at line 99 of file MCTrack.h.

int sim::MCTrack::fMotherPDGCode
protected

This particle's mother's PDG code.

Definition at line 95 of file MCTrack.h.

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

This particle's mother's G4 process name.

Definition at line 97 of file MCTrack.h.

MCStep sim::MCTrack::fMotherStart
protected

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

Definition at line 98 of file MCTrack.h.

unsigned int sim::MCTrack::fMotherTrackID
protected

This particle's mother's G4 track ID.

Definition at line 96 of file MCTrack.h.

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

Origin of this particle (see simb::Origin_t)

Definition at line 86 of file MCTrack.h.

int sim::MCTrack::fPDGCode
protected

PDG code of this track particle.

Definition at line 87 of file MCTrack.h.

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

G4 creation process of this track particle.

Definition at line 89 of file MCTrack.h.

MCStep sim::MCTrack::fStart
protected

G4 start position/momentum of this track particle.

Definition at line 90 of file MCTrack.h.

unsigned int sim::MCTrack::fTrackID
protected

G4 track ID.

Definition at line 88 of file MCTrack.h.


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