CbmRoot
|
Algorithm to select CbmDigiEvents based on the number of digis and the number of activated layers in each detector system. More...
#include <DigiEventSelector.h>
Public Member Functions | |
DigiEventSelector (DigiEventSelectorConfig config) | |
Constructor with configuration. | |
bool | operator() (const DigiEvent &event) const |
Test one event for the selection criteria. | |
void | RegisterTrackingSetup (std::shared_ptr< TrackingSetup > 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< TrackingSetup > | fpTrackingSetup = nullptr |
Tracking setup (access to stations info) | |
Algorithm to select CbmDigiEvents based on the number of digis and the number of activated layers in each detector system.
Definition at line 40 of file DigiEventSelector.h.
|
inline |
Constructor with configuration.
Definition at line 44 of file DigiEventSelector.h.
|
private |
Test for the number of STS stations.
digis | Vector of STS digis |
minNum | Requested minimum of active STS stations |
Definition at line 53 of file DigiEventSelector.cxx.
References CbmStsAddress::GetElementId(), and kStsUnit.
Referenced by operator()().
|
private |
Test for the number of TOF layers.
digis | Vector of TOF digis |
minNum | Requested minimum of active TOF layers |
Definition at line 92 of file DigiEventSelector.cxx.
References fpTrackingSetup, CbmTofAddress::GetRpcFullId(), and CbmTofAddress::GetStripFullId().
Referenced by operator()().
bool cbm::algo::evbuild::DigiEventSelector::operator() | ( | const DigiEvent & | event | ) | const |
Test one event for the selection criteria.
event | DigiEvent |
Definition at line 20 of file DigiEventSelector.cxx.
References CheckStsStations(), CheckTofLayers(), fConfig, cbm::algo::evbuild::DigiEventSelectorConfig::fMinNumDigis, cbm::algo::evbuild::DigiEventSelectorConfig::fMinNumLayers, cbm::algo::DigiData::fSts, cbm::algo::DigiData::fTof, kSts, kTof, and cbm::algo::DigiData::Size().
|
inline |
Registers tracking setup.
pSetup | The tracking setup instance |
Definition at line 55 of file DigiEventSelector.h.
References fpTrackingSetup.
Referenced by cbm::algo::evbuild::EventbuildChain::RegisterTrackingSetup(), and TEST().
std::string cbm::algo::evbuild::DigiEventSelector::ToString | ( | ) | const |
Info to string.
Definition at line 131 of file DigiEventSelector.cxx.
References fConfig, cbm::algo::evbuild::DigiEventSelectorConfig::fMinNumDigis, cbm::algo::evbuild::DigiEventSelectorConfig::fMinNumLayers, cbm::algo::evbuild::DigiEventSelectorConfig::IsEmpty(), and ToString().
Referenced by cbm::algo::evbuild::EventbuildChain::Status(), and ToString().
|
private |
Configuration / parameters.
Definition at line 78 of file DigiEventSelector.h.
Referenced by operator()(), and ToString().
|
private |
Tracking setup (access to stations info)
Definition at line 79 of file DigiEventSelector.h.
Referenced by CheckTofLayers(), and RegisterTrackingSetup().