|
CbmRoot
|
A chain for tracking algorithm. More...
#include <TrackingChain.h>
Classes | |
| struct | Input_t |
| Input to the TrackingChain. More... | |
| struct | Output_t |
| Output from the TrackingChain. More... | |
Public Member Functions | |
| TrackingChain (ECbmRecoMode recoMode, const std::unique_ptr< cbm::algo::qa::Manager > &qaManager=nullptr, std::string_view name="") | |
| Constructor from parameters. | |
| const ca::TrackingMonitor & | GetCaMonitor () const |
| Gets internal monitor. | |
| void | Init (const std::string &caParPath) |
| Provides action in the initialization of the run. | |
| void | RegisterSetup (std::shared_ptr< RecoSetup > pSetup) |
| Registers reco-setup. | |
| Output_t | Run (Input_t recoResults) |
| Provides action for a given time-slice. | |
| void | Finalize () |
| Provides action in the end of the run. | |
| const ChainContext * | GetContext () |
| void | SetContext (const ChainContext *ctx) |
| const Options & | Opts () const |
| const RecoParams & | Params () const |
| bool | HasMonitor () const |
| Monitor & | GetMonitor () const |
Private Member Functions | |
| void | PrepareInput (Input_t recoResults) |
| Prepares input data. | |
| Output_t | PrepareOutput () |
| Prepares output data. | |
| template<ca::EDetectorID DetID> | |
| void | ReadHits (PartitionedSpan< const ca::HitTypes_t::at< DetID > > hits) |
| Reads from different detector subsystems. | |
Private Attributes | |
| ca::TrackingMonitor | fCaMonitor {} |
| CA internal monitor (debug purposes) | |
| ca::TrackingMonitorData | fCaMonitorData {} |
| CA monitor data object. | |
| ca::Framework | fCaFramework {} |
| CA framework instance. | |
| ca::DataManager | fCaDataManager {} |
| CA data manager. | |
| ca::Qa | fQa |
| CA QA builder. | |
| std::shared_ptr< RecoSetup > | fpSetup |
| setup interface | |
| ca::DetIdArray_t< bool > | fbDetUsed |
| Flags of detector subsystems used in tracking. | |
| ca::HitKeyIndex_t | fNofHitKeys = 0 |
| Current number of hit keys (aux) | |
| ca::Vector< std::tuple< ca::EDetectorID, uint32_t, uint32_t > > | faHitExternalIndices {"faHitExternalIndices"} |
| External indices of used hits. | |
| ECbmRecoMode | fRecoMode {ECbmRecoMode::Undefined} |
| Reconstruction mode. | |
| const ChainContext * | fContext = nullptr |
Static Private Attributes | |
| static constexpr bool | kDEBUG = false |
| Debug mode. | |
| static constexpr bool | kStoreMonitor = false |
| Store monitor (debug) | |
A chain for tracking algorithm.
The class executes a tracking algorithm in the online data reconstruction chain.
Definition at line 43 of file TrackingChain.h.
| TrackingChain::TrackingChain | ( | ECbmRecoMode | recoMode, |
| const std::unique_ptr< cbm::algo::qa::Manager > & | qaManager = nullptr, | ||
| std::string_view | name = "" ) |
Constructor from parameters.
| recoMode | Reconstruction mode |
| pManager | a QA-manager |
| name | A name of the task (histograms directory) |
Definition at line 40 of file TrackingChain.cxx.
| void TrackingChain::Finalize | ( | ) |
Provides action in the end of the run.
Definition at line 112 of file TrackingChain.cxx.
|
inline |
Gets internal monitor.
Definition at line 83 of file TrackingChain.h.
|
inlineinherited |
Definition at line 16 of file SubChain.h.
References fContext.
|
inlineinherited |
Definition at line 25 of file SubChain.h.
References fContext, and 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().
|
inlineinherited |
Definition at line 23 of file SubChain.h.
References fContext.
Referenced by 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 TrackingChain::Init | ( | const std::string & | caParPath | ) |
Provides action in the initialization of the run.
| caParPath | Path to the CA parameters file |
Definition at line 50 of file TrackingChain.cxx.
|
inlineinherited |
Definition at line 20 of file SubChain.h.
References fContext.
Referenced by cbm::algo::Reco::Finalize(), cbm::algo::Reco::Init(), cbm::algo::TrackingChain::Init(), cbm::algo::sts::HitfinderChain::operator()(), 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(), cbm::algo::Reco::Run(), and cbm::algo::Reco::Validate().
|
inlineinherited |
Definition at line 21 of file SubChain.h.
References fContext.
Referenced by cbm::algo::Reco::Init(), cbm::algo::sts::HitfinderChain::operator()(), and cbm::algo::Reco::Run().
|
private |
Prepares input data.
| recoResults | Structure of reconstruction results |
Definition at line 125 of file TrackingChain.cxx.
|
private |
Prepares output data.
Definition at line 158 of file TrackingChain.cxx.
|
private |
Reads from different detector subsystems.
| DetID | Detector ID |
| hits | Hits vector |
FIXME: Define ranges from the hit, when will be available
Definition at line 233 of file TrackingChain.cxx.
|
inline |
Registers reco-setup.
Definition at line 90 of file TrackingChain.h.
| TrackingChain::Output_t TrackingChain::Run | ( | Input_t | recoResults | ) |
Provides action for a given time-slice.
| recoResults | Structure of reconstruction results |
Definition at line 90 of file TrackingChain.cxx.
|
inlineinherited |
Definition at line 18 of file SubChain.h.
References fContext.
Referenced by cbm::algo::Reco::Init().
|
private |
External indices of used hits.
Definition at line 138 of file TrackingChain.h.
|
private |
Flags of detector subsystems used in tracking.
Definition at line 129 of file TrackingChain.h.
|
private |
CA data manager.
Definition at line 124 of file TrackingChain.h.
|
private |
CA framework instance.
Definition at line 123 of file TrackingChain.h.
|
private |
CA internal monitor (debug purposes)
Definition at line 121 of file TrackingChain.h.
|
private |
CA monitor data object.
Definition at line 122 of file TrackingChain.h.
|
privateinherited |
Definition at line 34 of file SubChain.h.
Referenced by GetContext(), GetMonitor(), HasMonitor(), Opts(), Params(), and SetContext().
|
private |
Current number of hit keys (aux)
Definition at line 134 of file TrackingChain.h.
|
private |
setup interface
Definition at line 127 of file TrackingChain.h.
|
private |
CA QA builder.
Definition at line 125 of file TrackingChain.h.
|
private |
Reconstruction mode.
Definition at line 140 of file TrackingChain.h.
|
staticconstexprprivate |
Debug mode.
Definition at line 142 of file TrackingChain.h.
|
staticconstexprprivate |
Store monitor (debug)
Definition at line 143 of file TrackingChain.h.