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

#include <Config.h>

Collaboration diagram for cbm::reco::offline::Config:
[legend]

Public Member Functions

 Config ()=default
 Constructor.
 
virtual ~Config ()=default
 Destructor.
 
void LoadYaml (const std::string &filename)
 Load from YAML file.
 
std::string ToString ()
 String output (YAML format)
 
void SaveYaml (const std::string &filename)
 Save to YAML file.
 

Public Attributes

std::string f_glb_logLevel = "INFO"
 
std::string f_glb_logVerbose = "LOW"
 
std::string f_glb_logColor = "true"
 
ECbmRecoMode f_glb_mode = ECbmRecoMode::Undefined
 
Int_t f_glb_numTs = -1
 
Int_t f_glb_firstTs = 0
 
ECbmEvbuildType f_evbuild_type = ECbmEvbuildType::Undefined
 
EOverlapModeRaw f_evbuild_ovlapmode = EOverlapModeRaw::Undefined
 
ECbmModuleId f_evbuild_trigDet = ECbmModuleId::kNotExist
 
int64_t f_evbuild_trigNumMin = 0
 
int64_t f_evbuild_trigNumMax = 0
 
float f_evbuild_trigWinMin = std::nanf("undefined")
 
float f_evbuild_trigWinMax = std::nanf("undefined")
 
bool f_sts_usegpu = false
 
float f_trd_trigThresh = std::nanf("undefined")
 
std::string f_lit_trackType = ""
 
std::string f_lit_mergeType = ""
 

Private Member Functions

ECbmEvbuildType ToCbmEvbuildType (std::string tag)
 
ECbmRecoMode ToCbmRecoMode (std::string tag)
 
EOverlapModeRaw ToOverlapModeRaw (std::string tag)
 
std::string ToString (ECbmEvbuildType type)
 
std::string ToString (ECbmRecoMode mode)
 
std::string ToString (EOverlapModeRaw mode)
 
YAML::Node ToYaml ()
 Save to YAML node.
 

Detailed Description

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Date
31.05.2023

Configuration for the offline reconstruction chain, replacing run_reco.C. With interfaces to YAML.

Definition at line 41 of file reco/offline/steer/Config.h.

Constructor & Destructor Documentation

◆ Config()

cbm::reco::offline::Config::Config ( )
default

Constructor.

◆ ~Config()

virtual cbm::reco::offline::Config::~Config ( )
virtualdefault

Destructor.

Member Function Documentation

◆ LoadYaml()

void cbm::reco::offline::Config::LoadYaml ( const std::string & filename)

Load from YAML file.

Parameters
filenameName of input YAML file

Referenced by cbm::reco::offline::Application::Exec(), and cbm::reco::offline::Run::LoadConfig().

◆ SaveYaml()

void cbm::reco::offline::Config::SaveYaml ( const std::string & filename)
inline

Save to YAML file.

Parameters
filenameName of output YAML file

Definition at line 69 of file reco/offline/steer/Config.h.

References ToYaml().

◆ ToCbmEvbuildType()

ECbmEvbuildType cbm::reco::offline::Config::ToCbmEvbuildType ( std::string tag)
private

◆ ToCbmRecoMode()

ECbmRecoMode cbm::reco::offline::Config::ToCbmRecoMode ( std::string tag)
private

◆ ToOverlapModeRaw()

EOverlapModeRaw cbm::reco::offline::Config::ToOverlapModeRaw ( std::string tag)
private

Definition at line 93 of file reco/offline/steer/Config.cxx.

References AllowOverlap, MergeOverlap, NoOverlap, and Undefined.

◆ ToString() [1/4]

std::string cbm::reco::offline::Config::ToString ( )
inline

String output (YAML format)

Definition at line 58 of file reco/offline/steer/Config.h.

References ToYaml().

Referenced by cbm::reco::offline::Run::Exec(), and ToYaml().

◆ ToString() [2/4]

string cbm::reco::offline::Config::ToString ( ECbmEvbuildType type)
private

◆ ToString() [3/4]

string cbm::reco::offline::Config::ToString ( ECbmRecoMode mode)
private

Definition at line 123 of file reco/offline/steer/Config.cxx.

References EventByEvent, and Timeslice.

◆ ToString() [4/4]

string cbm::reco::offline::Config::ToString ( EOverlapModeRaw mode)
private

Definition at line 136 of file reco/offline/steer/Config.cxx.

References AllowOverlap, MergeOverlap, and NoOverlap.

◆ ToYaml()

Member Data Documentation

◆ f_evbuild_ovlapmode

EOverlapModeRaw cbm::reco::offline::Config::f_evbuild_ovlapmode = EOverlapModeRaw::Undefined

◆ f_evbuild_trigDet

ECbmModuleId cbm::reco::offline::Config::f_evbuild_trigDet = ECbmModuleId::kNotExist

◆ f_evbuild_trigNumMax

int64_t cbm::reco::offline::Config::f_evbuild_trigNumMax = 0

◆ f_evbuild_trigNumMin

int64_t cbm::reco::offline::Config::f_evbuild_trigNumMin = 0

◆ f_evbuild_trigWinMax

float cbm::reco::offline::Config::f_evbuild_trigWinMax = std::nanf("undefined")

◆ f_evbuild_trigWinMin

float cbm::reco::offline::Config::f_evbuild_trigWinMin = std::nanf("undefined")

◆ f_evbuild_type

◆ f_glb_firstTs

Int_t cbm::reco::offline::Config::f_glb_firstTs = 0

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

Referenced by cbm::reco::offline::Run::Exec(), and ToYaml().

◆ f_glb_logColor

std::string cbm::reco::offline::Config::f_glb_logColor = "true"

Definition at line 92 of file reco/offline/steer/Config.h.

Referenced by cbm::reco::offline::Run::Exec(), and ToYaml().

◆ f_glb_logLevel

std::string cbm::reco::offline::Config::f_glb_logLevel = "INFO"

Definition at line 90 of file reco/offline/steer/Config.h.

Referenced by cbm::reco::offline::Run::Exec(), and ToYaml().

◆ f_glb_logVerbose

std::string cbm::reco::offline::Config::f_glb_logVerbose = "LOW"

Definition at line 91 of file reco/offline/steer/Config.h.

Referenced by cbm::reco::offline::Run::Exec(), and ToYaml().

◆ f_glb_mode

◆ f_glb_numTs

Int_t cbm::reco::offline::Config::f_glb_numTs = -1

Definition at line 94 of file reco/offline/steer/Config.h.

Referenced by cbm::reco::offline::Run::Exec(), and ToYaml().

◆ f_lit_mergeType

std::string cbm::reco::offline::Config::f_lit_mergeType = ""

◆ f_lit_trackType

std::string cbm::reco::offline::Config::f_lit_trackType = ""

◆ f_sts_usegpu

bool cbm::reco::offline::Config::f_sts_usegpu = false

◆ f_trd_trigThresh

float cbm::reco::offline::Config::f_trd_trigThresh = std::nanf("undefined")

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