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

Algorithm to select CbmDigiEvents based on the number of digis and the number of activated layers in each detector system. More...

#include <DigiEventSelector.h>

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

Public Member Functions

 DigiEventSelector (DigiEventSelectorConfig config)
 Constructor with configuration.
 
bool operator() (const DigiEvent &event) const
 Test one event for the selection criteria.
 
void RegisterSetup (std::shared_ptr< RecoSetup > pSetup)
 Registers tracking setup.
 
std::string ToString () const
 Info to string.
 

Private Member Functions

bool CheckStsStations (gsl::span< const CbmStsDigi > digis, size_t minNum) const
 Test for the number of STS stations.
 
bool CheckTofLayers (gsl::span< const CbmTofDigi > digis, size_t minNum) const
 Test for the number of TOF layers.
 

Private Attributes

DigiEventSelectorConfig fConfig
 Configuration / parameters.
 
std::shared_ptr< RecoSetupfpRecoSetup
 Tracking setup (access to stations info)
 

Detailed Description

Algorithm to select CbmDigiEvents based on the number of digis and the number of activated layers in each detector system.

Author
Dominik Smith d.smi.nosp@m.th@g.nosp@m.si.de
Shreya Roy s.roy.nosp@m.@gsi.nosp@m..de
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
26.01.2023

Definition at line 40 of file DigiEventSelector.h.

Constructor & Destructor Documentation

◆ DigiEventSelector()

cbm::algo::evbuild::DigiEventSelector::DigiEventSelector ( DigiEventSelectorConfig config)
inline

Constructor with configuration.

Definition at line 44 of file DigiEventSelector.h.

References fConfig.

Member Function Documentation

◆ CheckStsStations()

bool cbm::algo::evbuild::DigiEventSelector::CheckStsStations ( gsl::span< const CbmStsDigi > digis,
size_t minNum ) const
private

Test for the number of STS stations.

Parameters
digisVector of STS digis
minNumRequested minimum of active STS stations
Returns
True if the number of active STS layers is above the threshold

Definition at line 77 of file DigiEventSelector.cxx.

References fpRecoSetup.

Referenced by operator()().

◆ CheckTofLayers()

bool cbm::algo::evbuild::DigiEventSelector::CheckTofLayers ( gsl::span< const CbmTofDigi > digis,
size_t minNum ) const
private

Test for the number of TOF layers.

Parameters
digisVector of TOF digis
minNumRequested minimum of active TOF layers
Returns
True if the number of active TOF layers is above the threshold

Definition at line 122 of file DigiEventSelector.cxx.

References fpRecoSetup, CbmTofAddress::GetRpcFullId(), and CbmTofAddress::GetStripFullId().

Referenced by operator()().

◆ operator()()

bool cbm::algo::evbuild::DigiEventSelector::operator() ( const DigiEvent & event) const

Test one event for the selection criteria.

Parameters
eventDigiEvent
Returns
true if event satisfies the criteria; else false

Definition at line 19 of file DigiEventSelector.cxx.

References CheckStsStations(), CheckTofLayers(), cbm::algo::DigiData::fBmon, fConfig, cbm::algo::DigiData::fSts, cbm::algo::DigiData::fTof, kBmon, kSts, kTof, cbm::algo::DigiData::Size(), and cbm::util::ToString().

◆ RegisterSetup()

void cbm::algo::evbuild::DigiEventSelector::RegisterSetup ( std::shared_ptr< RecoSetup > pSetup)
inline

Registers tracking setup.

Parameters
pSetupThe tracking setup instance

Definition at line 55 of file DigiEventSelector.h.

References fpRecoSetup.

Referenced by TEST().

◆ ToString()

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

Info to string.

Definition at line 166 of file DigiEventSelector.cxx.

References fConfig.

Member Data Documentation

◆ fConfig

DigiEventSelectorConfig cbm::algo::evbuild::DigiEventSelector::fConfig
private

Configuration / parameters.

Definition at line 78 of file DigiEventSelector.h.

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

◆ fpRecoSetup

std::shared_ptr<RecoSetup> cbm::algo::evbuild::DigiEventSelector::fpRecoSetup
private

Tracking setup (access to stations info)

Definition at line 79 of file DigiEventSelector.h.

Referenced by CheckStsStations(), CheckTofLayers(), and RegisterSetup().


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