FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEventBuilder Class Referenceabstract

#include <FairEventBuilder.h>

Inheritance diagram for FairEventBuilder:
FairWriteoutBuffer

Public Member Functions

 FairEventBuilder ()
 
 FairEventBuilder (TString branchName, TString className, TString folderName, Bool_t persistance)
 
virtual ~FairEventBuilder ()
 
virtual void WriteOutAllDeadTimeData ()
 
virtual std::vector< std::pair
< double, FairRecoEventHeader * > > 
FindEvents ()=0
 
virtual void StoreEventData (FairRecoEventHeader *)=0
 
void SetIdentifier (Int_t ident)
 
Int_t GetIdentifier ()
 
virtual Bool_t Init ()=0
 
virtual void Print (Option_t *option="") const =0
 
virtual void Finish ()
 
Double_t AllowedTime ()
 
void SetMaxAllowedTime (Double_t td)
 
void SetBuilderName (const char *name)
 
TString GetBuilderName ()
 
- 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from FairWriteoutBuffer
virtual void AddNewDataToTClonesArray (FairTimeStamp *data)=0
 
virtual double FindTimeForData (FairTimeStamp *data)=0
 
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 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 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 46 of file FairEventBuilder.h.

Constructor & Destructor Documentation

FairEventBuilder::FairEventBuilder ( )

Default constructor

FairEventBuilder

Author
Radoslaw Karabowicz r.kar.nosp@m.abow.nosp@m.icz@g.nosp@m.si.d.nosp@m.e
Since
23.09.2013
Version
1.0

FairRoot base task for the event buffers. The tasks may:

  1. analyze data to reconstruct event times or other characteristics in the function TClonesArray* FindEvents(), that returns TClonesArray of FairRecoEvents
  2. identify the data that could belong to event in the function and insert this identified data to the output TClonesArrays in the function StoreEventData(event) The implementations may be using any or both of the above functions.

Definition at line 39 of file FairEventBuilder.cxx.

FairEventBuilder::FairEventBuilder ( TString  branchName,
TString  className,
TString  folderName,
Bool_t  persistance 
)

Constructor with task name

Definition at line 48 of file FairEventBuilder.cxx.

FairEventBuilder::~FairEventBuilder ( )
virtual

Destructor

Definition at line 57 of file FairEventBuilder.cxx.

Member Function Documentation

Double_t FairEventBuilder::AllowedTime ( )
inline

Definition at line 73 of file FairEventBuilder.h.

virtual std::vector<std::pair<double, FairRecoEventHeader*> > FairEventBuilder::FindEvents ( )
pure virtual
void FairEventBuilder::Finish ( )
virtual

Finish at the end of each event

Definition at line 96 of file FairEventBuilder.cxx.

TString FairEventBuilder::GetBuilderName ( )
inline

Definition at line 77 of file FairEventBuilder.h.

Int_t FairEventBuilder::GetIdentifier ( )
inline

Definition at line 64 of file FairEventBuilder.h.

virtual Bool_t FairEventBuilder::Init ( )
pure virtual
virtual void FairEventBuilder::Print ( Option_t *  option = "") const
pure virtual
void FairEventBuilder::SetBuilderName ( const char *  name)
inline

Definition at line 76 of file FairEventBuilder.h.

void FairEventBuilder::SetIdentifier ( Int_t  ident)
inline

Definition at line 63 of file FairEventBuilder.h.

void FairEventBuilder::SetMaxAllowedTime ( Double_t  td)
inline

Definition at line 74 of file FairEventBuilder.h.

virtual void FairEventBuilder::StoreEventData ( FairRecoEventHeader )
pure virtual
void FairEventBuilder::WriteOutAllDeadTimeData ( )
virtual

Definition at line 59 of file FairEventBuilder.cxx.


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