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

Detailed Description




         RESTSoft : Software for Rare Event Searches with TPCs

         TRestTrack.h

         Event class to store signals form simulation and acquisition
         events

         oct 2015:   First concept
             Created as part of the conceptualization of existing REST
             software.
             Javier Gracia

Definition at line 28 of file TRestTrack.h.

#include <TRestTrack.h>

Inheritance diagram for TRestTrack:

Public Member Functions

void GetBoundaries (TVector3 &orig, TVector3 &end)
 This function retreive the origin and the end of a single track based on the most energetic hit. The origin is defined as the further hit deposition edge to the most energetic hit, while the track end is defined as the closest edge to the most energetic hit. The hits are expected to be ordered following the minimim path. More...
 
Double_t GetEnergy () const
 
TRestHitsGetHits ()
 
Double_t GetLength (Bool_t update=true)
 
Double_t GetMaximumDistance () const
 
Double_t GetMaximumDistance2 () const
 
TVector3 GetMeanPosition () const
 
Int_t GetNumberOfHits ()
 
Int_t GetParentID () const
 
Double_t GetTrackEnergy () const
 
Int_t GetTrackID () const
 
Double_t GetTrackLength (Bool_t update=true)
 
Double_t GetVolume () const
 
TRestVolumeHitsGetVolumeHits ()
 
void Initialize ()
 
Bool_t isXY ()
 
Bool_t isXYZ ()
 
Bool_t isXZ ()
 
Bool_t isYZ ()
 
void PrintTrack (Bool_t fullInfo=true)
 
void RemoveVolumeHits ()
 
void SetParentID (Int_t pID)
 
void SetTrackID (Int_t sID)
 
void SetVolumeHits (TRestVolumeHits hits)
 

Protected Attributes

Int_t fParentID
 Parent ID. More...
 
Double_t fTrackEnergy
 Total energy of the track. More...
 
Int_t fTrackID
 Track ID. More...
 
Double_t fTrackLength
 Total length of the track. More...
 
TRestVolumeHits fVolumeHits
 Hit volumes that define a track. More...
 

Constructor & Destructor Documentation

◆ TRestTrack()

TRestTrack::TRestTrack ( )

Definition at line 25 of file TRestTrack.cxx.

◆ ~TRestTrack()

TRestTrack::~TRestTrack ( )

Definition at line 29 of file TRestTrack.cxx.

Member Function Documentation

◆ GetBoundaries()

void TRestTrack::GetBoundaries ( TVector3 &  orig,
TVector3 &  end 
)

This function retreive the origin and the end of a single track based on the most energetic hit. The origin is defined as the further hit deposition edge to the most energetic hit, while the track end is defined as the closest edge to the most energetic hit. The hits are expected to be ordered following the minimim path.

Definition at line 60 of file TRestTrack.cxx.

◆ GetEnergy()

Double_t TRestTrack::GetEnergy ( ) const
inline

Definition at line 56 of file TRestTrack.h.

◆ GetHits()

TRestHits * TRestTrack::GetHits ( )
inline

Definition at line 72 of file TRestTrack.h.

◆ GetLength()

Double_t TRestTrack::GetLength ( Bool_t  update = true)
inline

Definition at line 59 of file TRestTrack.h.

◆ GetMaximumDistance()

Double_t TRestTrack::GetMaximumDistance ( ) const
inline

Definition at line 65 of file TRestTrack.h.

◆ GetMaximumDistance2()

Double_t TRestTrack::GetMaximumDistance2 ( ) const
inline

Definition at line 66 of file TRestTrack.h.

◆ GetMeanPosition()

TVector3 TRestTrack::GetMeanPosition ( ) const
inline

Definition at line 69 of file TRestTrack.h.

◆ GetNumberOfHits()

Int_t TRestTrack::GetNumberOfHits ( )
inline

Definition at line 73 of file TRestTrack.h.

◆ GetParentID()

Int_t TRestTrack::GetParentID ( ) const
inline

Definition at line 55 of file TRestTrack.h.

◆ GetTrackEnergy()

Double_t TRestTrack::GetTrackEnergy ( ) const
inline

Definition at line 57 of file TRestTrack.h.

◆ GetTrackID()

Int_t TRestTrack::GetTrackID ( ) const
inline

Definition at line 54 of file TRestTrack.h.

◆ GetTrackLength()

Double_t TRestTrack::GetTrackLength ( Bool_t  update = true)
inline

Definition at line 60 of file TRestTrack.h.

◆ GetVolume()

Double_t TRestTrack::GetVolume ( ) const
inline

Definition at line 67 of file TRestTrack.h.

◆ GetVolumeHits()

TRestVolumeHits * TRestTrack::GetVolumeHits ( )
inline

Definition at line 71 of file TRestTrack.h.

◆ Initialize()

void TRestTrack::Initialize ( )

Definition at line 33 of file TRestTrack.cxx.

◆ isXY()

Bool_t TRestTrack::isXY ( )
inline

Definition at line 48 of file TRestTrack.h.

◆ isXYZ()

Bool_t TRestTrack::isXYZ ( )
inline

Definition at line 51 of file TRestTrack.h.

◆ isXZ()

Bool_t TRestTrack::isXZ ( )
inline

Definition at line 49 of file TRestTrack.h.

◆ isYZ()

Bool_t TRestTrack::isYZ ( )
inline

Definition at line 50 of file TRestTrack.h.

◆ PrintTrack()

void TRestTrack::PrintTrack ( Bool_t  fullInfo = true)

Definition at line 90 of file TRestTrack.cxx.

◆ RemoveVolumeHits()

void TRestTrack::RemoveVolumeHits ( )

Definition at line 47 of file TRestTrack.cxx.

◆ SetParentID()

void TRestTrack::SetParentID ( Int_t  pID)
inline

Definition at line 43 of file TRestTrack.h.

◆ SetTrackID()

void TRestTrack::SetTrackID ( Int_t  sID)
inline

Definition at line 42 of file TRestTrack.h.

◆ SetVolumeHits()

void TRestTrack::SetVolumeHits ( TRestVolumeHits  hits)

Definition at line 41 of file TRestTrack.cxx.

Field Documentation

◆ fParentID

Int_t TRestTrack::fParentID
protected

Parent ID.

Definition at line 31 of file TRestTrack.h.

◆ fTrackEnergy

Double_t TRestTrack::fTrackEnergy
protected

Total energy of the track.

Definition at line 32 of file TRestTrack.h.

◆ fTrackID

Int_t TRestTrack::fTrackID
protected

Track ID.

Definition at line 30 of file TRestTrack.h.

◆ fTrackLength

Double_t TRestTrack::fTrackLength
protected

Total length of the track.

Definition at line 33 of file TRestTrack.h.

◆ fVolumeHits

TRestVolumeHits TRestTrack::fVolumeHits
protected

Hit volumes that define a track.

Definition at line 36 of file TRestTrack.h.


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