19 #ifndef RestCore_TRestTrack
20 #define RestCore_TRestTrack
23 #include <TRestVolumeHits.h>
42 void SetTrackID(Int_t sID) {
fTrackID = sID; }
43 void SetParentID(Int_t pID) {
fParentID = pID; }
46 void RemoveVolumeHits();
54 inline Int_t GetTrackID()
const {
return fTrackID; }
55 inline Int_t GetParentID()
const {
return fParentID; }
56 inline Double_t GetEnergy()
const {
return fTrackEnergy; }
57 inline Double_t GetTrackEnergy()
const {
return fTrackEnergy; }
59 Double_t GetLength(Bool_t update =
true) {
return GetTrackLength(update); }
60 Double_t GetTrackLength(Bool_t update =
true) {
73 inline Int_t GetNumberOfHits() {
return GetVolumeHits()->GetNumberOfHits(); }
75 void PrintTrack(Bool_t fullInfo =
true);
It saves a 3-coordinate position and an energy for each punctual deposition.
TVector3 GetMeanPosition() const
It calculates the mean position weighting with the energy of the hits. Each coordinate is calculated ...
Double_t GetTotalDistance() const
It determines the distance required to travel from the first to the last hit adding all the distances...
Double_t GetMaximumHitDistance() const
It returns the maximum distance between 2-hits.
Double_t GetMaximumHitDistance2() const
It returns the maximum squared distance between 2-hits.
Double_t fTrackEnergy
Total energy of the track.
void GetBoundaries(TVector3 &orig, TVector3 &end)
This function retreive the origin and the end of a single track based on the most energetic hit....
Double_t fTrackLength
Total length of the track.
Int_t fParentID
Parent ID.
TRestVolumeHits fVolumeHits
Hit volumes that define a track.