REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Protected Attributes | Friends
TRestGeant4Track Class Reference

Detailed Description

Definition at line 31 of file TRestGeant4Track.h.

Public Member Functions

void AddSecondaryTrackID (Int_t trackID)
 
Bool_t ContainsProcess (const TString &processName) const
 
Bool_t ContainsProcess (Int_t processID) const
 
Bool_t ContainsProcessInVolume (const TString &processName, Int_t volumeID=-1) const
 
Bool_t ContainsProcessInVolume (Int_t processID, Int_t volumeID=-1) const
 
std::vector< const TRestGeant4Track * > GetChildrenTracks () const
 
TString GetCreatorProcess () const
 
Double_t GetEnergyInVolume (const TString &volumeName, bool children=false) const
 
Double_t GetEnergyInVolume (Int_t volID) const
 
const TRestGeant4EventGetEvent () const
 
TString GetFinalVolume () const
 
TVector3 GetFirstPositionInVolume (Int_t volID) const
 
const TRestGeant4MetadataGetGeant4Metadata () const
 
Double_t GetGlobalTime () const
 
const TRestGeant4HitsGetHits () const
 
TRestGeant4HitsGetHitsPointer ()
 
Double_t GetInitialKineticEnergy () const
 
TVector3 GetInitialPosition () const
 
TString GetInitialVolume () const
 
TVector3 GetLastPositionInVolume (Int_t volID) const
 
TString GetLastProcessName () const
 
Double_t GetLength () const
 
TVector3 GetMeanPositionInVolume (Int_t volID) const
 
size_t GetNumberOfHits (Int_t volID=-1) const
 Function that returns the number of hit depositions found inside the TRestGeant4Track. If a specific volume id is given as argument only the hits of that specific volume will be counted.
 
size_t GetNumberOfPhysicalHits (Int_t volID=-1) const
 Function that returns the number of hit depositions found inside the TRestGeant4Track with energy > 0. If a specific volume id is given as argument only the hits of that specific volume will be counted.
 
Int_t GetParentID () const
 
TRestGeant4TrackGetParentTrack () const
 
EColor GetParticleColor () const
 
TString GetParticleName () const
 
Int_t GetProcessID (const TString &processName) const
 
TString GetProcessName (Int_t id) const
 
std::vector< Int_t > GetSecondaryTrackIDs () const
 
std::vector< const TRestGeant4Track * > GetSecondaryTracks () const
 
Double_t GetTimeLength () const
 
Double_t GetTotalEnergy () const
 
Int_t GetTrackID () const
 
TVector3 GetTrackOrigin () const
 
Double_t GetWeight () const
 
void InsertStep (const G4Step *)
 
void PrintTrack (size_t maxHits=0) const
 Prints the track information. N number of hits to print, 0 = all.
 
void RemoveHits ()
 
void SetEvent (TRestGeant4Event *event)
 
void SetHits (const TRestGeant4Hits &hits)
 
 TRestGeant4Track (const G4Track *)
 
void UpdateTrack (const G4Track *)
 

Protected Attributes

TString fCreatorProcess
 
TRestGeant4EventfEvent = nullptr
 
Double_t fGlobalTimestamp
 
TRestGeant4Hits fHits
 
Double_t fInitialKineticEnergy
 
TVector3 fInitialPosition
 
Double_t fLength
 
Int_t fParentID
 
TString fParticleName
 
std::vector< Int_t > fSecondaryTrackIDs
 
Double_t fTimeLength
 
Int_t fTrackID
 
Double_t fWeight = 1
 

Friends

class TRestGeant4Event
 

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