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

#include <FairTimebasedMCSource.h>

Inheritance diagram for FairTimebasedMCSource:
FairDataSourceI

Public Member Functions

 FairTimebasedMCSource ()
 
 FairTimebasedMCSource (TString branchName, double holdTime=10.0)
 
virtual ~FairTimebasedMCSource ()
 
virtual InitStatus Init ()
 
virtual void RetrieveData (double simTime)
 
virtual int GetNData ()
 
virtual TObject * GetData (int index)
 
virtual double GetTime (int index)
 
virtual void Reset ()
 
void SetHoldTime (double time)
 
- Public Member Functions inherited from FairDataSourceI
 FairDataSourceI ()
 
 FairDataSourceI (TString branchName)
 
virtual ~FairDataSourceI ()
 
virtual TString GetBranchName () const
 

Additional Inherited Members

- Protected Member Functions inherited from FairDataSourceI
 ClassDef (FairDataSourceI, 1)
 
- Protected Attributes inherited from FairDataSourceI
TClonesArray * fCArray = nullptr
 
TString fBranchName
 

Detailed Description

Definition at line 19 of file FairTimebasedMCSource.h.

Constructor & Destructor Documentation

FairTimebasedMCSource::FairTimebasedMCSource ( )

Definition at line 14 of file FairTimebasedMCSource.cxx.

FairTimebasedMCSource::FairTimebasedMCSource ( TString  branchName,
double  holdTime = 10.0 
)
inline

Definition at line 23 of file FairTimebasedMCSource.h.

FairTimebasedMCSource::~FairTimebasedMCSource ( )
virtual

Definition at line 19 of file FairTimebasedMCSource.cxx.

Member Function Documentation

virtual TObject* FairTimebasedMCSource::GetData ( int  index)
inlinevirtual

Implements FairDataSourceI.

Definition at line 35 of file FairTimebasedMCSource.h.

virtual int FairTimebasedMCSource::GetNData ( )
inlinevirtual

Implements FairDataSourceI.

Definition at line 34 of file FairTimebasedMCSource.h.

virtual double FairTimebasedMCSource::GetTime ( int  index)
inlinevirtual

Reimplemented from FairDataSourceI.

Definition at line 36 of file FairTimebasedMCSource.h.

InitStatus FairTimebasedMCSource::Init ( )
virtual

Init has to be called in the Init() of a task to activate the read back of a TClonesArray

Reimplemented from FairDataSourceI.

Definition at line 24 of file FairTimebasedMCSource.cxx.

virtual void FairTimebasedMCSource::Reset ( )
inlinevirtual

Implements FairDataSourceI.

Definition at line 40 of file FairTimebasedMCSource.h.

void FairTimebasedMCSource::RetrieveData ( double  simTime)
virtual

Deletes data which is older than time + holdTime and adds new data from input TClonesArray

Parameters
simTimeAbsolute time in ns which determines which data is deleted and which new event is read in

Reimplemented from FairDataSourceI.

Definition at line 41 of file FairTimebasedMCSource.cxx.

void FairTimebasedMCSource::SetHoldTime ( double  time)
inline

Definition at line 41 of file FairTimebasedMCSource.h.


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