10 #ifndef EVENTDISPLAY_FAIRTIMEBASEDMCHITSOURCE_H_
11 #define EVENTDISPLAY_FAIRTIMEBASEDMCHITSOURCE_H_
25 , fDataHandler(holdTime){};
35 virtual TObject*
GetData(
int index) {
return fDataHandler.
GetData()[index].first; }
38 return (fDataHandler.
GetData()[index].first->GetTimeStamp() + fDataHandler.
GetData()[index].second);
44 TBranch* fBranch =
nullptr;
45 std::vector<double>
const* fEventTime =
nullptr;
std::vector< std::pair< T *, double > > & GetData()
virtual double GetTime(int index)
FairTimebasedMCHitSource()
virtual TObject * GetData(int index)
Abstract interface class to handle different input data for event and timebased data.
virtual void RetrieveData(double time)
virtual ~FairTimebasedMCHitSource()
void SetHoldTime(double time)
FairTimebasedMCHitSource(TString branchName, double holdTime=10.0)
void SetHoldTime(double time)
virtual InitStatus Init()