18#include <unordered_map>
21#include <yaml-cpp/yaml.h>
46 void SetDetectorNames(
const std::array<std::string, constants::size::MaxNdetectors>& input);
84 YAML::Node
GetNode(std::function<YAML::Node(YAML::Node)> fn,
bool optional =
false)
const;
98 std::vector<std::string>
GetNodeKeys(
const YAML::Node& node)
const;
EDetectorID
Enumeration for the tracking detector subsystems in CBM-CA.
Configuration for the CA tracking algorithm (source)
std::vector< Iteration > ReadCAIterationVector() const
Reads CA track finder iterations from YAML node.
YAML::Node fUserConfigNode
User configuration node.
int fVerbose
Verbosity level.
void SetDetectorNames(const std::array< std::string, constants::size::MaxNdetectors > &input)
Sets detector names.
void SetUserConfigPath(const std::string &path)
Sets user config file.
Config::MisalignmentTolArray_t ReadMisalignmentTolerances() const
Reads misalignment tolerances.
Iteration ReadSingleCAIteration(const YAML::Node &node, const Iteration &defaultIter) const
Reads iteration from config file.
void SetVerbosity(int verbose)
Sets verbosity level.
YAML::Node fMainConfigNode
Main configuration node.
std::unordered_map< std::string, EDetectorID > fDetNameMap
YAML::Node GetNode(std::function< YAML::Node(YAML::Node)> fn, bool optional=false) const
Accesses a node either from user config or from main config.
~ConfigReader()=default
Destructor.
int GetVerbosity() const
Gets verbosity level.
ConfigReader(int verbose=1)
Constructor.
std::vector< std::pair< EDetectorID, int > > ReadInactiveStationMap() const
Reads inactive tracking station map.
std::string fsUserConfigPath
Path to the user config file (optional)
std::vector< std::string > GetNodeKeys(const YAML::Node &node) const
Gets parameters content of the node.
std::string fsMainConfigPath
Path to the main config file (mandatory)
void SetMainConfigPath(const std::string &path)
Sets main config file.
Config CreateConfig() const
Creates a config.
Configuration of the CA tracking (excluding geometry)
std::array< MisalignmentTolerance, constants::size::MaxNdetectors > MisalignmentTolArray_t
A set of parameters for the CA Track finder iteration.
TODO: SZh 8.11.2022: add selection of parameterisation.