![]() |
PandaRoot
|
A container class to store digi data during events. More...
#include <PndWriteoutBuffer.h>
Public Member Functions | |
PndWriteoutBuffer () | |
PndWriteoutBuffer (TString branchName, TString className, TString folderName, Bool_t persistance) | |
virtual | ~PndWriteoutBuffer () |
virtual void | WriteOutData (double time) |
virtual void | WriteOutAllData () |
virtual void | SaveDataToTree (Bool_t val=kTRUE) |
If SaveDataToTree is set the data is stored at the end of the buffering into the given TClonesArray. More... | |
virtual void | ActivateBuffering (Bool_t val=kTRUE) |
fActivateBuffering has to be set to kTRUE to use the buffering. Otherwise the data is directly stored in the given TClonesArray. More... | |
virtual std::vector< FairTimeStamp * > | GetRemoveOldData (double time) |
virtual std::vector< FairTimeStamp * > | GetAllData () |
virtual void | FillNewData (FairTimeStamp *data, double activeTime) |
virtual Int_t | GetNData () |
virtual void | AddNewDataToTClonesArray (FairTimeStamp *data)=0 |
store the data from the FairTimeStamp pointer in a TClonesArray (you have to cast it to your type of data) More... | |
virtual void | DeleteOldData () |
virtual double | FindTimeForData (FairTimeStamp *data)=0 |
if the same data object (like a pad or a pixel) is already present in the buffer, the time of this object has to be returned otherwise -1 More... | |
virtual void | FillDataMap (FairTimeStamp *data, double activeTime)=0 |
add a new element in the search buffer More... | |
virtual void | EraseDataFromDataMap (FairTimeStamp *data)=0 |
delete the element from the search buffer (see PndSdsDigiPixelWriteoutBuffer) More... | |
virtual void | SetVerbose (Int_t val) |
Protected Member Functions | |
virtual std::vector< std::pair< double, FairTimeStamp * > > | Modify (std::pair< double, FairTimeStamp *> oldData, std::pair< double, FairTimeStamp *> newData) |
ClassDef (PndWriteoutBuffer, 1) | |
Protected Attributes | |
std::multimap< double, FairTimeStamp * > | fDeadTime_map |
TString | fBranchName |
TString | fClassName |
Bool_t | fTreeSave |
Bool_t | fActivateBuffering |
Int_t | fVerbose |
A container class to store digi data during events.
The data which should be stored in the buffer has to be derived from FairTimeStamp. It needs an operator< and a method equal if the same detector element is hit.
To use this buffer one has to derive his own buffer class from FairWriteoutBuffer and overwrite the pure virtual functions.
Definition at line 33 of file PndWriteoutBuffer.h.
|
inline |
Definition at line 35 of file PndWriteoutBuffer.h.
PndWriteoutBuffer::PndWriteoutBuffer | ( | TString | branchName, |
TString | className, | ||
TString | folderName, | ||
Bool_t | persistance | ||
) |
|
inlinevirtual |
Definition at line 37 of file PndWriteoutBuffer.h.
References WriteOutAllData(), and WriteOutData().
|
inlinevirtual |
fActivateBuffering has to be set to kTRUE to use the buffering. Otherwise the data is directly stored in the given TClonesArray.
Definition at line 43 of file PndWriteoutBuffer.h.
References fActivateBuffering, FillNewData(), GetAllData(), and GetRemoveOldData().
|
pure virtual |
store the data from the FairTimeStamp pointer in a TClonesArray (you have to cast it to your type of data)
Referenced by GetNData().
|
protected |
|
inlinevirtual |
Definition at line 54 of file PndWriteoutBuffer.h.
References EraseDataFromDataMap(), fBranchName, FillDataMap(), and FindTimeForData().
|
pure virtual |
delete the element from the search buffer (see PndSdsDigiPixelWriteoutBuffer)
Referenced by DeleteOldData().
|
pure virtual |
add a new element in the search buffer
Referenced by DeleteOldData().
|
virtual |
Referenced by ActivateBuffering().
|
pure virtual |
if the same data object (like a pad or a pixel) is already present in the buffer, the time of this object has to be returned otherwise -1
Referenced by DeleteOldData().
|
virtual |
Referenced by ActivateBuffering().
|
inlinevirtual |
Definition at line 51 of file PndWriteoutBuffer.h.
References AddNewDataToTClonesArray(), and fDeadTime_map.
|
virtual |
Referenced by ActivateBuffering().
|
inlineprotectedvirtual |
Modify defines the behavior of the buffer if data should be stored which is already in the buffer. Parameters are the old data with the active time, the new data with an active time. Modify returns than a vector with the new data which should be stored.
Definition at line 70 of file PndWriteoutBuffer.h.
|
inlinevirtual |
If SaveDataToTree is set the data is stored at the end of the buffering into the given TClonesArray.
Definition at line 42 of file PndWriteoutBuffer.h.
References fTreeSave.
|
inlinevirtual |
|
virtual |
Referenced by ~PndWriteoutBuffer().
|
virtual |
Referenced by ~PndWriteoutBuffer().
|
protected |
Definition at line 82 of file PndWriteoutBuffer.h.
Referenced by ActivateBuffering().
|
protected |
Definition at line 79 of file PndWriteoutBuffer.h.
Referenced by DeleteOldData().
|
protected |
Definition at line 80 of file PndWriteoutBuffer.h.
|
protected |
Definition at line 77 of file PndWriteoutBuffer.h.
Referenced by GetNData().
|
protected |
Definition at line 81 of file PndWriteoutBuffer.h.
Referenced by SaveDataToTree().
|
protected |
Definition at line 83 of file PndWriteoutBuffer.h.
Referenced by SetVerbose().