FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FairTimebasedSource.cxx
Go to the documentation of this file.
1
/*
2
* FairTimebasedSource.cxx
3
*
4
* \date 07.12.2020
5
* \author Tobias Stockmanns <t.stockmanns@fz-juelich.de>
6
*/
7
8
#include <
FairRootManager.h
>
9
#include <
FairTimebasedSource.h
>
10
11
ClassImp
(
FairTimebasedSource
);
12
13
FairTimebasedSource::FairTimebasedSource
()
14
{
15
// TODO Auto-generated constructor stub
16
}
17
18
FairTimebasedSource::~FairTimebasedSource
()
19
{
20
delete
(fStartFunctor);
21
delete
(fStopFunctor);
22
}
23
24
void
FairTimebasedSource::RetrieveData
(
double
time)
25
{
26
fCArray
=
FairRootManager::Instance
()->
GetData
(
27
fBranchName
, fStartFunctor, time - fTimeWindowMinus, fStopFunctor, time + fTimeWindowPlus);
28
FairDataSourceI::RetrieveData
(time);
29
}
FairRootManager.h
FairTimebasedSource.h
FairDataSourceI::fCArray
TClonesArray * fCArray
Definition:
FairDataSourceI.h:49
FairDataSourceI::RetrieveData
virtual void RetrieveData(double time)
Definition:
FairDataSourceI.h:38
FairRootManager::Instance
static FairRootManager * Instance()
Definition:
FairRootManager.cxx:69
ClassImp
ClassImp(FairEventBuilder)
FairTimebasedSource
Handles timebased data via the GetData method. A time window has to be given in which the data is rec...
Definition:
FairTimebasedSource.h:17
FairRootManager::GetData
TClonesArray * GetData(TString branchName, BinaryFunctor *function, Double_t parameter)
Definition:
FairRootManager.cxx:326
FairDataSourceI::fBranchName
TString fBranchName
Definition:
FairDataSourceI.h:50
FairTimebasedSource::FairTimebasedSource
FairTimebasedSource()
Definition:
FairTimebasedSource.cxx:13
FairTimebasedSource::RetrieveData
virtual void RetrieveData(double time)
Definition:
FairTimebasedSource.cxx:24
FairTimebasedSource::~FairTimebasedSource
virtual ~FairTimebasedSource()
Definition:
FairTimebasedSource.cxx:18
FairRoot
eventdisplay
datasource
FairTimebasedSource.cxx
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5