CbmRoot
Loading...
Searching...
No Matches
cbm::algo::evbuild::DigiTriggerConfig Class Reference

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.
 

Detailed Description

Configuration of the digi trigger class (TimeClusterTrigger)

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
21.11.2021

Definition at line 23 of file DigiTriggerConfig.h.

Constructor & Destructor Documentation

◆ DigiTriggerConfig() [1/2]

cbm::algo::evbuild::DigiTriggerConfig::DigiTriggerConfig ( ECbmModuleId detector,
double window,
size_t threshold,
double deadTime )
inline

Constructor with parameters.

Parameters
detectorDetector to be used for triggering
windowTime interval to look for clusters in [ns]
thresholdMinimal required number of data within the time window
deadTimeMinimal time between two subsequent triggers

Definition at line 32 of file DigiTriggerConfig.h.

◆ DigiTriggerConfig() [2/2]

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().

◆ ~DigiTriggerConfig()

cbm::algo::evbuild::DigiTriggerConfig::~DigiTriggerConfig ( )
default

Destructor.

Member Function Documentation

◆ DeadTime()

double cbm::algo::evbuild::DigiTriggerConfig::DeadTime ( ) const
inline

Trigger dead time.

Definition at line 48 of file DigiTriggerConfig.h.

References fDeadTime.

◆ Detector()

ECbmModuleId cbm::algo::evbuild::DigiTriggerConfig::Detector ( ) const
inline

◆ IsSet()

bool cbm::algo::evbuild::DigiTriggerConfig::IsSet ( ) const
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().

◆ Threshold()

size_t cbm::algo::evbuild::DigiTriggerConfig::Threshold ( ) const
inline

Trigger threshold.

Definition at line 57 of file DigiTriggerConfig.h.

References fThreshold.

◆ ToYaml()

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().

◆ Window()

double cbm::algo::evbuild::DigiTriggerConfig::Window ( ) const
inline

Trigger window.

Definition at line 63 of file DigiTriggerConfig.h.

References fWindow.

Member Data Documentation

◆ fDeadTime

double cbm::algo::evbuild::DigiTriggerConfig::fDeadTime
private

Minimal time between two trigger [ns].

Definition at line 70 of file DigiTriggerConfig.h.

Referenced by DeadTime(), DigiTriggerConfig(), and ToYaml().

◆ fDetector

ECbmModuleId cbm::algo::evbuild::DigiTriggerConfig::fDetector
private

Trigger detector.

Definition at line 67 of file DigiTriggerConfig.h.

Referenced by Detector(), DigiTriggerConfig(), and ToYaml().

◆ fIsSet

bool cbm::algo::evbuild::DigiTriggerConfig::fIsSet {false}
private

Flag config being properly set.

Definition at line 71 of file DigiTriggerConfig.h.

Referenced by DigiTriggerConfig(), and IsSet().

◆ fThreshold

size_t cbm::algo::evbuild::DigiTriggerConfig::fThreshold
private

Minimum number if digis in trigger window.

Definition at line 69 of file DigiTriggerConfig.h.

Referenced by DigiTriggerConfig(), Threshold(), and ToYaml().

◆ fWindow

double cbm::algo::evbuild::DigiTriggerConfig::fWindow
private

Trigger window size [ns].

Definition at line 68 of file DigiTriggerConfig.h.

Referenced by DigiTriggerConfig(), ToYaml(), and Window().


The documentation for this class was generated from the following files: