32 #ifndef FairWriteoutBuffer_H_
33 #define FairWriteoutBuffer_H_
40 #include <TClonesArray.h>
61 FairWriteoutBuffer(TString branchName, TString className, TString folderName, Bool_t persistance);
84 virtual std::vector<FairTimeStamp*>
GetAllData();
113 virtual std::vector<std::pair<double, FairTimeStamp*>>
Modify(std::pair<double, FairTimeStamp*> oldData,
114 std::pair<double, FairTimeStamp*>)
116 std::vector<std::pair<double, FairTimeStamp*>> result;
117 result.push_back(oldData);
Bool_t fActivateBuffering
virtual void MoveDataFromStartTimeMapToDeadTimeMap(double time)
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)=0
virtual void FillDataMap(FairTimeStamp *data, double activeTime)=0
add a new element in the search buffer
virtual void PrintData(FairTimeStamp *data)
virtual void FillNewData(FairTimeStamp *data, double startTime, double activeTime)
virtual std::vector< FairTimeStamp * > GetAllData()
static FairRootManager * Instance()
virtual std::vector< std::pair< double, FairTimeStamp * > > Modify(std::pair< double, FairTimeStamp * > oldData, std::pair< double, FairTimeStamp * >)
std::multimap< double, FairTimeStamp * > fDeadTime_map
virtual void WriteOutData(double time)
virtual std::vector< FairTimeStamp * > GetRemoveOldData(double time)
virtual void DeleteOldData()
virtual double FindTimeForData(FairTimeStamp *data)=0
virtual void SaveDataToTree(Bool_t val=kTRUE)
TClonesArray * GetTClonesArray(TString branchName)
virtual void EraseDataFromDataMap(FairTimeStamp *data)=0
delete the element from the search buffer (see PndSdsDigiPixelWriteoutBuffer)
virtual void PrintDeadTimeMap()
Method should be overwritten in derived classes to print the data of an object stored in the buffer...
Double_t GetTimeStamp() const
virtual void SetVerbose(Int_t val)
virtual void ActivateBuffering(Bool_t val=kTRUE)
std::multimap< double, std::pair< double, FairTimeStamp * > > fStartTime_map
virtual void WriteOutDataDeadTimeMap(double time)
virtual void FillDataToDeadTimeMap(FairTimeStamp *data, double activeTime, double startTime)
virtual ~FairWriteoutBuffer()
A container class to store digi data during events.
Bool_t IsBufferingActivated()
virtual void PrintStartTimeMap()
virtual void WriteOutAllData()