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

#include <Config.h>

Collaboration diagram for cbm::atconverter::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 f_glb_numTs = -1
 
int f_glb_firstTs = 0
 
float f_glb_tslength = 1.e5
 
std::string f_glb_system = ""
 
float f_glb_beamMom = 12.
 
bool f_glb_trackMatching = true
 
ECbmEvbuildType f_evbuild_type = ECbmEvbuildType::Undefined
 
float f_fsd_minChi2match = -1.
 
float f_fsd_maxChi2match = 10000.
 

Private Member Functions

ECbmRecoMode ToCbmRecoMode (std::string tag)
 
std::string ToString (ECbmRecoMode mode)
 
YAML::Node ToYaml ()
 Save to YAML node.
 

Detailed Description

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

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

Definition at line 40 of file analysis/common/analysis_tree_converter/steer/Config.h.

Constructor & Destructor Documentation

◆ Config()

cbm::atconverter::Config::Config ( )
default

Constructor.

◆ ~Config()

virtual cbm::atconverter::Config::~Config ( )
virtualdefault

Destructor.

Member Function Documentation

◆ LoadYaml()

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

Load from YAML file.

Parameters
filenameName of input YAML file

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

◆ SaveYaml()

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

Save to YAML file.

Parameters
filenameName of output YAML file

Definition at line 68 of file analysis/common/analysis_tree_converter/steer/Config.h.

References ToYaml().

◆ ToCbmRecoMode()

ECbmRecoMode cbm::atconverter::Config::ToCbmRecoMode ( std::string tag)
private

◆ ToString() [1/2]

std::string cbm::atconverter::Config::ToString ( )
inline

String output (YAML format)

Definition at line 57 of file analysis/common/analysis_tree_converter/steer/Config.h.

References ToYaml().

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

◆ ToString() [2/2]

string cbm::atconverter::Config::ToString ( ECbmRecoMode mode)
private

◆ ToYaml()

Member Data Documentation

◆ f_evbuild_type

ECbmEvbuildType cbm::atconverter::Config::f_evbuild_type = ECbmEvbuildType::Undefined

◆ f_fsd_maxChi2match

float cbm::atconverter::Config::f_fsd_maxChi2match = 10000.

◆ f_fsd_minChi2match

float cbm::atconverter::Config::f_fsd_minChi2match = -1.

◆ f_glb_beamMom

float cbm::atconverter::Config::f_glb_beamMom = 12.

◆ f_glb_firstTs

int cbm::atconverter::Config::f_glb_firstTs = 0

◆ f_glb_logColor

std::string cbm::atconverter::Config::f_glb_logColor = "true"

◆ f_glb_logLevel

std::string cbm::atconverter::Config::f_glb_logLevel = "INFO"

◆ f_glb_logVerbose

std::string cbm::atconverter::Config::f_glb_logVerbose = "LOW"

◆ f_glb_mode

◆ f_glb_numTs

int cbm::atconverter::Config::f_glb_numTs = -1

◆ f_glb_system

std::string cbm::atconverter::Config::f_glb_system = ""

◆ f_glb_trackMatching

bool cbm::atconverter::Config::f_glb_trackMatching = true

◆ f_glb_tslength

float cbm::atconverter::Config::f_glb_tslength = 1.e5

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