CbmRoot
|
#include <Reco.h>
Public Member Functions | |
Reco () | |
~Reco () | |
Reco (const Reco &)=delete | |
Reco & | operator= (const Reco &)=delete |
Reco (Reco &&)=delete | |
Reco & | operator= (Reco &&)=delete |
void | Init (const Options &) |
RecoResults | Run (const fles::Timeslice &) |
void | Finalize () |
void | PrintTimings (xpu::timings &) |
void | QueueProcessingExtraMetrics (const ProcessingExtraMonitor &) |
Private Member Functions | |
void | Validate (const Options &opts) |
template<class Unpacker > | |
auto | RunUnpacker (const std::unique_ptr< Unpacker > &, const fles::Timeslice &) -> UnpackResult_t< Unpacker > |
template<class MSMonitor > | |
void | QueueUnpackerMetricsDet (const UnpackMonitor< MSMonitor > &) |
void | QueueStsRecoMetrics (const sts::HitfinderMon &) |
void | QueueTofRecoMetrics (const tof::HitfindMonitorData &) |
void | QueueTrdRecoMetrics (const trd::HitfindMonitorData &) |
void | QueueTofCalibMetrics (const tof::CalibrateMonitorData &) |
void | QueueEvbuildMetrics (const evbuild::EventbuildChainMonitorData &) |
void | QueueTrackingMetrics (const ca::TrackingMonitorData &) |
void | QueueProcessingMetrics (const ProcessingMonitor &) |
const ChainContext * | GetContext () |
void | SetContext (const ChainContext *ctx) |
const Options & | Opts () const |
const RecoParams & | Params () const |
bool | HasMonitor () const |
Monitor & | GetMonitor () const |
Static Private Member Functions | |
static double | FilterNan (double x) |
Private Attributes | |
bool | fInitialized = false |
ChainContext | fContext |
xpu::timings | fTimesliceTimesAcc |
std::shared_ptr< HistogramSender > | fSender |
uint64_t | fRunStartTimeNs = 0 |
std::optional< u64 > | prevTsId |
std::unique_ptr< qa::RecoGeneralQa > | fGeneralQa |
QA of online processing itself. | |
std::unique_ptr< bmon::Unpack > | fBmonUnpack |
std::unique_ptr< much::Unpack > | fMuchUnpack |
std::unique_ptr< rich::Unpack > | fRichUnpack |
std::unique_ptr< sts::Unpack > | fStsUnpack |
std::unique_ptr< sts::DigiQa > | fStsDigiQa |
Raw STS-digis QA. | |
std::unique_ptr< sts::HitfinderChain > | fStsHitFinder |
std::unique_ptr< tof::Unpack > | fTofUnpack |
std::unique_ptr< tof::Calibrate > | fTofCalibrator |
std::unique_ptr< tof::Hitfind > | fTofHitFinder |
std::unique_ptr< trd::Unpack > | fTrdUnpack |
std::unique_ptr< trd2d::Unpack > | fTrd2dUnpack |
std::unique_ptr< trd::Hitfind > | fTrdHitfind |
std::unique_ptr< evbuild::EventbuildChain > | fEventBuild |
std::unique_ptr< TrackingChain > | fTracking |
|
delete |
|
delete |
|
inlinestaticprivate |
Definition at line 176 of file Reco.h.
References x.
Referenced by QueueEvbuildMetrics(), QueueProcessingExtraMetrics(), QueueProcessingMetrics(), and QueueTofCalibMetrics().
void Reco::Finalize | ( | ) |
Definition at line 395 of file Reco.cxx.
References fStsHitFinder, fTimesliceTimesAcc, fTracking, L_, cbm::algo::MakeReportSubtimers(), cbm::algo::MakeReportSummary(), cbm::algo::MakeReportYaml(), cbm::algo::SubChain::Opts(), and cbm::algo::ProfilingSummary.
Referenced by main().
|
inlineinherited |
Definition at line 16 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by cbm::algo::tof::TrackingInterface::Init(), and cbm::algo::TrackingSetup::Init().
|
inlineinherited |
Definition at line 25 of file SubChain.h.
References cbm::algo::SubChain::fContext, and cbm::algo::SubChain::HasMonitor().
Referenced by QueueEvbuildMetrics(), QueueProcessingExtraMetrics(), QueueProcessingMetrics(), QueueStsRecoMetrics(), QueueTofCalibMetrics(), QueueTofRecoMetrics(), QueueTrackingMetrics(), QueueTrdRecoMetrics(), and QueueUnpackerMetricsDet().
|
inlineinherited |
Definition at line 23 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by cbm::algo::SubChain::GetMonitor(), QueueEvbuildMetrics(), QueueProcessingExtraMetrics(), QueueProcessingMetrics(), QueueStsRecoMetrics(), QueueTofCalibMetrics(), QueueTofRecoMetrics(), QueueTrackingMetrics(), QueueTrdRecoMetrics(), and QueueUnpackerMetricsDet().
void Reco::Init | ( | const Options & | opts | ) |
Definition at line 79 of file Reco.cxx.
References cbm::algo::ParFiles::bmon, cbm::algo::ParFiles::calibrate, cbm::algo::ParFiles::chanMask, cbm::algo::Options::CollectAuxData(), cbm::algo::DigiTrigger, cbm::algo::EventBuilding, fBmonUnpack, fContext, fEventBuild, fGeneralQa, fInitialized, fMuchUnpack, fRichUnpack, cbm::algo::sts::LandauTable::FromFile(), fRunStartTimeNs, fSender, fStsDigiQa, fStsHitFinder, fStsUnpack, fTofCalibrator, fTofHitFinder, fTofUnpack, fTracking, fTrd2dUnpack, fTrdHitfind, fTrdUnpack, cbm::algo::openmp::GetMaxThreads(), cbm::algo::ParFiles::hitfinder, cbm::algo::ParFiles::hitfinder2d, L_, cbm::algo::sts::HitfinderPars::landauTable, cbm::algo::LocalReco, cbm::algo::RecoParams::STS::memory, cbm::algo::sts::HitfinderChainPars::memory, cbm::algo::ChainContext::monitor, cbm::algo::Options::MonitorUri(), cbm::algo::SubChain::Opts(), cbm::algo::ChainContext::opts, cbm::algo::SubChain::Params(), cbm::algo::Options::ParamsDir(), cbm::algo::yaml::ReadFromFile(), cbm::algo::ParFiles::readout, cbm::algo::ParFiles::readout2d, cbm::algo::ChainContext::recoParams, cbm::algo::Options::RunId(), cbm::algo::Options::RunStart(), cbm::algo::SubChain::SetContext(), cbm::algo::ParFiles::setup, cbm::algo::sts::HitfinderChainPars::setup, cbm::algo::ParFiles::sts, cbm::algo::RecoParams::sts, cbm::algo::ParFiles::tof, cbm::algo::Tracking, cbm::algo::ParFiles::trd, cbm::algo::Unpack, cbm::algo::UnpackSts, Validate(), and cbm::algo::ParFiles::walkMap.
Referenced by main().
|
inlineinherited |
Definition at line 20 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by Finalize(), Init(), cbm::algo::tof::TrackingInterface::Init(), cbm::algo::TrackingChain::Init(), PrintTimings(), QueueEvbuildMetrics(), QueueProcessingExtraMetrics(), QueueProcessingMetrics(), QueueStsRecoMetrics(), QueueTofCalibMetrics(), QueueTofRecoMetrics(), QueueTrackingMetrics(), QueueTrdRecoMetrics(), QueueUnpackerMetricsDet(), and Run().
|
inlineinherited |
Definition at line 21 of file SubChain.h.
References cbm::algo::SubChain::fContext.
void Reco::PrintTimings | ( | xpu::timings & | timings | ) |
Definition at line 415 of file Reco.cxx.
References fTimesliceTimesAcc, L_, cbm::algo::MakeReportSubtimers(), cbm::algo::MakeReportSummary(), cbm::algo::SubChain::Opts(), and cbm::algo::ProfilingPerTS.
Referenced by Run().
|
private |
Definition at line 513 of file Reco.cxx.
References cbm::algo::evbuild::EventBuilderMonitorData::bmon, cbm::algo::Options::ChildId(), cbm::algo::evbuild::EventbuildChainMonitorData::digiMultTrigger, cbm::algo::evbuild::V0TriggerMoniData::errTracksUnsorted, cbm::algo::evbuild::EventbuildChainMonitorData::evbuild, FilterNan(), cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), cbm::algo::evbuild::EventbuildChainMonitorData::hitMultTrigger, cbm::algo::evbuild::EventBuilderMonitorData::much, cbm::algo::evbuild::EventBuilderMonitorData::numEvents, cbm::algo::evbuild::V0TriggerMoniData::numTrackPairs, cbm::algo::evbuild::V0TriggerMoniData::numTrackPairsAfterTimeCut, cbm::algo::evbuild::EventBuilderMonitorData::numTriggers, cbm::algo::SubChain::Opts(), cbm::algo::evbuild::EventBuilderMonitorData::rich, cbm::algo::evbuild::EventBuilderMonitorData::sts, cbm::algo::evbuild::EventBuilderMonitorData::time, cbm::algo::evbuild::TimeClusterTriggerMonitorData::time, cbm::algo::evbuild::V0TriggerMoniData::time, cbm::algo::evbuild::EventBuilderMonitorData::tof, cbm::algo::evbuild::EventBuilderMonitorData::trd, cbm::algo::evbuild::EventBuilderMonitorData::trd2d, and cbm::algo::evbuild::EventbuildChainMonitorData::v0Trigger.
Referenced by Run().
void Reco::QueueProcessingExtraMetrics | ( | const ProcessingExtraMonitor & | mon | ) |
Definition at line 599 of file Reco.cxx.
References cbm::algo::ProcessingExtraMonitor::bytesWritten, cbm::algo::Options::ChildId(), FilterNan(), cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), cbm::algo::SubChain::Opts(), cbm::algo::ProcessingExtraMonitor::timeIdle, and cbm::algo::ProcessingExtraMonitor::timeWriteArchive.
Referenced by main().
|
private |
Definition at line 577 of file Reco.cxx.
References cbm::algo::Options::ChildId(), FilterNan(), cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), cbm::algo::SubChain::Opts(), cbm::algo::ProcessingMonitor::time, cbm::algo::ProcessingMonitor::timeCA, cbm::algo::ProcessingMonitor::timeSTS, cbm::algo::ProcessingMonitor::timeTOF, cbm::algo::ProcessingMonitor::timeTRD, cbm::algo::ProcessingMonitor::timeUnpack, and cbm::algo::ProcessingMonitor::tsDelta.
Referenced by Run().
|
private |
Definition at line 462 of file Reco.cxx.
References cbm::algo::Options::ChildId(), cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), cbm::algo::sts::HitfinderMonDevice::nClusterBucketOverflow, cbm::algo::sts::HitfinderMon::nClusterTotal, cbm::algo::sts::HitfinderMonDevice::nHitBucketOverflow, cbm::algo::sts::HitfinderMon::nHitsTotal, and cbm::algo::SubChain::Opts().
Referenced by Run().
|
private |
Definition at line 499 of file Reco.cxx.
References cbm::algo::Options::ChildId(), cbm::algo::tof::CalibrateMonitorData::fDigiCalibUnknownRPC, FilterNan(), cbm::algo::tof::CalibrateMonitorData::fNumDigis, cbm::algo::tof::CalibrateMonitorData::fTime, cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), and cbm::algo::SubChain::Opts().
Referenced by Run().
|
private |
Definition at line 475 of file Reco.cxx.
References cbm::algo::Options::ChildId(), cbm::algo::tof::HitfindMonitorData::fNumDigis, cbm::algo::tof::HitfindMonitorData::fNumHits, cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), and cbm::algo::SubChain::Opts().
Referenced by Run().
|
private |
Definition at line 562 of file Reco.cxx.
References cbm::algo::Options::ChildId(), cbm::algo::ca::FindTracks, cbm::algo::ca::FitTracks, cbm::algo::ca::MonitorData< C, T >::GetCounterValue(), cbm::algo::SubChain::GetMonitor(), cbm::algo::ca::MonitorData< C, T >::GetTimer(), cbm::algo::ca::Timer::GetTotalMs(), cbm::algo::SubChain::HasMonitor(), cbm::algo::SubChain::Opts(), cbm::algo::ca::RecoHit, cbm::algo::ca::RecoHitUsed, cbm::algo::ca::RecoTrack, and cbm::algo::ca::SubTS.
Referenced by Run().
|
private |
Definition at line 486 of file Reco.cxx.
References cbm::algo::Options::ChildId(), cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), cbm::algo::trd::HitfindMonitorData::numDigis, cbm::algo::trd::HitfindMonitorData::numHits, and cbm::algo::SubChain::Opts().
Referenced by Run().
|
private |
Definition at line 441 of file Reco.cxx.
References cbm::Capitalize(), cbm::algo::Options::ChildId(), cbm::algo::detail::UnpackMonitorBase::errInvalidEqId, cbm::algo::detail::UnpackMonitorBase::errInvalidSysVer, cbm::algo::detail::UnpackMonitorBase::ExpansionFactor(), cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), cbm::algo::detail::UnpackMonitorBase::numMs, cbm::algo::SubChain::Opts(), cbm::algo::detail::UnpackMonitorBase::sizeBytesIn, cbm::algo::detail::UnpackMonitorBase::sizeBytesOut, cbm::algo::detail::UnpackMonitorBase::system, and cbm::algo::ToString().
RecoResults Reco::Run | ( | const fles::Timeslice & | ts | ) |
transient
persistent (return object)
Definition at line 229 of file Reco.cxx.
References cbm::algo::RecoResults::bmonDigis, cbm::algo::Cluster, cbm::algo::DigiEvent, cbm::algo::DigiTimeslice, cbm::algo::DigiTrigger, cbm::algo::RecoResults::events, cbm::algo::AuxDigiData::fBmon, cbm::algo::DigiData::fBmon, fBmonUnpack, fEventBuild, cbm::algo::DigiData::fFsd, fInitialized, cbm::algo::AuxDigiData::fMuch, cbm::algo::DigiData::fMuch, fMuchUnpack, cbm::algo::DigiData::fPsd, cbm::algo::AuxDigiData::fRich, cbm::algo::DigiData::fRich, fRichUnpack, fSender, cbm::algo::AuxDigiData::fSts, cbm::algo::DigiData::fSts, fStsDigiQa, fStsHitFinder, fStsUnpack, cbm::algo::AuxDigiData::fTof, cbm::algo::DigiData::fTof, fTofUnpack, fTracking, cbm::algo::AuxDigiData::fTrd, cbm::algo::DigiData::fTrd, cbm::algo::AuxDigiData::fTrd2d, cbm::algo::DigiData::fTrd2d, fTrd2dUnpack, fTrdHitfind, fTrdUnpack, cbm::algo::Options::HasOutput(), cbm::algo::Hit, hits, L_, cbm::algo::LocalReco, cbm::algo::RecoResults::muchDigis, cbm::algo::SubChain::Opts(), cbm::algo::SubChain::Params(), prevTsId, PrintTimings(), QueueEvbuildMetrics(), QueueProcessingMetrics(), QueueStsRecoMetrics(), QueueTofCalibMetrics(), QueueTofRecoMetrics(), QueueTrackingMetrics(), QueueTrdRecoMetrics(), cbm::algo::RecoResults::richDigis, RunUnpacker(), cbm::algo::ts_utils::SizeBytes(), cbm::algo::RecoResults::stsClusters, cbm::algo::RecoResults::stsDigis, cbm::algo::RecoResults::stsHits, cbm::algo::ProcessingMonitor::time, cbm::algo::ProcessingMonitor::timeCA, cbm::algo::ProcessingMonitor::timeSTS, cbm::algo::ProcessingMonitor::timeTOF, cbm::algo::ProcessingMonitor::timeTRD, cbm::algo::ProcessingMonitor::timeUnpack, cbm::algo::RecoResults::tofDigis, cbm::algo::RecoResults::tofHits, cbm::algo::Track, cbm::algo::Tracking, cbm::algo::RecoResults::tracks, cbm::algo::RecoResults::trackStsHitIndices, cbm::algo::RecoResults::trackTofHitIndices, cbm::algo::RecoResults::trd2dDigis, cbm::algo::RecoResults::trdDigis, cbm::algo::RecoResults::trdHits, cbm::algo::ProcessingMonitor::tsDelta, and cbm::algo::Unpack.
Referenced by main().
|
private |
|
inlineinherited |
Definition at line 18 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by Init(), and cbm::algo::TrackingSetup::Init().
|
private |
Definition at line 51 of file Reco.cxx.
References cbm::algo::Options::CompressArchive(), cbm::algo::Options::Has(), cbm::algo::LocalReco, cbm::algo::Options::OutputFile(), cbm::algo::Options::OutputTypes(), cbm::algo::Options::ParamsDir(), cbm::algo::Tracking, cbm::algo::Unpack, and cbm::algo::BuildInfo::WITH_ZSTD.
Referenced by Init().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 158 of file Reco.h.
Referenced by Finalize(), Init(), and Run().
|
private |
|
private |
Definition at line 137 of file Reco.h.
Referenced by Finalize(), and PrintTimings().
|
private |
|
private |
|
private |
|
private |
Definition at line 174 of file Reco.h.
Referenced by Finalize(), Init(), and Run().
|
private |
|
private |
|
private |
|
private |