22 #ifndef CONFIGURATION_H
23 #define CONFIGURATION_H
102 bool fitChannel(
unsigned crate,
unsigned slot,
unsigned channel);
115 unsigned crate,
unsigned slot,
unsigned channel
126 unsigned crate,
unsigned slot,
unsigned channel
137 unsigned crate,
unsigned slot,
unsigned channel
165 std::string getFileNameFromEnv(
const char* envname);
172 std::string isComment(std::string line);
180 unsigned channelIndex(
unsigned crate,
unsigned slot,
unsigned channel);
189 std::pair<unsigned, unsigned> s_limits;
190 unsigned s_saturation;
191 std::string s_modelPath;
198 std::map<unsigned, ConfigInfo> m_fitChannels;
199 std::vector<double> m_template;
200 unsigned m_alignPoint;
Manage fit configuration information.
Definition: Configuration.h:68
std::vector< double > getTemplate()
Return the template data.
Definition: Configuration.h:149
Configuration()
Constructor.
Definition: Configuration.h:71
std::vector< std::string > getModelList()
Get the list of unique model names specified in the configuration file.
Definition: Configuration.cpp:247
~Configuration()
Destructor.
Definition: Configuration.h:73
bool fitChannel(unsigned crate, unsigned slot, unsigned channel)
Check the map and determine if the channel should be fit.
Definition: Configuration.cpp:202
void readConfigFile()
Read the configuration file.
Definition: Configuration.cpp:77
void readTemplateFile()
Read the formatted tempalate data from a file.
Definition: Configuration.cpp:129
std::string getModelPath(unsigned crate, unsigned slot, unsigned channel)
Get the ML inference model path for a single crate/slot/channel combination.
Definition: Configuration.cpp:230
unsigned getTemplateAlignPoint()
Return the template alignment point.
Definition: Configuration.h:154
std::pair< unsigned, unsigned > getFitLimits(unsigned crate, unsigned slot, unsigned channel)
Get the (inclusive) fit limits for a single crate/slot/channel combination.
Definition: Configuration.cpp:210
unsigned getSaturationValue(unsigned crate, unsigned slot, unsigned channel)
Get the ADC saturation value for a single crate/slot/channel combination.
Definition: Configuration.cpp:220