CbmRoot
|
A chain for the V0 finder. More...
#include <KfpV0FinderChain.h>
Public Types | |
using | EventOutput = CbmEventTriggers |
Public Member Functions | |
V0FinderChain ()=default | |
Default constructor. | |
V0FinderChain (const std::unique_ptr< qa::Manager > &qaManager) | |
Constructor from parameters. | |
V0FinderChain (const V0FinderChain &)=delete | |
Copy constructor. | |
V0FinderChain (V0FinderChain &&)=delete | |
Move constructor. | |
~V0FinderChain ()=default | |
Destructor. | |
V0FinderChain & | operator= (const V0FinderChain &)=delete |
Copy assignment operator. | |
V0FinderChain & | operator= (V0FinderChain &&)=delete |
Move assignment operator. | |
void | Finalize () |
Finalizes the instance (called in the end of the run) | |
kfp::V0FinderMonitorData_t | GetMonitor () |
Gets a monitor. | |
void | SetBmonDefinedAddresses (const PODVector< uint32_t > &addresses) |
Sets BMON diamond addresses array. | |
void | Init () |
Initializes the instance (called in the beginning of the run) | |
EventOutput | ProcessEvent (const RecoResults &recoEvent) |
Processes an event, returns a collection of fired triggers. | |
const ChainContext * | GetContext () |
void | SetContext (const ChainContext *ctx) |
const Options & | Opts () const |
const RecoParams & | Params () const |
bool | HasMonitor () const |
Monitor & | GetMonitor () const |
Private Attributes | |
kfp::V0Finder | fFinder |
Instance of the V0-finding algorithm. | |
kfp::V0FinderMonitor | fMonitorRun |
Monitor per run. | |
kfp::V0FinderMonitorData_t | fMonitorTimeslice |
Monitor per timeslice. | |
std::unique_ptr< kfp::V0FinderQa > | fpFinderQa {nullptr} |
QA module. | |
PODVector< uint32_t > | fBmonDefinedAddresses |
Available addresses of BMON. | |
const ChainContext * | fContext = nullptr |
A chain for the V0 finder.
Definition at line 32 of file KfpV0FinderChain.h.
Definition at line 34 of file KfpV0FinderChain.h.
|
default |
Default constructor.
V0FinderChain::V0FinderChain | ( | const std::unique_ptr< qa::Manager > & | qaManager | ) |
Constructor from parameters.
pQaManager | A QA-manager |
Definition at line 23 of file KfpV0FinderChain.cxx.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
default |
Destructor.
void V0FinderChain::Finalize | ( | ) |
Finalizes the instance (called in the end of the run)
Definition at line 30 of file KfpV0FinderChain.cxx.
References fMonitorRun, GetMonitor(), L_, and cbm::algo::ca::Monitor< ECounterKey, ETimerKey >::ToString().
|
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 cbm::algo::Reco::QueueEvbuildMetrics(), cbm::algo::Reco::QueueProcessingExtraMetrics(), cbm::algo::Reco::QueueProcessingMetrics(), cbm::algo::Reco::QueueStsRecoMetrics(), cbm::algo::Reco::QueueTofCalibMetrics(), cbm::algo::Reco::QueueTofRecoMetrics(), cbm::algo::Reco::QueueTrackingMetrics(), cbm::algo::Reco::QueueTrdRecoMetrics(), and cbm::algo::Reco::QueueUnpackerMetricsDet().
cbm::algo::kfp::V0FinderMonitorData_t V0FinderChain::GetMonitor | ( | ) |
Gets a monitor.
Definition at line 38 of file KfpV0FinderChain.cxx.
References cbm::algo::ca::Monitor< ECounterKey, ETimerKey >::AddMonitorData(), fMonitorRun, fMonitorTimeslice, and cbm::algo::ca::MonitorData< C, T >::Reset().
Referenced by Finalize().
|
inlineinherited |
Definition at line 23 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by cbm::algo::SubChain::GetMonitor(), cbm::algo::Reco::QueueEvbuildMetrics(), cbm::algo::Reco::QueueProcessingExtraMetrics(), cbm::algo::Reco::QueueProcessingMetrics(), cbm::algo::Reco::QueueStsRecoMetrics(), cbm::algo::Reco::QueueTofCalibMetrics(), cbm::algo::Reco::QueueTofRecoMetrics(), cbm::algo::Reco::QueueTrackingMetrics(), cbm::algo::Reco::QueueTrdRecoMetrics(), and cbm::algo::Reco::QueueUnpackerMetricsDet().
void V0FinderChain::Init | ( | ) |
Initializes the instance (called in the beginning of the run)
Definition at line 48 of file KfpV0FinderChain.cxx.
References cbm::algo::kfp::V0Finder::AddDecayToReconstructionList(), fBmonDefinedAddresses, fFinder, fpFinderQa, cbm::algo::kfp::V0Finder::Init(), cbm::algo::ParFiles::kfp, L_, cbm::algo::SubChain::Opts(), cbm::algo::yaml::ReadFromFile(), cbm::algo::kfp::V0Finder::SetBmonPartitionIndex(), cbm::algo::kfp::V0Finder::SetChi2Cut2D(), cbm::algo::kfp::V0Finder::SetChiPrimaryCut2D(), cbm::algo::kfp::V0Finder::SetLCut(), cbm::algo::kfp::V0Finder::SetLdLCut2D(), cbm::algo::kfp::V0Finder::SetMinPionDca(), cbm::algo::kfp::V0Finder::SetMinProtonDca(), cbm::algo::kfp::V0Finder::SetPionVelocityRange(), cbm::algo::kfp::V0Finder::SetPrimaryAssignedPdg(), cbm::algo::kfp::V0Finder::SetProtonVelocityRange(), cbm::algo::kfp::V0Finder::SetQpAssignedUncertainty(), cbm::algo::kfp::V0Finder::SetTzeroOffset(), and cbm::algo::ParFiles::V0FinderConfig.
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
|
inlineinherited |
Definition at line 20 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by cbm::algo::Reco::Finalize(), cbm::algo::Reco::Init(), cbm::algo::tof::TrackingInterface::Init(), cbm::algo::TrackingChain::Init(), Init(), cbm::algo::Reco::PrintTimings(), cbm::algo::Reco::QueueEvbuildMetrics(), cbm::algo::Reco::QueueProcessingExtraMetrics(), cbm::algo::Reco::QueueProcessingMetrics(), cbm::algo::Reco::QueueStsRecoMetrics(), cbm::algo::Reco::QueueTofCalibMetrics(), cbm::algo::Reco::QueueTofRecoMetrics(), cbm::algo::Reco::QueueTrackingMetrics(), cbm::algo::Reco::QueueTrdRecoMetrics(), cbm::algo::Reco::QueueUnpackerMetricsDet(), and cbm::algo::Reco::Run().
|
inlineinherited |
Definition at line 21 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by cbm::algo::Reco::Init(), and cbm::algo::Reco::Run().
V0FinderChain::EventOutput V0FinderChain::ProcessEvent | ( | const RecoResults & | recoEvent | ) |
Processes an event, returns a collection of fired triggers.
Definition at line 152 of file KfpV0FinderChain.cxx.
References cbm::algo::ca::MonitorData< C, T >::AddMonitorData(), fFinder, fMonitorTimeslice, fpFinderQa, cbm::algo::kfp::V0Finder::GetEventMonitor(), and cbm::algo::kfp::V0Finder::Process().
|
inline |
Sets BMON diamond addresses array.
Definition at line 66 of file KfpV0FinderChain.h.
References fBmonDefinedAddresses.
|
inlineinherited |
Definition at line 18 of file SubChain.h.
References cbm::algo::SubChain::fContext.
Referenced by cbm::algo::Reco::Init(), and cbm::algo::TrackingSetup::Init().
|
private |
Available addresses of BMON.
Definition at line 79 of file KfpV0FinderChain.h.
Referenced by Init(), and SetBmonDefinedAddresses().
|
privateinherited |
Definition at line 34 of file SubChain.h.
Referenced by cbm::algo::SubChain::GetContext(), cbm::algo::SubChain::GetMonitor(), cbm::algo::SubChain::HasMonitor(), cbm::algo::SubChain::Opts(), cbm::algo::SubChain::Params(), and cbm::algo::SubChain::SetContext().
|
private |
Instance of the V0-finding algorithm.
Definition at line 75 of file KfpV0FinderChain.h.
Referenced by Init(), and ProcessEvent().
|
private |
Monitor per run.
Definition at line 76 of file KfpV0FinderChain.h.
Referenced by Finalize(), and GetMonitor().
|
private |
Monitor per timeslice.
Definition at line 77 of file KfpV0FinderChain.h.
Referenced by GetMonitor(), and ProcessEvent().
|
private |
QA module.
Definition at line 78 of file KfpV0FinderChain.h.
Referenced by Init(), and ProcessEvent().