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. More...
 
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. More...
 
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. More...
 
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
 

Member Function Documentation

◆ AddSecondaryTrackID()

void TRestGeant4Track::AddSecondaryTrackID ( Int_t  trackID)
inline

Definition at line 70 of file TRestGeant4Track.h.

◆ ContainsProcess() [1/2]

Bool_t TRestGeant4Track::ContainsProcess ( const TString &  processName) const
inline

Definition at line 117 of file TRestGeant4Track.h.

◆ ContainsProcess() [2/2]

Bool_t TRestGeant4Track::ContainsProcess ( Int_t  processID) const
inline

Definition at line 114 of file TRestGeant4Track.h.

◆ ContainsProcessInVolume() [1/2]

Bool_t TRestGeant4Track::ContainsProcessInVolume ( const TString &  processName,
Int_t  volumeID = -1 
) const

Definition at line 168 of file TRestGeant4Track.cxx.

◆ ContainsProcessInVolume() [2/2]

Bool_t TRestGeant4Track::ContainsProcessInVolume ( Int_t  processID,
Int_t  volumeID = -1 
) const

Definition at line 160 of file TRestGeant4Track.cxx.

◆ GetChildrenTracks()

std::vector< const TRestGeant4Track * > TRestGeant4Track::GetChildrenTracks ( ) const
inline

Definition at line 91 of file TRestGeant4Track.h.

◆ GetCreatorProcess()

TString TRestGeant4Track::GetCreatorProcess ( ) const
inline

Definition at line 68 of file TRestGeant4Track.h.

◆ GetEnergyInVolume() [1/2]

Double_t TRestGeant4Track::GetEnergyInVolume ( const TString &  volumeName,
bool  children = false 
) const

Definition at line 225 of file TRestGeant4Track.cxx.

◆ GetEnergyInVolume() [2/2]

Double_t TRestGeant4Track::GetEnergyInVolume ( Int_t  volID) const
inline

Definition at line 99 of file TRestGeant4Track.h.

◆ GetEvent()

const TRestGeant4Event * TRestGeant4Track::GetEvent ( ) const
inline

Definition at line 59 of file TRestGeant4Track.h.

◆ GetFinalVolume()

TString TRestGeant4Track::GetFinalVolume ( ) const

Definition at line 215 of file TRestGeant4Track.cxx.

◆ GetFirstPositionInVolume()

TVector3 TRestGeant4Track::GetFirstPositionInVolume ( Int_t  volID) const
inline

Definition at line 103 of file TRestGeant4Track.h.

◆ GetGeant4Metadata()

const TRestGeant4Metadata * TRestGeant4Track::GetGeant4Metadata ( ) const

Definition at line 181 of file TRestGeant4Track.cxx.

◆ GetGlobalTime()

Double_t TRestGeant4Track::GetGlobalTime ( ) const
inline

Definition at line 78 of file TRestGeant4Track.h.

◆ GetHits()

const TRestGeant4Hits & TRestGeant4Track::GetHits ( ) const
inline

Definition at line 57 of file TRestGeant4Track.h.

◆ GetHitsPointer()

TRestGeant4Hits * TRestGeant4Track::GetHitsPointer ( )
inline

Definition at line 58 of file TRestGeant4Track.h.

◆ GetInitialKineticEnergy()

Double_t TRestGeant4Track::GetInitialKineticEnergy ( ) const
inline

Definition at line 80 of file TRestGeant4Track.h.

◆ GetInitialPosition()

TVector3 TRestGeant4Track::GetInitialPosition ( ) const
inline

Definition at line 81 of file TRestGeant4Track.h.

◆ GetInitialVolume()

TString TRestGeant4Track::GetInitialVolume ( ) const

Definition at line 206 of file TRestGeant4Track.cxx.

◆ GetLastPositionInVolume()

TVector3 TRestGeant4Track::GetLastPositionInVolume ( Int_t  volID) const
inline

Definition at line 106 of file TRestGeant4Track.h.

◆ GetLastProcessName()

TString TRestGeant4Track::GetLastProcessName ( ) const

Definition at line 253 of file TRestGeant4Track.cxx.

◆ GetLength()

Double_t TRestGeant4Track::GetLength ( ) const
inline

Definition at line 84 of file TRestGeant4Track.h.

◆ GetMeanPositionInVolume()

TVector3 TRestGeant4Track::GetMeanPositionInVolume ( Int_t  volID) const
inline

Definition at line 100 of file TRestGeant4Track.h.

◆ GetNumberOfHits()

size_t TRestGeant4Track::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.

Definition at line 84 of file TRestGeant4Track.cxx.

◆ GetNumberOfPhysicalHits()

size_t TRestGeant4Track::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.

Definition at line 100 of file TRestGeant4Track.cxx.

◆ GetParentID()

Int_t TRestGeant4Track::GetParentID ( ) const
inline

Definition at line 76 of file TRestGeant4Track.h.

◆ GetParentTrack()

TRestGeant4Track * TRestGeant4Track::GetParentTrack ( ) const

Definition at line 188 of file TRestGeant4Track.cxx.

◆ GetParticleColor()

EColor TRestGeant4Track::GetParticleColor ( ) const

Definition at line 58 of file TRestGeant4Track.cxx.

◆ GetParticleName()

TString TRestGeant4Track::GetParticleName ( ) const
inline

Definition at line 77 of file TRestGeant4Track.h.

◆ GetProcessID()

Int_t TRestGeant4Track::GetProcessID ( const TString &  processName) const

Definition at line 31 of file TRestGeant4Track.cxx.

◆ GetProcessName()

TString TRestGeant4Track::GetProcessName ( Int_t  id) const

Definition at line 44 of file TRestGeant4Track.cxx.

◆ GetSecondaryTrackIDs()

std::vector< Int_t > TRestGeant4Track::GetSecondaryTrackIDs ( ) const
inline

Definition at line 89 of file TRestGeant4Track.h.

◆ GetSecondaryTracks()

vector< const TRestGeant4Track * > TRestGeant4Track::GetSecondaryTracks ( ) const

Definition at line 195 of file TRestGeant4Track.cxx.

◆ GetTimeLength()

Double_t TRestGeant4Track::GetTimeLength ( ) const
inline

Definition at line 79 of file TRestGeant4Track.h.

◆ GetTotalEnergy()

Double_t TRestGeant4Track::GetTotalEnergy ( ) const
inline

Definition at line 83 of file TRestGeant4Track.h.

◆ GetTrackID()

Int_t TRestGeant4Track::GetTrackID ( ) const
inline

Definition at line 75 of file TRestGeant4Track.h.

◆ GetTrackOrigin()

TVector3 TRestGeant4Track::GetTrackOrigin ( ) const
inline

Definition at line 95 of file TRestGeant4Track.h.

◆ GetWeight()

Double_t TRestGeant4Track::GetWeight ( ) const
inline

Definition at line 82 of file TRestGeant4Track.h.

◆ PrintTrack()

void TRestGeant4Track::PrintTrack ( size_t  maxHits = 0) const

Prints the track information. N number of hits to print, 0 = all.

Definition at line 114 of file TRestGeant4Track.cxx.

◆ RemoveHits()

void TRestGeant4Track::RemoveHits ( )
inline

Definition at line 128 of file TRestGeant4Track.h.

◆ SetEvent()

void TRestGeant4Track::SetEvent ( TRestGeant4Event event)
inline

Definition at line 62 of file TRestGeant4Track.h.

◆ SetHits()

void TRestGeant4Track::SetHits ( const TRestGeant4Hits hits)
inline

Definition at line 63 of file TRestGeant4Track.h.

Friends And Related Function Documentation

◆ TRestGeant4Event

friend class TRestGeant4Event
friend

Definition at line 136 of file TRestGeant4Track.h.

Field Documentation

◆ fCreatorProcess

TString TRestGeant4Track::fCreatorProcess
protected

Definition at line 40 of file TRestGeant4Track.h.

◆ fEvent

TRestGeant4Event* TRestGeant4Track::fEvent = nullptr
protected

Definition at line 54 of file TRestGeant4Track.h.

◆ fGlobalTimestamp

Double_t TRestGeant4Track::fGlobalTimestamp
protected

Definition at line 44 of file TRestGeant4Track.h.

◆ fHits

TRestGeant4Hits TRestGeant4Track::fHits
protected

Definition at line 38 of file TRestGeant4Track.h.

◆ fInitialKineticEnergy

Double_t TRestGeant4Track::fInitialKineticEnergy
protected

Definition at line 47 of file TRestGeant4Track.h.

◆ fInitialPosition

TVector3 TRestGeant4Track::fInitialPosition
protected

Definition at line 50 of file TRestGeant4Track.h.

◆ fLength

Double_t TRestGeant4Track::fLength
protected

Definition at line 48 of file TRestGeant4Track.h.

◆ fParentID

Int_t TRestGeant4Track::fParentID
protected

Definition at line 34 of file TRestGeant4Track.h.

◆ fParticleName

TString TRestGeant4Track::fParticleName
protected

Definition at line 36 of file TRestGeant4Track.h.

◆ fSecondaryTrackIDs

std::vector<Int_t> TRestGeant4Track::fSecondaryTrackIDs
protected

Definition at line 42 of file TRestGeant4Track.h.

◆ fTimeLength

Double_t TRestGeant4Track::fTimeLength
protected

Definition at line 45 of file TRestGeant4Track.h.

◆ fTrackID

Int_t TRestGeant4Track::fTrackID
protected

Definition at line 33 of file TRestGeant4Track.h.

◆ fWeight

Double_t TRestGeant4Track::fWeight = 1
protected

Definition at line 52 of file TRestGeant4Track.h.


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