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

#include <TG4PrimaryVertex.h>

Inheritance diagram for TG4PrimaryParticle:

Public Member Functions

 TG4PrimaryParticle (void)
 
virtual ~TG4PrimaryParticle ()
 
int GetTrackId () const
 
const char * GetName () const
 The name of the particle. More...
 
int GetPDGCode () const
 The PDG code of the particle. More...
 
const TLorentzVector & GetMomentum () const
 The initial momentum of the particle. More...
 
 ClassDef (TG4PrimaryParticle, 1)
 

Public Attributes

Int_t TrackId
 
std::string Name
 The name of the particle. More...
 
Int_t PDGCode
 The PDG code of the particle. More...
 
TLorentzVector Momentum
 The initial momentum of the particle. More...
 

Friends

class EDepSim::PersistencyManager
 

Detailed Description

A class to save a G4 primary particle into a root output file without linking to geant.

Definition at line 117 of file TG4PrimaryVertex.h.

Constructor & Destructor Documentation

TG4PrimaryParticle::TG4PrimaryParticle ( void  )
inline

Definition at line 120 of file TG4PrimaryVertex.h.

121  : TrackId(-1), PDGCode(0), Momentum(0,0,0,0) {}
TLorentzVector Momentum
The initial momentum of the particle.
Int_t PDGCode
The PDG code of the particle.
virtual TG4PrimaryParticle::~TG4PrimaryParticle ( )
virtual

Member Function Documentation

TG4PrimaryParticle::ClassDef ( TG4PrimaryParticle  ,
 
)
const TLorentzVector& TG4PrimaryParticle::GetMomentum ( ) const
inline

The initial momentum of the particle.

Definition at line 135 of file TG4PrimaryVertex.h.

135 {return Momentum;}
TLorentzVector Momentum
The initial momentum of the particle.
const char* TG4PrimaryParticle::GetName ( ) const
inline

The name of the particle.

Definition at line 129 of file TG4PrimaryVertex.h.

129 {return Name.c_str();}
ChannelGroupService::Name Name
int TG4PrimaryParticle::GetPDGCode ( ) const
inline

The PDG code of the particle.

Definition at line 132 of file TG4PrimaryVertex.h.

132 {return PDGCode;}
Int_t PDGCode
The PDG code of the particle.
int TG4PrimaryParticle::GetTrackId ( ) const
inline

The Track Id of the matching trajectory. Particles that are not tracked will have negative track id values.

Definition at line 126 of file TG4PrimaryVertex.h.

126 {return TrackId;}

Friends And Related Function Documentation

friend class EDepSim::PersistencyManager
friend

Definition at line 118 of file TG4PrimaryVertex.h.

Member Data Documentation

TLorentzVector TG4PrimaryParticle::Momentum

The initial momentum of the particle.

Definition at line 157 of file TG4PrimaryVertex.h.

std::string TG4PrimaryParticle::Name

The name of the particle.

Definition at line 151 of file TG4PrimaryVertex.h.

Int_t TG4PrimaryParticle::PDGCode

The PDG code of the particle.

Definition at line 154 of file TG4PrimaryVertex.h.

Int_t TG4PrimaryParticle::TrackId

The Track Id of the matching trajectory. Particles that are not tracked will have negative track id values.

Definition at line 148 of file TG4PrimaryVertex.h.


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