CbmRoot
Loading...
Searching...
No Matches
cbm::reco::offline::Run Class Reference

#include <Run.h>

Inheritance diagram for cbm::reco::offline::Run:
[legend]
Collaboration diagram for cbm::reco::offline::Run:
[legend]

Public Member Functions

 Run ()
 Constructor.
 
virtual ~Run ()
 Destructor

 
void AddTask (FairTask *task)
 Add a task to the run.
 
void AllowOverwrite ()
 Allow overwriting if output file already exists.
 
void Exec ()
 Run reconstruction.
 
const ConfigGetConfig () const
 Settings object.
 
bool IsDataPresent (ECbmModuleId detector) const
 Presence of input digi data.
 
void LoadConfig (const char *fileName)
 Set configuration file name.
 
void SetConfig (const Config &config)
 Set configuration.
 
void SetGeoSetupTag (const char *tag)
 Set geometry setup tag.
 
void SetRawFile (const char *fileName)
 Set digitization (raw) file name.
 
void SetNumTs (int32_t num)
 Set number of timeslices to process.
 
void SetOutput (const char *fileName)
 Set output file name.
 
void SetParFile (const char *fileName)
 Set parameter file name.
 

Private Member Functions

 Run (const Run &)=delete
 Copy constructor forbidden.
 
Run operator= (const Run &)=delete
 Assignment operator forbidden.
 
void CheckDigiBranch (TTree *tree, ECbmModuleId detector)
 Check and mark presence of a digi branch.
 
bool CheckFile (const char *fileName)
 Check existence of a file.
 
void CheckInputBranches (FairFileSource *source)
 Check the presence of digi input branches.
 
void CreateTopology ()
 Create the reconstruction task topology (chain)
 
 ClassDef (cbm::reco::offline::Run, 1)
 

Private Attributes

FairRunAna fRun {}
 
TString fOutput = ""
 
TString fRaw = ""
 
TString fPar = ""
 
TString fSetupTag = ""
 
CbmSetupfSetup = nullptr
 
size_t fNumTs = 0
 
bool fOverwrite = false
 
Config fConfig = {}
 
std::set< ECbmModuleIdfDataPresent = {}
 

Detailed Description

Definition at line 31 of file reco/offline/steer/Run.h.

Constructor & Destructor Documentation

◆ Run() [1/2]

cbm::reco::offline::Run::Run ( )

Constructor.

Definition at line 41 of file reco/offline/steer/Run.cxx.

◆ ~Run()

cbm::reco::offline::Run::~Run ( )
virtual

Destructor

Definition at line 46 of file reco/offline/steer/Run.cxx.

◆ Run() [2/2]

cbm::reco::offline::Run::Run ( const Run & )
privatedelete

Copy constructor forbidden.

Member Function Documentation

◆ AddTask()

◆ AllowOverwrite()

void cbm::reco::offline::Run::AllowOverwrite ( )
inline

Allow overwriting if output file already exists.

Definition at line 47 of file reco/offline/steer/Run.h.

References fOverwrite.

Referenced by cbm::reco::offline::Application::Exec().

◆ CheckDigiBranch()

void cbm::reco::offline::Run::CheckDigiBranch ( TTree * tree,
ECbmModuleId detector )
private

Check and mark presence of a digi branch.

Parameters
detectorECbmModuleId
treePointer to ROOT Tree

Definition at line 60 of file reco/offline/steer/Run.cxx.

References fDataPresent, and ToString().

Referenced by CheckInputBranches().

◆ CheckFile()

bool cbm::reco::offline::Run::CheckFile ( const char * fileName)
private

Check existence of a file.

Parameters
fileNameFile name (absolute or relative to current directory)
Returns
true if file exists

Definition at line 73 of file reco/offline/steer/Run.cxx.

References buffer.

Referenced by Exec().

◆ CheckInputBranches()

void cbm::reco::offline::Run::CheckInputBranches ( FairFileSource * source)
private

Check the presence of digi input branches.

Definition at line 82 of file reco/offline/steer/Run.cxx.

References CheckDigiBranch(), kMvd, and kNofSystems.

Referenced by Exec().

◆ ClassDef()

cbm::reco::offline::Run::ClassDef ( cbm::reco::offline::Run ,
1  )
private

◆ CreateTopology()

◆ Exec()

◆ GetConfig()

◆ IsDataPresent()

◆ LoadConfig()

void cbm::reco::offline::Run::LoadConfig ( const char * fileName)

Set configuration file name.

Parameters
fileNameConfiguration file name

Legacy interface for running from ROOT prompt. In the executable, the config is read in by the application.

Definition at line 227 of file reco/offline/steer/Run.cxx.

References fConfig, and cbm::reco::offline::Config::LoadYaml().

◆ operator=()

Run cbm::reco::offline::Run::operator= ( const Run & )
privatedelete

Assignment operator forbidden.

◆ SetConfig()

void cbm::reco::offline::Run::SetConfig ( const Config & config)
inline

Set configuration.

Parameters
fileNameConfiguration object

Definition at line 77 of file reco/offline/steer/Run.h.

References fConfig.

Referenced by cbm::reco::offline::Application::Exec().

◆ SetGeoSetupTag()

void cbm::reco::offline::Run::SetGeoSetupTag ( const char * tag)
inline

Set geometry setup tag.

Parameters
tagGeometry setup tag

Definition at line 83 of file reco/offline/steer/Run.h.

References fSetupTag.

Referenced by cbm::reco::offline::Application::Exec().

◆ SetNumTs()

void cbm::reco::offline::Run::SetNumTs ( int32_t num)
inline

Set number of timeslices to process.

Parameters
numTsNumber of timeslice to process

Definition at line 95 of file reco/offline/steer/Run.h.

References fNumTs.

◆ SetOutput()

void cbm::reco::offline::Run::SetOutput ( const char * fileName)
inline

Set output file name.

Parameters
fileNameOutput file name

Definition at line 101 of file reco/offline/steer/Run.h.

References fOutput.

Referenced by cbm::reco::offline::Application::Exec().

◆ SetParFile()

void cbm::reco::offline::Run::SetParFile ( const char * fileName)
inline

Set parameter file name.

Parameters
fileNameParameter file name

Definition at line 107 of file reco/offline/steer/Run.h.

References fPar.

Referenced by cbm::reco::offline::Application::Exec().

◆ SetRawFile()

void cbm::reco::offline::Run::SetRawFile ( const char * fileName)
inline

Set digitization (raw) file name.

Parameters
fileNameDigi (raw) file name

Definition at line 89 of file reco/offline/steer/Run.h.

References fRaw.

Referenced by cbm::reco::offline::Application::Exec().

Member Data Documentation

◆ fConfig

Config cbm::reco::offline::Run::fConfig = {}
private

Definition at line 151 of file reco/offline/steer/Run.h.

Referenced by CreateTopology(), Exec(), GetConfig(), LoadConfig(), and SetConfig().

◆ fDataPresent

std::set<ECbmModuleId> cbm::reco::offline::Run::fDataPresent = {}
private

Definition at line 152 of file reco/offline/steer/Run.h.

Referenced by CheckDigiBranch(), and IsDataPresent().

◆ fNumTs

size_t cbm::reco::offline::Run::fNumTs = 0
private

Definition at line 148 of file reco/offline/steer/Run.h.

Referenced by SetNumTs().

◆ fOutput

TString cbm::reco::offline::Run::fOutput = ""
private

Definition at line 143 of file reco/offline/steer/Run.h.

Referenced by Exec(), and SetOutput().

◆ fOverwrite

bool cbm::reco::offline::Run::fOverwrite = false
private

Definition at line 149 of file reco/offline/steer/Run.h.

Referenced by AllowOverwrite(), and Exec().

◆ fPar

TString cbm::reco::offline::Run::fPar = ""
private

Definition at line 145 of file reco/offline/steer/Run.h.

Referenced by Exec(), and SetParFile().

◆ fRaw

TString cbm::reco::offline::Run::fRaw = ""
private

Definition at line 144 of file reco/offline/steer/Run.h.

Referenced by Exec(), and SetRawFile().

◆ fRun

FairRunAna cbm::reco::offline::Run::fRun {}
private

Definition at line 142 of file reco/offline/steer/Run.h.

Referenced by AddTask(), and Exec().

◆ fSetup

CbmSetup* cbm::reco::offline::Run::fSetup = nullptr
private

Definition at line 147 of file reco/offline/steer/Run.h.

Referenced by Exec().

◆ fSetupTag

TString cbm::reco::offline::Run::fSetupTag = ""
private

Definition at line 146 of file reco/offline/steer/Run.h.

Referenced by Exec(), and SetGeoSetupTag().


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