19 auto detector = config[
"detector"];
20 if (!detector)
throw std::runtime_error(
"trigger detector is not specified");
23 auto window = config[
"window"];
24 if (!window)
throw std::runtime_error(
"trigger window is not specified");
27 auto threshold = config[
"threshold"];
28 if (!threshold)
throw std::runtime_error(
"trigger threshold is not specified");
31 auto deadTime = config[
"deadtime"];
32 if (!deadTime)
throw std::runtime_error(
"trigger dead time is not specified");
ECbmModuleId ToCbmModuleIdCaseInsensitive(std::string modIdStr)
DigiTriggerConfig(ECbmModuleId detector, double window, size_t threshold, double deadTime)
Constructor with parameters.
double fDeadTime
Minimal time between two trigger [ns].
bool fIsSet
Flag config being properly set.
YAML::Node ToYaml() const
Save to YAML.
ECbmModuleId fDetector
Trigger detector.
size_t fThreshold
Minimum number if digis in trigger window.
double fWindow
Trigger window size [ns].
std::string_view ToString(T t)