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

Handles timebased data via the GetData method. A time window has to be given in which the data is received. More...

#include <FairTimebasedSource.h>

Inheritance diagram for FairTimebasedSource:
FairDataSourceI

Public Member Functions

 FairTimebasedSource ()
 
 FairTimebasedSource (TString branchName, Double_t windowMinus, Double_t windowPlus)
 
virtual ~FairTimebasedSource ()
 
virtual void RetrieveData (double time)
 
virtual int GetNData ()
 
virtual TObject * GetData (int index)
 
virtual double GetTime (int index)
 
virtual void Reset ()
 
- Public Member Functions inherited from FairDataSourceI
 FairDataSourceI ()
 
 FairDataSourceI (TString branchName)
 
virtual ~FairDataSourceI ()
 
virtual InitStatus Init ()
 
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

Handles timebased data via the GetData method. A time window has to be given in which the data is received.

FairTimebasedSource.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 17 of file FairTimebasedSource.h.

Constructor & Destructor Documentation

FairTimebasedSource::FairTimebasedSource ( )

Definition at line 13 of file FairTimebasedSource.cxx.

FairTimebasedSource::FairTimebasedSource ( TString  branchName,
Double_t  windowMinus,
Double_t  windowPlus 
)
inline

Definition at line 21 of file FairTimebasedSource.h.

FairTimebasedSource::~FairTimebasedSource ( )
virtual

Definition at line 18 of file FairTimebasedSource.cxx.

Member Function Documentation

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

Implements FairDataSourceI.

Definition at line 29 of file FairTimebasedSource.h.

virtual int FairTimebasedSource::GetNData ( )
inlinevirtual

Implements FairDataSourceI.

Definition at line 28 of file FairTimebasedSource.h.

virtual double FairTimebasedSource::GetTime ( int  index)
inlinevirtual

Reimplemented from FairDataSourceI.

Definition at line 30 of file FairTimebasedSource.h.

virtual void FairTimebasedSource::Reset ( )
inlinevirtual

Implements FairDataSourceI.

Definition at line 31 of file FairTimebasedSource.h.

void FairTimebasedSource::RetrieveData ( double  time)
virtual

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 from FairDataSourceI.

Definition at line 24 of file FairTimebasedSource.cxx.


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