Public Types | Public Member Functions | Public Attributes | Friends | List of all members
TG4Trajectory Class Reference

#include <TG4Trajectory.h>

Inheritance diagram for TG4Trajectory:

Public Types

typedef std::vector< TG4TrajectoryPointTrajectoryPoints
 

Public Member Functions

 TG4Trajectory (void)
 
virtual ~TG4Trajectory ()
 
int GetTrackId () const
 The TrackId of this trajectory. More...
 
int GetParentId () const
 The unique Id of the parent trajectory (The TrackId of the parent). More...
 
const char * GetName () const
 The name of the particle. More...
 
int GetPDGCode () const
 The PDG encoding of the particle. More...
 
const TLorentzVector & GetInitialMomentum () const
 The initial momentum of the particle. More...
 

Public Attributes

TrajectoryPoints Points
 The trajectory points for this trajectory. More...
 
Int_t TrackId
 The TrackId of this trajectory. More...
 
Int_t ParentId
 The unique Id of the parent trajectory (The TrackId of the parent). More...
 
std::string Name
 The name of the particle. More...
 
Int_t PDGCode
 The PDG encoding of the particle. More...
 
TLorentzVector InitialMomentum
 The initial momentum of the particle. More...
 

Friends

class EDepSim::PersistencyManager
 

Detailed Description

A class to save a G4 trajectory into a root output file without linking to geant. A trajectory is the truth information about the path of a particle through the G4 simulation. It saves the parent trajectory that generated this particle, the initial momentum of the particle, and the path followed by the particle in the detector.

Definition at line 26 of file TG4Trajectory.h.

Member Typedef Documentation

Definition at line 29 of file TG4Trajectory.h.

Constructor & Destructor Documentation

TG4Trajectory::TG4Trajectory ( void  )
inline

Definition at line 31 of file TG4Trajectory.h.

32  : TrackId(-1), ParentId(-1),
33  Name("none"), PDGCode(0),
34  InitialMomentum(0,0,0,0) {}
TLorentzVector InitialMomentum
The initial momentum of the particle.
Definition: TG4Trajectory.h:82
Int_t PDGCode
The PDG encoding of the particle.
Definition: TG4Trajectory.h:79
Int_t ParentId
The unique Id of the parent trajectory (The TrackId of the parent).
Definition: TG4Trajectory.h:73
std::string Name
The name of the particle.
Definition: TG4Trajectory.h:76
Int_t TrackId
The TrackId of this trajectory.
Definition: TG4Trajectory.h:70
virtual TG4Trajectory::~TG4Trajectory ( )
virtual

Member Function Documentation

const TLorentzVector& TG4Trajectory::GetInitialMomentum ( ) const
inline

The initial momentum of the particle.

Definition at line 51 of file TG4Trajectory.h.

51 {return InitialMomentum;}
TLorentzVector InitialMomentum
The initial momentum of the particle.
Definition: TG4Trajectory.h:82
const char* TG4Trajectory::GetName ( ) const
inline

The name of the particle.

Definition at line 45 of file TG4Trajectory.h.

45 {return Name.c_str();}
ChannelGroupService::Name Name
int TG4Trajectory::GetParentId ( ) const
inline

The unique Id of the parent trajectory (The TrackId of the parent).

Definition at line 42 of file TG4Trajectory.h.

42 {return ParentId;}
Int_t ParentId
The unique Id of the parent trajectory (The TrackId of the parent).
Definition: TG4Trajectory.h:73
int TG4Trajectory::GetPDGCode ( ) const
inline

The PDG encoding of the particle.

Definition at line 48 of file TG4Trajectory.h.

48 {return PDGCode;}
Int_t PDGCode
The PDG encoding of the particle.
Definition: TG4Trajectory.h:79
int TG4Trajectory::GetTrackId ( ) const
inline

The TrackId of this trajectory.

Definition at line 39 of file TG4Trajectory.h.

39 {return TrackId;}
Int_t TrackId
The TrackId of this trajectory.
Definition: TG4Trajectory.h:70

Friends And Related Function Documentation

friend class EDepSim::PersistencyManager
friend

Definition at line 27 of file TG4Trajectory.h.

Member Data Documentation

TLorentzVector TG4Trajectory::InitialMomentum

The initial momentum of the particle.

Definition at line 82 of file TG4Trajectory.h.

std::string TG4Trajectory::Name

The name of the particle.

Definition at line 76 of file TG4Trajectory.h.

Int_t TG4Trajectory::ParentId

The unique Id of the parent trajectory (The TrackId of the parent).

Definition at line 73 of file TG4Trajectory.h.

Int_t TG4Trajectory::PDGCode

The PDG encoding of the particle.

Definition at line 79 of file TG4Trajectory.h.

TrajectoryPoints TG4Trajectory::Points

The trajectory points for this trajectory.

Definition at line 54 of file TG4Trajectory.h.

Int_t TG4Trajectory::TrackId

The TrackId of this trajectory.

Definition at line 70 of file TG4Trajectory.h.


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