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

#include <FairTimebasedMCHitSource.h>

Inheritance diagram for FairTimebasedMCHitSource:
FairDataSourceI

Public Member Functions

 FairTimebasedMCHitSource ()
 
 FairTimebasedMCHitSource (TString branchName, double holdTime=10.0)
 
virtual ~FairTimebasedMCHitSource ()
 
virtual InitStatus Init ()
 
virtual void RetrieveData (double time)
 
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 FairTimebasedMCHitSource.h.

Constructor & Destructor Documentation

FairTimebasedMCHitSource::FairTimebasedMCHitSource ( )

Definition at line 14 of file FairTimebasedMCHitSource.cxx.

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

Definition at line 23 of file FairTimebasedMCHitSource.h.

FairTimebasedMCHitSource::~FairTimebasedMCHitSource ( )
virtual

Definition at line 19 of file FairTimebasedMCHitSource.cxx.

Member Function Documentation

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

Implements FairDataSourceI.

Definition at line 35 of file FairTimebasedMCHitSource.h.

virtual int FairTimebasedMCHitSource::GetNData ( )
inlinevirtual

Implements FairDataSourceI.

Definition at line 34 of file FairTimebasedMCHitSource.h.

virtual double FairTimebasedMCHitSource::GetTime ( int  index)
inlinevirtual

Reimplemented from FairDataSourceI.

Definition at line 36 of file FairTimebasedMCHitSource.h.

InitStatus FairTimebasedMCHitSource::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 FairTimebasedMCHitSource.cxx.

virtual void FairTimebasedMCHitSource::Reset ( )
inlinevirtual

Implements FairDataSourceI.

Definition at line 40 of file FairTimebasedMCHitSource.h.

void FairTimebasedMCHitSource::RetrieveData ( double  time)
virtual

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

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

Reimplemented from FairDataSourceI.

Definition at line 42 of file FairTimebasedMCHitSource.cxx.

void FairTimebasedMCHitSource::SetHoldTime ( double  time)
inline

Definition at line 41 of file FairTimebasedMCHitSource.h.


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