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

Trigger class for finding time clusters of hit data. More...

#include <HitMultTrigger.h>

Collaboration diagram for cbm::algo::evbuild::HitMultTrigger:
[legend]

Public Types

typedef std::pair< std::vector< double >, TimeClusterTriggerMonitorDataResult
 

Public Member Functions

 HitMultTrigger (const DigiTriggerConfig &config)
 Constructor.
 
Result operator() (const RecoResults &recoData) const
 Execution.
 
std::string ToString () const
 Info to string.
 

Private Member Functions

std::vector< double > GetHitTimes (const RecoResults &recoData, ECbmModuleId system) const
 Extract the hit time stamps for the selected trigger detector.
 
template<class T >
std::vector< double > GetTimeStamps (const gsl::span< const T > data) const
 Get vector of time stamps from a data container [template].
 

Private Attributes

DigiTriggerConfig fConfig
 Configuration.
 
TimeClusterTrigger fAlgo
 Algorithm.
 

Detailed Description

Trigger class for finding time clusters of hit data.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Date
30 April 2024

The class takes as input an array of detector hits. It finds clusters of hits in time, using the generic TimeClusterTrigger algorithm.

Definition at line 26 of file HitMultTrigger.h.

Member Typedef Documentation

◆ Result

Definition at line 29 of file HitMultTrigger.h.

Constructor & Destructor Documentation

◆ HitMultTrigger()

cbm::algo::evbuild::HitMultTrigger::HitMultTrigger ( const DigiTriggerConfig & config)
inline

Constructor.

Parameters
configTrigger configuration

Definition at line 34 of file HitMultTrigger.h.

Member Function Documentation

◆ GetHitTimes()

std::vector< double > cbm::algo::evbuild::HitMultTrigger::GetHitTimes ( const RecoResults & recoData,
ECbmModuleId system ) const
private

Extract the hit time stamps for the selected trigger detector.

Parameters
recoDataContainer of reco results
systemTrigger Detector
Returns
Sorted vector of hit time stamps

Definition at line 41 of file HitMultTrigger.cxx.

References GetTimeStamps(), kSts, kTof, kTrd, L_, cbm::algo::RecoResults::stsHits, cbm::algo::RecoResults::tofHits, and cbm::algo::RecoResults::trdHits.

Referenced by operator()().

◆ GetTimeStamps()

template<class T >
std::vector< double > cbm::algo::evbuild::HitMultTrigger::GetTimeStamps ( const gsl::span< const T > data) const
inlineprivate

Get vector of time stamps from a data container [template].

Parameters
dataData container
Returns
Sorted vector of time stamps

The template argument class must implement the method Time().

Definition at line 62 of file HitMultTrigger.h.

Referenced by GetHitTimes().

◆ operator()()

HitMultTrigger::Result cbm::algo::evbuild::HitMultTrigger::operator() ( const RecoResults & recoData) const

Execution.

Parameters
recoDataContainer of reco data
Returns
Vector of trigger times and monitoring data

Definition at line 20 of file HitMultTrigger.cxx.

References cbm::algo::evbuild::DigiTriggerConfig::Detector(), fAlgo, fConfig, GetHitTimes(), and L_.

◆ ToString()

std::string cbm::algo::evbuild::HitMultTrigger::ToString ( ) const

Member Data Documentation

◆ fAlgo

TimeClusterTrigger cbm::algo::evbuild::HitMultTrigger::fAlgo
private

Algorithm.

Definition at line 74 of file HitMultTrigger.h.

Referenced by operator()(), and ToString().

◆ fConfig

DigiTriggerConfig cbm::algo::evbuild::HitMultTrigger::fConfig
private

Configuration.

Definition at line 73 of file HitMultTrigger.h.

Referenced by operator()(), and ToString().


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