CbmRoot
Loading...
Searching...
No Matches
cbm::sim::digitization::Config Class Reference

#include <Config.h>

Collaboration diagram for cbm::sim::digitization::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"
 
cbm::sim::Mode f_glb_mode = cbm::sim::Mode::Undefined
 
int f_glb_numTs = -1
 
int f_glb_firstTs = 0
 
ECbmModuleId f_det_deactivateAllBut = ECbmModuleId::kNotExist
 
std::vector< ECbmModuleIdf_det_deactivate
 
float f_ts_tslength = 1.e5
 
float f_ts_startTime = 1000.
 
bool f_ts_storeAllTS = false
 
cbm::sim::TimeDist f_ts_timeDist
 
bool f_bg_produceNoise = false
 
std::vector< int > f_src_id
 
std::vector< float > f_src_rate
 
std::vector< ECbmTreeAccessf_src_treeAccessMode
 
std::vector< int > f_src_embedToId
 

Private Member Functions

cbm::sim::Mode ToCbmDigiMode (std::string tag)
 
std::string ToString (cbm::sim::Mode mode)
 
cbm::sim::TimeDist ToCbmSimTimeDist (std::string tag)
 
std::string ToString (cbm::sim::TimeDist dist)
 
ECbmModuleId ToECbmModuleId (std::string moduleString)
 
std::string ToString (ECbmModuleId moduleId)
 
ECbmTreeAccess ToECbmTreeAccess (std::string treeAccessString)
 
std::string ToString (ECbmTreeAccess treeAccessString)
 
YAML::Node ToYaml ()
 Save to YAML node.
 

Detailed Description

Author
Frederic Linz f.lin.nosp@m.z@gs.nosp@m.i.de
Date
09.01.2024

Configuration for the analysis tree converter, replacing run_digi_json_config.C. With interfaces to YAML.

Definition at line 34 of file sim/response/steer/Config.h.

Constructor & Destructor Documentation

◆ Config()

cbm::sim::digitization::Config::Config ( )
default

Constructor.

◆ ~Config()

virtual cbm::sim::digitization::Config::~Config ( )
virtualdefault

Destructor.

Member Function Documentation

◆ LoadYaml()

void cbm::sim::digitization::Config::LoadYaml ( const std::string & filename)

Load from YAML file.

Parameters
filenameName of input YAML file

Referenced by cbm::sim::digitization::Run::LoadConfig().

◆ SaveYaml()

void cbm::sim::digitization::Config::SaveYaml ( const std::string & filename)
inline

Save to YAML file.

Parameters
filenameName of output YAML file

Definition at line 62 of file sim/response/steer/Config.h.

References ToYaml().

◆ ToCbmDigiMode()

cbm::sim::Mode cbm::sim::digitization::Config::ToCbmDigiMode ( std::string tag)
private

◆ ToCbmSimTimeDist()

cbm::sim::TimeDist cbm::sim::digitization::Config::ToCbmSimTimeDist ( std::string tag)
private

◆ ToECbmModuleId()

ECbmModuleId cbm::sim::digitization::Config::ToECbmModuleId ( std::string moduleString)
private

Definition at line 126 of file sim/response/steer/Config.cxx.

References kBmon, kFsd, kMuch, kMvd, kNotExist, kPsd, kRich, kSts, kTof, and kTrd.

◆ ToECbmTreeAccess()

ECbmTreeAccess cbm::sim::digitization::Config::ToECbmTreeAccess ( std::string treeAccessString)
private

Definition at line 182 of file sim/response/steer/Config.cxx.

References kRandom, kRegular, and kRepeat.

◆ ToString() [1/5]

std::string cbm::sim::digitization::Config::ToString ( )
inline

String output (YAML format)

Definition at line 51 of file sim/response/steer/Config.h.

References ToYaml().

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ ToString() [2/5]

string cbm::sim::digitization::Config::ToString ( cbm::sim::Mode mode)
private

Definition at line 85 of file sim/response/steer/Config.cxx.

References cbm::sim::EventByEvent, and cbm::sim::Timebased.

◆ ToString() [3/5]

string cbm::sim::digitization::Config::ToString ( cbm::sim::TimeDist dist)
private

Definition at line 113 of file sim/response/steer/Config.cxx.

References cbm::sim::Poisson, and cbm::sim::Uniform.

◆ ToString() [4/5]

string cbm::sim::digitization::Config::ToString ( ECbmModuleId moduleId)
private

Definition at line 155 of file sim/response/steer/Config.cxx.

References kBmon, kFsd, kMuch, kMvd, kPsd, kRich, kSts, kTof, and kTrd.

◆ ToString() [5/5]

string cbm::sim::digitization::Config::ToString ( ECbmTreeAccess treeAccessString)
private

Definition at line 197 of file sim/response/steer/Config.cxx.

References kRandom, and kRepeat.

◆ ToYaml()

Member Data Documentation

◆ f_bg_produceNoise

bool cbm::sim::digitization::Config::f_bg_produceNoise = false

Definition at line 107 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_det_deactivate

std::vector<ECbmModuleId> cbm::sim::digitization::Config::f_det_deactivate

Definition at line 97 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_det_deactivateAllBut

ECbmModuleId cbm::sim::digitization::Config::f_det_deactivateAllBut = ECbmModuleId::kNotExist

Definition at line 96 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_glb_firstTs

int cbm::sim::digitization::Config::f_glb_firstTs = 0

Definition at line 93 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_glb_logColor

std::string cbm::sim::digitization::Config::f_glb_logColor = "true"

Definition at line 90 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_glb_logLevel

std::string cbm::sim::digitization::Config::f_glb_logLevel = "INFO"

Definition at line 88 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_glb_logVerbose

std::string cbm::sim::digitization::Config::f_glb_logVerbose = "LOW"

Definition at line 89 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_glb_mode

cbm::sim::Mode cbm::sim::digitization::Config::f_glb_mode = cbm::sim::Mode::Undefined

Definition at line 91 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_glb_numTs

int cbm::sim::digitization::Config::f_glb_numTs = -1

Definition at line 92 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_src_embedToId

std::vector<int> cbm::sim::digitization::Config::f_src_embedToId

Definition at line 113 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_src_id

std::vector<int> cbm::sim::digitization::Config::f_src_id

Definition at line 110 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_src_rate

std::vector<float> cbm::sim::digitization::Config::f_src_rate

Definition at line 111 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_src_treeAccessMode

std::vector<ECbmTreeAccess> cbm::sim::digitization::Config::f_src_treeAccessMode

Definition at line 112 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_ts_startTime

float cbm::sim::digitization::Config::f_ts_startTime = 1000.

Definition at line 101 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_ts_storeAllTS

bool cbm::sim::digitization::Config::f_ts_storeAllTS = false

Definition at line 102 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().

◆ f_ts_timeDist

cbm::sim::TimeDist cbm::sim::digitization::Config::f_ts_timeDist

◆ f_ts_tslength

float cbm::sim::digitization::Config::f_ts_tslength = 1.e5

Definition at line 100 of file sim/response/steer/Config.h.

Referenced by cbm::sim::digitization::Run::Exec(), and ToYaml().


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