FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairDataSourceI.cxx
Go to the documentation of this file.
1 /*
2  * FairDataSourceI.cxx
3  *
4  * \date 07.12.2020
5  * \author Tobias Stockmanns <t.stockmanns@fz-juelich.de>
6  */
7 
8 #include "FairTask.h"
9 
10 #include <FairDataSourceI.h>
11 #include <FairRootManager.h>
12 #include <fairlogger/Logger.h>
13 
15 
17 {
18  // TODO Auto-generated constructor stub
19 }
20 
22 {
23  // TODO Auto-generated destructor stub
24 }
25 
27 {
28  fCArray = static_cast<TClonesArray*>(FairRootManager::Instance()->GetObject(fBranchName));
29  if (fCArray != nullptr) {
30  return kSUCCESS;
31  }
32  LOG(error) << "Branch " << fBranchName << " not found!";
33  return kERROR;
34 }
virtual InitStatus Init()
InitStatus
Definition: FairTask.h:33
virtual ~FairDataSourceI()
TClonesArray * fCArray
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
TObject * GetObject(const char *BrName)
Abstract interface class to handle different input data for event and timebased data.