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

Abstract interface class to handle different input data for event and timebased data. More...

#include <FairDataSourceI.h>

Inheritance diagram for FairDataSourceI:
FairTCASource FairTimebasedMCHitSource FairTimebasedMCSource FairTimebasedSource

Public Member Functions

 FairDataSourceI ()
 
 FairDataSourceI (TString branchName)
 
virtual ~FairDataSourceI ()
 
virtual InitStatus Init ()
 
virtual void RetrieveData (double time)
 
virtual int GetNData ()=0
 
virtual TObject * GetData (int index)=0
 
virtual double GetTime (int index)
 
virtual TString GetBranchName () const
 
virtual void Reset ()=0
 

Protected Member Functions

 ClassDef (FairDataSourceI, 1)
 

Protected Attributes

TClonesArray * fCArray = nullptr
 
TString fBranchName
 

Detailed Description

Abstract interface class to handle different input data for event and timebased data.

FairDataSourceI.h

Date
07.12.2020
Author
Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

Definition at line 21 of file FairDataSourceI.h.

Constructor & Destructor Documentation

FairDataSourceI::FairDataSourceI ( )

Definition at line 16 of file FairDataSourceI.cxx.

FairDataSourceI::FairDataSourceI ( TString  branchName)
inline

Definition at line 25 of file FairDataSourceI.h.

FairDataSourceI::~FairDataSourceI ( )
virtual

Definition at line 21 of file FairDataSourceI.cxx.

Member Function Documentation

FairDataSourceI::ClassDef ( FairDataSourceI  ,
 
)
protected
virtual TString FairDataSourceI::GetBranchName ( void  ) const
inlinevirtual

Definition at line 45 of file FairDataSourceI.h.

virtual TObject* FairDataSourceI::GetData ( int  index)
pure virtual
virtual int FairDataSourceI::GetNData ( )
pure virtual
virtual double FairDataSourceI::GetTime ( int  index)
inlinevirtual
InitStatus FairDataSourceI::Init ( )
virtual

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

Reimplemented in FairTimebasedMCHitSource, and FairTimebasedMCSource.

Definition at line 26 of file FairDataSourceI.cxx.

virtual void FairDataSourceI::Reset ( )
pure virtual
virtual void FairDataSourceI::RetrieveData ( double  time)
inlinevirtual

Has to be called at the beginning of an Execute to handle the input data.

Parameters
timeAbsolute time in ns which is active at the current event. This data is needed for the timebased input data. For event based data the time is ignored

Reimplemented in FairTimebasedMCHitSource, FairTimebasedMCSource, and FairTimebasedSource.

Definition at line 38 of file FairDataSourceI.h.

Member Data Documentation

TString FairDataSourceI::fBranchName
protected

Definition at line 50 of file FairDataSourceI.h.

TClonesArray* FairDataSourceI::fCArray = nullptr
protected

Definition at line 49 of file FairDataSourceI.h.


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