CbmRoot
Loading...
Searching...
No Matches
cbm::atconverter::Run Class Reference

#include <Run.h>

Inheritance diagram for cbm::atconverter::Run:
[legend]
Collaboration diagram for cbm::atconverter::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 SetOutput (const char *fileName)
 Set output file name.
 
void SetTraFiles (const std::vector< std::string > files)
 Set transport input files.
 
void SetRawFile (const char *fileName)
 Set digitizazion (raw) file name.
 
void SetParFile (const char *fileName)
 Set parameter file name.
 
void SetRecoFile (const char *fileName)
 Set reconstruction file name.
 
 ClassDef (cbm::atconverter::Run, 1)
 

Public Attributes

Config fConfig = {}
 
std::set< ECbmModuleIdfDataPresent = {}
 

Private Member Functions

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

Private Attributes

FairRunAna fRun {}
 
TString fOutput = ""
 
std::vector< TString > fTra
 
TString fRaw = ""
 
TString fPar = ""
 
TString fReco = ""
 
TString fSetupTag = ""
 
CbmSetupfSetup = nullptr
 
bool fOverwrite = false
 

Detailed Description

Constructor & Destructor Documentation

◆ Run() [1/2]

cbm::atconverter::Run::Run ( )

Constructor.

Definition at line 41 of file analysis/common/analysis_tree_converter/steer/Run.cxx.

◆ ~Run()

cbm::atconverter::Run::~Run ( )
virtual

Destructor

Definition at line 46 of file analysis/common/analysis_tree_converter/steer/Run.cxx.

◆ Run() [2/2]

cbm::atconverter::Run::Run ( const Run & )
privatedelete

Copy constructor forbidden.

Member Function Documentation

◆ AddTask()

◆ AllowOverwrite()

void cbm::atconverter::Run::AllowOverwrite ( )
inline

Allow overwriting if output file already exists.

Definition at line 47 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fOverwrite.

Referenced by cbm::atconverter::Application::Exec().

◆ CheckFile()

bool cbm::atconverter::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 60 of file analysis/common/analysis_tree_converter/steer/Run.cxx.

References buffer.

Referenced by Exec().

◆ CheckInputBranches()

void cbm::atconverter::Run::CheckInputBranches ( FairFileSource * source)
private

Check the presence of reco input branches.

Definition at line 82 of file analysis/common/analysis_tree_converter/steer/Run.cxx.

References CheckRecoBranch(), kMvd, and kNofSystems.

Referenced by Exec().

◆ CheckRecoBranch()

void cbm::atconverter::Run::CheckRecoBranch ( TTree * tree,
ECbmModuleId detector )
private

Check and mark presence of reco branches.

Parameters
treePointer to ROOT tree
detectorECbmModuleId

Definition at line 69 of file analysis/common/analysis_tree_converter/steer/Run.cxx.

References fDataPresent, and ToString().

Referenced by CheckInputBranches().

◆ ClassDef()

cbm::atconverter::Run::ClassDef ( cbm::atconverter::Run ,
1  )

◆ CreateTopology()

◆ Exec()

◆ GetConfig()

const Config & cbm::atconverter::Run::GetConfig ( ) const
inline

Settings object.

Definition at line 55 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fConfig.

◆ IsDataPresent()

bool cbm::atconverter::Run::IsDataPresent ( ECbmModuleId detector) const
inline

Presence of input digi data.

Parameters
detectorDetector data to check
Returns
true if data present, else false

Definition at line 62 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fDataPresent.

Referenced by cbm::atconverter::TaskFactory::RegisterConverterManager(), and cbm::atconverter::TaskFactory::RegisterTrdPid().

◆ LoadConfig()

void cbm::atconverter::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 206 of file analysis/common/analysis_tree_converter/steer/Run.cxx.

References fConfig, and cbm::atconverter::Config::LoadYaml().

◆ operator=()

Run cbm::atconverter::Run::operator= ( const Run & )
privatedelete

Assignment operator forbidden.

◆ SetConfig()

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

Set configuration.

Parameters
fileNameConfiguration object

Definition at line 77 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fConfig.

Referenced by cbm::atconverter::Application::Exec().

◆ SetGeoSetupTag()

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

Set geometry setup tag.

Parameters
tagGeometry setup tag

Definition at line 83 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fSetupTag.

Referenced by cbm::atconverter::Application::Exec().

◆ SetOutput()

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

Set output file name.

Parameters
fileNameOutput file name

Definition at line 89 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fOutput.

Referenced by cbm::atconverter::Application::Exec().

◆ SetParFile()

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

Set parameter file name.

Parameters
fileNameParameter file name

Definition at line 107 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fPar.

Referenced by cbm::atconverter::Application::Exec().

◆ SetRawFile()

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

Set digitizazion (raw) file name.

Parameters
fileNameDigitization file name

Definition at line 101 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fRaw.

Referenced by cbm::atconverter::Application::Exec().

◆ SetRecoFile()

void cbm::atconverter::Run::SetRecoFile ( const char * fileName)
inline

Set reconstruction file name.

Parameters
fileNameReconstruction file name

Definition at line 113 of file analysis/common/analysis_tree_converter/steer/Run.h.

References fReco.

Referenced by cbm::atconverter::Application::Exec().

◆ SetTraFiles()

void cbm::atconverter::Run::SetTraFiles ( const std::vector< std::string > files)

Set transport input files.

Parameters
filesVector of transport input file names

Definition at line 221 of file analysis/common/analysis_tree_converter/steer/Run.cxx.

References fTra.

Referenced by cbm::atconverter::Application::Exec().

Member Data Documentation

◆ fConfig

◆ fDataPresent

std::set<ECbmModuleId> cbm::atconverter::Run::fDataPresent = {}

◆ fOutput

TString cbm::atconverter::Run::fOutput = ""
private

◆ fOverwrite

bool cbm::atconverter::Run::fOverwrite = false
private

Definition at line 156 of file analysis/common/analysis_tree_converter/steer/Run.h.

Referenced by AllowOverwrite(), and Exec().

◆ fPar

TString cbm::atconverter::Run::fPar = ""
private

Definition at line 152 of file analysis/common/analysis_tree_converter/steer/Run.h.

Referenced by Exec(), and SetParFile().

◆ fRaw

TString cbm::atconverter::Run::fRaw = ""
private

Definition at line 151 of file analysis/common/analysis_tree_converter/steer/Run.h.

Referenced by Exec(), and SetRawFile().

◆ fReco

TString cbm::atconverter::Run::fReco = ""
private

Definition at line 153 of file analysis/common/analysis_tree_converter/steer/Run.h.

Referenced by Exec(), and SetRecoFile().

◆ fRun

FairRunAna cbm::atconverter::Run::fRun {}
private

Definition at line 148 of file analysis/common/analysis_tree_converter/steer/Run.h.

Referenced by AddTask(), and Exec().

◆ fSetup

CbmSetup* cbm::atconverter::Run::fSetup = nullptr
private

Definition at line 155 of file analysis/common/analysis_tree_converter/steer/Run.h.

Referenced by Exec().

◆ fSetupTag

TString cbm::atconverter::Run::fSetupTag = ""
private

Definition at line 154 of file analysis/common/analysis_tree_converter/steer/Run.h.

Referenced by Exec(), and SetGeoSetupTag().

◆ fTra

std::vector<TString> cbm::atconverter::Run::fTra
private

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