|
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 | 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< RecoSetup > | fpRecoSetup |
| 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.
References fConfig.
|
private |
Test for the number of STS stations.
| digis | Vector of STS digis |
| minNum | Requested minimum of active STS stations |
Definition at line 77 of file DigiEventSelector.cxx.
References fpRecoSetup.
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 122 of file DigiEventSelector.cxx.
References fpRecoSetup, 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 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().
|
inline |
Registers tracking setup.
| pSetup | The tracking setup instance |
Definition at line 55 of file DigiEventSelector.h.
References fpRecoSetup.
Referenced by TEST().
| std::string cbm::algo::evbuild::DigiEventSelector::ToString | ( | ) | const |
|
private |
Configuration / parameters.
Definition at line 78 of file DigiEventSelector.h.
Referenced by DigiEventSelector(), operator()(), and ToString().
|
private |
Tracking setup (access to stations info)
Definition at line 79 of file DigiEventSelector.h.
Referenced by CheckStsStations(), CheckTofLayers(), and RegisterSetup().