16#include <unordered_map>
19#include <yaml-cpp/yaml.h>
29 enum class DetectorID;
40 ConfigReader(InitManager* pInitManager,
int verbose = 1);
88 YAML::Node
GetNode(std::function<YAML::Node(YAML::Node)> fn)
const;
99 std::vector<std::string>
GetNodeKeys(
const YAML::Node& node)
const;
void SetGeometryLock(bool lock)
Sets geometry lock status.
YAML::Node fUserConfigNode
User configuration node.
std::vector< Iteration > ReadCAIterationVector()
Reads CA track finder iterations from YAML node.
int fVerbose
Verbosity level.
void SetUserConfigPath(const std::string &path)
Sets user config file.
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.
bool fbGeometryLock
Geometry initialization locked.
void ReadMisalignmentTolerance()
Reads the misalignment tolerance.
bool fbMainConfigInitialized
Main configuration file is initialized (e.g. via parameters obj)
YAML::Node GetNode(std::function< YAML::Node(YAML::Node)> fn) const
Accesses a node either from user config or from main config.
~ConfigReader()=default
Destructor.
int GetVerbosity() const
Gets verbosity level.
std::vector< std::set< int > > ReadInactiveStationMap()
Reads inactive tracking station map.
std::string fsUserConfigPath
Path to the user config file (optional)
InitManager * fpInitManager
Pointer to the L1InitManager instance.
void Read()
Reads configuration from files.
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)
ConfigReader(InitManager *pInitManager, int verbose=1)
Constructor.
void SetMainConfigPath(const std::string &path)
Sets main config file.
bool GetGeometryLock() const
Gets geometry lock status.
A CA Parameters object initialization class.
A set of parameters for the CA Track finder iteration.
TODO: SZh 8.11.2022: add selection of parameterisation.