FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGeoTrackHandler.h
Go to the documentation of this file.
1 /*
2  * FairGeoTrackHandler.h
3  *
4  * \data 30.10.2020
5  * \author Tobias Stockmanns <t.stockmanns@fz-juelich.de>
6  */
7 
8 #ifndef EVENTDISPLAY_FAIRGEOTRACKHANDLER_H_
9 #define EVENTDISPLAY_FAIRGEOTRACKHANDLER_H_
10 
11 #include <TGeoTrack.h>
12 #include <vector>
13 
14 class TClonesArray;
15 
17 {
18  public:
20  : fHoldTime(10.0){};
21  virtual ~FairGeoTrackHandler() { Reset(); };
22 
23  void FillTClonesArray(TClonesArray* geoArray, int evtIndex, double t0Event, double t0Current);
24  std::vector<std::pair<TGeoTrack*, double>>& GetData() { return fTrackVector; };
25  void SetHoldTime(double time) { fHoldTime = time; };
26  void Reset();
27 
28  protected:
29  void RemoveOldTracks(double newT0Time);
30 
31  private:
32  std::vector<std::pair<TGeoTrack*, double>> fTrackVector;
33  std::vector<int> fEventsFilledInBuffer;
34 
35  double fHoldTime;
36 
37  // TClonesArray* fTGeoArray;
38 };
39 
40 #endif /* EVENTDISPLAY_FAIRGEOTRACKHANDLER_H_ */
void FillTClonesArray(TClonesArray *geoArray, int evtIndex, double t0Event, double t0Current)
void SetHoldTime(double time)
void RemoveOldTracks(double newT0Time)
std::vector< std::pair< TGeoTrack *, double > > & GetData()