REST-for-Physics
v2.3
Rare Event Searches ToolKit for Physics
|
RESTSoft : Software for Rare Event Searches with TPCs TRestTrackEvent.h Event class to store DAQ events either from simulation and acquisition oct 2015: First concept Created as part of the conceptualization of existing REST software. Javier Gracia
Definition at line 35 of file TRestTrackEvent.h.
#include <TRestTrackEvent.h>
Public Member Functions | |
void | AddTrack (TRestTrack *c) |
TPad * | DrawEvent (const TString &option="") |
Draw the event. More... | |
TPad * | DrawHits () |
void | DrawOriginEnd (TPad *pad, std::vector< TGraph * > &originGr, std::vector< TGraph * > &endGr, std::vector< TLegend * > &leg) |
Draw origin and end of the track in a pad passed to the function Note that GetOriginEnd has to be issued in advance. | |
Double_t | GetEnergy (TString option="") |
Int_t | GetLevel (Int_t tck) |
Int_t | GetLevels () const |
TRestTrack * | GetMaxEnergyTrack (TString option="") |
TRestTrack * | GetMaxEnergyTrackInX () |
TRestTrack * | GetMaxEnergyTrackInY () |
Double_t | GetMaxEnergyTrackLength (TString option="") |
Double_t | GetMaxEnergyTrackVolume (TString option="") |
void | GetMaxTrackBoundaries (TVector3 &orig, TVector3 &end) |
This function retreive the origin and the end of the 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. | |
TRestVolumeHits | GetMaxTrackBoundaries3D (TVector3 &orig, TVector3 &end) |
This function retrieves the origin and the end track positions based after the reconstruction of a 3D track. It requires the track to have the same number of hits in X and Y. Two different directions are scanned and the one which maximizes the track length is retrieved. Afterwards the position of the closer hit to the half integral of the track is obtained. Then, the origin of the track is defined as the further edge to the half integral, while the track end is defined as the closest edge. | |
Double_t | GetMaxTrackRelativeZ () |
Function to calculate the relative Z of the most energetic track to crosscheck if the track is upwards or downwards. | |
Int_t | GetNumberOfTracks (TString option="") |
void | GetOriginEnd (std::vector< TGraph * > &originGr, std::vector< TGraph * > &endGr, std::vector< TLegend * > &leg) |
Retreive origin and end of the track and store in a TGraph and legend. | |
TRestTrack * | GetOriginTrack (Int_t tck) |
TRestTrack * | GetOriginTrackById (Int_t tckId) |
Int_t | GetOriginTrackID (Int_t tck) |
TPad * | GetPad () |
TRestTrack * | GetSecondMaxEnergyTrack (TString option="") |
Int_t | GetTotalHits () |
TRestTrack * | GetTrack (Int_t n) |
TRestTrack * | GetTrackById (Int_t id) |
void | Initialize () |
Bool_t | isTopLevel (Int_t tck) |
Bool_t | isXYZ () |
void | PrintEvent (Bool_t fullInfo=false) |
void | PrintOnlyTracks () |
void | RemoveTrack (int n) |
void | RemoveTracks () |
void | SetLevels () |
void | SetNumberOfXTracks (Int_t x) |
void | SetNumberOfYTracks (Int_t y) |
Public Member Functions inherited from TRestEvent | |
virtual void | CloneTo (TRestEvent *target) |
Clone the content of this TRestEvent object to another. More... | |
Int_t | GetID () const |
Int_t | GetRunOrigin () const |
TString | GetSubEventTag () const |
Int_t | GetSubID () const |
Int_t | GetSubRunOrigin () const |
Double_t | GetTime () const |
TTimeStamp | GetTimeStamp () const |
virtual void | InitializeReferences (TRestRun *run) |
Initialize dynamical references when loading the event from a root file. More... | |
virtual void | InitializeWithMetadata (TRestRun *run) |
Bool_t | isOk () const |
virtual void | PrintEvent () const |
void | SetEventInfo (TRestEvent *eve) |
void | SetID (Int_t id) |
void | SetOK (Bool_t state) |
void | SetRunOrigin (Int_t run_origin) |
void | SetState (Bool_t state) |
void | SetSubEventTag (const TString &tag) |
void | SetSubID (Int_t id) |
void | SetSubRunOrigin (Int_t sub_run_origin) |
void | SetTime (Double_t seconds, Double_t nanoseconds) |
void | SetTime (Double_t time) |
void | SetTimeStamp (const TTimeStamp &time) |
TRestEvent () | |
virtual | ~TRestEvent () |
Protected Attributes | |
TPad * | fHitsPad = nullptr |
Int_t | fLevels |
Int_t | fNtracks |
Int_t | fNtracksX |
Int_t | fNtracksY |
Bool_t | fPrintHitsWarning |
std::vector< TRestTrack > | fTrack |
TGraph * | fXYHit |
TGraph * | fXYTrack |
TGraph2D * | fXYZHit |
TGraph2D * | fXYZTrack |
TGraph * | fXZHit |
TH2F * | fXZHits = nullptr |
TGraph * | fXZTrack |
TGraph * | fYZHit |
TH2F * | fYZHits = nullptr |
TGraph * | fYZTrack |
Protected Attributes inherited from TRestEvent | |
Int_t | fEventID |
Event identification number. | |
TTimeStamp | fEventTime |
Absolute event time. | |
Bool_t | fOk |
Flag to be used by processes to define an event status. fOk=true is the default. | |
TPad * | fPad |
TRestRun * | fRun = nullptr |
Int_t | fRunOrigin |
Run ID number of the event. | |
Int_t | fSubEventID |
Sub-Event identification number. | |
TString | fSubEventTag |
A short length label to identify the sub-Event. | |
Int_t | fSubRunOrigin |
Sub-run ID number of the event. | |
Additional Inherited Members | |
Protected Member Functions inherited from TRestEvent | |
void | RestartPad (Int_t nElements) |
|
virtual |
Draw the event.
To be implemented in the derived class
Reimplemented from TRestEvent.
Definition at line 558 of file TRestTrackEvent.cxx.
|
virtual |
Run to initialize event data. To be re-implemented in derived class, you may want to call the base class at the end of the re-implemented, by calling TRestEvent::Initialize();
Implements TRestEvent.
Definition at line 52 of file TRestTrackEvent.cxx.