FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MyWriteoutBuffer Class Reference

#include <MyWriteoutBuffer.h>

Inheritance diagram for MyWriteoutBuffer:
FairWriteoutBuffer

Public Member Functions

 MyWriteoutBuffer ()
 
 MyWriteoutBuffer (TString branchName, TString folderName, Bool_t persistance)
 
void AddNewDataToTClonesArray (FairTimeStamp *)
 
virtual ~MyWriteoutBuffer ()
 
virtual std::vector< std::pair
< double, MyDataClass * > > 
Modify (std::pair< double, MyDataClass * > oldData, std::pair< double, MyDataClass * > newData)
 
virtual double FindTimeForData (FairTimeStamp *data)
 
virtual void FillDataMap (FairTimeStamp *data, double activeTime)
 add a new element in the search buffer More...
 
virtual void EraseDataFromDataMap (FairTimeStamp *data)
 delete the element from the search buffer (see PndSdsDigiPixelWriteoutBuffer) More...
 
- Public Member Functions inherited from FairWriteoutBuffer
 FairWriteoutBuffer ()
 
 FairWriteoutBuffer (TString branchName, TString className, TString folderName, Bool_t persistance)
 
virtual ~FairWriteoutBuffer ()
 
virtual void SaveDataToTree (Bool_t val=kTRUE)
 
virtual void ActivateBuffering (Bool_t val=kTRUE)
 
Bool_t IsBufferingActivated ()
 
virtual void FillNewData (FairTimeStamp *data, double startTime, double activeTime)
 
virtual Int_t GetNData ()
 
virtual std::vector
< FairTimeStamp * > 
GetRemoveOldData (double time)
 
virtual std::vector
< FairTimeStamp * > 
GetAllData ()
 
virtual void SetVerbose (Int_t val)
 
virtual void DeleteOldData ()
 
virtual void WriteOutData (double time)
 
virtual void WriteOutAllData ()
 

Protected Member Functions

 ClassDef (MyWriteoutBuffer, 1)
 
- Protected Member Functions inherited from FairWriteoutBuffer
virtual std::vector< std::pair
< double, FairTimeStamp * > > 
Modify (std::pair< double, FairTimeStamp * > oldData, std::pair< double, FairTimeStamp * >)
 
virtual void WriteOutDataDeadTimeMap (double time)
 
virtual void MoveDataFromStartTimeMapToDeadTimeMap (double time)
 
virtual void FillDataToDeadTimeMap (FairTimeStamp *data, double activeTime, double startTime)
 
virtual void PrintData (FairTimeStamp *data)
 
virtual void PrintDeadTimeMap ()
 Method should be overwritten in derived classes to print the data of an object stored in the buffer. More...
 
virtual void PrintStartTimeMap ()
 

Protected Attributes

std::map< MyDataClass, double > fData_map
 
- Protected Attributes inherited from FairWriteoutBuffer
std::multimap< double,
std::pair< double,
FairTimeStamp * > > 
fStartTime_map
 
std::multimap< double,
FairTimeStamp * > 
fDeadTime_map
 
TString fBranchName
 
TString fClassName
 
Bool_t fTreeSave
 
Bool_t fActivateBuffering
 
Int_t fVerbose
 
FairLoggerfLogger
 

Detailed Description

Definition at line 22 of file MyWriteoutBuffer.h.

Constructor & Destructor Documentation

MyWriteoutBuffer::MyWriteoutBuffer ( )

Definition at line 19 of file MyWriteoutBuffer.cxx.

MyWriteoutBuffer::MyWriteoutBuffer ( TString  branchName,
TString  folderName,
Bool_t  persistance 
)

Definition at line 24 of file MyWriteoutBuffer.cxx.

MyWriteoutBuffer::~MyWriteoutBuffer ( )
virtual

Definition at line 29 of file MyWriteoutBuffer.cxx.

Member Function Documentation

void MyWriteoutBuffer::AddNewDataToTClonesArray ( FairTimeStamp data)
virtual

store the data from the FairTimeStamp pointer in a TClonesArray (you have to cast it to your type of data)

Implements FairWriteoutBuffer.

Definition at line 52 of file MyWriteoutBuffer.cxx.

MyWriteoutBuffer::ClassDef ( MyWriteoutBuffer  ,
 
)
protected
void MyWriteoutBuffer::EraseDataFromDataMap ( FairTimeStamp data)
virtual

delete the element from the search buffer (see PndSdsDigiPixelWriteoutBuffer)

Implements FairWriteoutBuffer.

Definition at line 80 of file MyWriteoutBuffer.cxx.

void MyWriteoutBuffer::FillDataMap ( FairTimeStamp data,
double  activeTime 
)
virtual

add a new element in the search buffer

Implements FairWriteoutBuffer.

Definition at line 74 of file MyWriteoutBuffer.cxx.

double MyWriteoutBuffer::FindTimeForData ( FairTimeStamp data)
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

Implements FairWriteoutBuffer.

Definition at line 62 of file MyWriteoutBuffer.cxx.

std::vector< std::pair< double, MyDataClass * > > MyWriteoutBuffer::Modify ( std::pair< double, MyDataClass * >  oldData,
std::pair< double, MyDataClass * >  newData 
)
virtual

Definition at line 31 of file MyWriteoutBuffer.cxx.

Member Data Documentation

std::map<MyDataClass, double> MyWriteoutBuffer::fData_map
protected

Definition at line 40 of file MyWriteoutBuffer.h.


The documentation for this class was generated from the following files: