CbmRoot
|
Configuration of the digi trigger class (TimeClusterTrigger) More...
#include <DigiTriggerConfig.h>
Public Member Functions | |
DigiTriggerConfig (ECbmModuleId detector, double window, size_t threshold, double deadTime) | |
Constructor with parameters. | |
DigiTriggerConfig (YAML::Node config) | |
Constructor from YAML. | |
~DigiTriggerConfig ()=default | |
Destructor. | |
double | DeadTime () const |
Trigger dead time. | |
ECbmModuleId | Detector () const |
Trigger detector. | |
bool | IsSet () const |
Check whether config was set. | |
size_t | Threshold () const |
Trigger threshold. | |
YAML::Node | ToYaml () const |
Save to YAML. | |
double | Window () const |
Trigger window. | |
Private Attributes | |
ECbmModuleId | fDetector |
Trigger detector. | |
double | fWindow |
Trigger window size [ns]. | |
size_t | fThreshold |
Minimum number if digis in trigger window. | |
double | fDeadTime |
Minimal time between two trigger [ns]. | |
bool | fIsSet {false} |
Flag config being properly set. | |
Configuration of the digi trigger class (TimeClusterTrigger)
Definition at line 23 of file DigiTriggerConfig.h.
|
inline |
Constructor with parameters.
detector | Detector to be used for triggering |
window | Time interval to look for clusters in [ns] |
threshold | Minimal required number of data within the time window |
deadTime | Minimal time between two subsequent triggers |
Definition at line 32 of file DigiTriggerConfig.h.
cbm::algo::evbuild::DigiTriggerConfig::DigiTriggerConfig | ( | YAML::Node | config | ) |
Constructor from YAML.
Definition at line 12 of file DigiTriggerConfig.cxx.
References fDeadTime, fDetector, fIsSet, fThreshold, fWindow, and ToCbmModuleIdCaseInsensitive().
|
default |
Destructor.
|
inline |
|
inline |
Trigger detector.
Definition at line 51 of file DigiTriggerConfig.h.
References fDetector.
Referenced by cbm::algo::evbuild::HitMultTrigger::operator()(), CbmReco::Run(), and cbm::algo::evbuild::HitMultTrigger::ToString().
|
inline |
Check whether config was set.
Definition at line 54 of file DigiTriggerConfig.h.
References fIsSet.
Referenced by cbm::algo::evbuild::EventbuildChain::Run(), and cbm::algo::evbuild::EventbuildChain::Status().
|
inline |
YAML::Node cbm::algo::evbuild::DigiTriggerConfig::ToYaml | ( | ) | const |
Save to YAML.
Definition at line 41 of file DigiTriggerConfig.cxx.
References fDeadTime, fDetector, fThreshold, fWindow, and cbm::algo::ToString().
Referenced by cbm::algo::evbuild::Config::ToYaml().
|
inline |
|
private |
Minimal time between two trigger [ns].
Definition at line 70 of file DigiTriggerConfig.h.
Referenced by DeadTime(), DigiTriggerConfig(), and ToYaml().
|
private |
Trigger detector.
Definition at line 67 of file DigiTriggerConfig.h.
Referenced by Detector(), DigiTriggerConfig(), and ToYaml().
|
private |
Flag config being properly set.
Definition at line 71 of file DigiTriggerConfig.h.
Referenced by DigiTriggerConfig(), and IsSet().
|
private |
Minimum number if digis in trigger window.
Definition at line 69 of file DigiTriggerConfig.h.
Referenced by DigiTriggerConfig(), Threshold(), and ToYaml().
|
private |
Trigger window size [ns].
Definition at line 68 of file DigiTriggerConfig.h.
Referenced by DigiTriggerConfig(), ToYaml(), and Window().