|
CbmRoot
|
A manager for setup representation in CBM reconstruction. More...
#include <CbmRecoSetupManager.h>
Public Member Functions | |
| RecoSetupManager (const RecoSetupManager &)=delete | |
| RecoSetupManager (RecoSetupManager &&)=delete | |
| RecoSetupManager & | operator= (const RecoSetupManager &)=delete |
| RecoSetupManager & | operator= (RecoSetupManager &&)=delete |
| std::shared_ptr< const GeoNodeMap > | GetGeoNodeMap () const |
| Access to geo node map. | |
| const algo::RecoSetup & | GetSetup () const |
| Setup accessor. | |
| void | BuildGeoNodeMaps () |
| Requests geo-node map building. | |
| InitStatus | Init () override |
| Initialization method. | |
| bool | IsInitialized () const |
| Returns initialization status. | |
| bool | Has (ECbmModuleId moduleId) const |
| Checks, if a detector is in setup. | |
| bool | HasGeoNodeMaps () const |
| Checks, if the geo node maps were built. | |
| void | LoadSetup (const std::string &filename) |
| Loads setup from a binary file. | |
| void | StoreSetup (const std::string &filename) |
| Stores setup to a binary file. | |
Static Public Member Functions | |
| static RecoSetupManager * | Instance () |
| Instance access. | |
Private Member Functions | |
| RecoSetupManager () | |
| Constructor. | |
| ~RecoSetupManager ()=default | |
| Destructor. | |
| InitStatus | ReInit () override |
| Re-initialization method. | |
| void | SetParContainers () override |
| Sets parameter containers for different subsystems. | |
| ClassDefOverride (RecoSetupManager, 0) | |
Private Attributes | |
| algo::RecoSetup | fSetup {} |
| Instance of reconstruction setup. | |
| std::string | fSetupOutFilename {} |
| Output name for the setup (if not empty, the setup is stored) | |
| std::shared_ptr< const GeoNodeMap > | fGeoNodeMap |
| A mapper for node address -> path in TGeoManager. | |
| bool | fbInitialized {false} |
| Flag, if the instance was initialized. | |
| bool | fbBuildGeoNodeMaps {false} |
| Flag, if to create the geo node map. | |
A manager for setup representation in CBM reconstruction.
Definition at line 24 of file CbmRecoSetupManager.h.
|
delete |
References RecoSetupManager().
Referenced by ClassDefOverride(), Instance(), operator=(), operator=(), RecoSetupManager(), and RecoSetupManager().
|
delete |
References RecoSetupManager().
|
private |
Constructor.
Definition at line 33 of file CbmRecoSetupManager.cxx.
|
privatedefault |
Destructor.
|
inline |
Requests geo-node map building.
Definition at line 43 of file CbmRecoSetupManager.h.
References fbBuildGeoNodeMaps.
Referenced by cbm::ca::IdealHitProducerDet< DetID >::IdealHitProducerDet().
|
private |
References RecoSetupManager().
|
inline |
Access to geo node map.
Definition at line 37 of file CbmRecoSetupManager.h.
References fGeoNodeMap.
Referenced by CbmBbaAlignmentMcbmTask::Finish(), CbmBbaAlignTask::SensorsFromTracks(), and CbmBbaAlignTask::SetReferences().
|
inline |
Setup accessor.
Definition at line 40 of file CbmRecoSetupManager.h.
References fSetup.
Referenced by CbmKfTrackFitter< FlagFitTime >::CreateFromGlobalTrack(), cbm::ca::InputQaSetup::CreateSummary(), CbmTrackingTrdQa::Exec(), cbm::ca::InputQaSetup::FillHistogramsDet(), CbmTrackingTrdQa::FillHitMap(), cbm::ca::MCModule::FillMCPoint(), CbmBbaAlignmentMcbmTask::Finish(), CbmTrackingTrdQa::GetGeometry(), cbm::kf::GetTrackingInterface(), CbmBbaAlignTask::Init(), cbm::ca::InputQaSetup::InitQa(), cbm::ca::MCModule::InitRun(), cbm::ca::TimeSliceReader::ReadHitsForDetector(), and cbm::kf::TrackingGeoSetupFactory::TrackingGeoSetupFactory().
|
inline |
Checks, if a detector is in setup.
Definition at line 53 of file CbmRecoSetupManager.h.
References fSetup.
| bool RecoSetupManager::HasGeoNodeMaps | ( | ) | const |
Checks, if the geo node maps were built.
Definition at line 37 of file CbmRecoSetupManager.cxx.
References fGeoNodeMap.
|
override |
Initialization method.
Definition at line 51 of file CbmRecoSetupManager.cxx.
References cbm::GeoNodeMapBuilder::Build(), fbBuildGeoNodeMaps, fbInitialized, fGeoNodeMap, fSetup, fSetupOutFilename, CbmSetup::Instance(), kMuch, kMvd, kSts, kTof, kTrd, cbm::GeoNodeMapBuilder::Request(), and cbm::algo::RecoSetup::Store().
Referenced by ReInit().
|
static |
Instance access.
Definition at line 113 of file CbmRecoSetupManager.cxx.
References RecoSetupManager().
Referenced by CbmKfTrackFitter< FlagFitTime >::CreateFromGlobalTrack(), cbm::ca::InputQaSetup::CreateSummary(), CbmTrackingTrdQa::Exec(), cbm::ca::InputQaSetup::FillHistogramsDet(), CbmTrackingTrdQa::FillHitMap(), cbm::ca::MCModule::FillMCPoint(), CbmBbaAlignmentMcbmTask::Finish(), CbmTrackingTrdQa::GetGeometry(), cbm::kf::GetTrackingInterface(), cbm::ca::IdealHitProducerDet< DetID >::IdealHitProducerDet(), cbm::ca::IdealHitProducerDet< DetID >::Init(), CbmBbaAlignmentMcbmTask::Init(), CbmBbaAlignTask::Init(), CbmGenerateMaterialMaps::Init(), CbmKF::Init(), cbm::ca::InputQaSetup::InitQa(), CbmCaInputQaBase< DetID >::InitQa(), cbm::ca::MCModule::InitRun(), cbm::ca::TimeSliceReader::InitRun(), cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::atconverter::TaskFactory::RegisterCaTracking(), cbm::reco::offline::TaskFactory::RegisterCaTracking(), CbmOnlineParWrite::Run(), CbmBbaAlignTask::SensorsFromTracks(), CbmKfTrackFitter< cbm::algo::kf::DoFitTime::N >::SetParticleHypothesis(), CbmBbaAlignTask::SetReferences(), and cbm::kf::TrackingGeoSetupFactory::TrackingGeoSetupFactory().
| bool RecoSetupManager::IsInitialized | ( | ) | const |
Returns initialization status.
Definition at line 121 of file CbmRecoSetupManager.cxx.
References fbInitialized.
| void RecoSetupManager::LoadSetup | ( | const std::string & | filename | ) |
Loads setup from a binary file.
| filename | Input filename |
Definition at line 132 of file CbmRecoSetupManager.cxx.
References fSetup, and cbm::algo::RecoSetup::Load().
|
delete |
References RecoSetupManager().
|
delete |
References RecoSetupManager().
|
inlineoverrideprivate |
|
overrideprivate |
Sets parameter containers for different subsystems.
Definition at line 141 of file CbmRecoSetupManager.cxx.
|
inline |
Stores setup to a binary file.
| filename | Output filename |
Definition at line 65 of file CbmRecoSetupManager.h.
References fSetupOutFilename.
|
private |
Flag, if to create the geo node map.
Definition at line 73 of file CbmRecoSetupManager.h.
Referenced by BuildGeoNodeMaps(), and Init().
|
private |
Flag, if the instance was initialized.
Definition at line 72 of file CbmRecoSetupManager.h.
Referenced by Init(), and IsInitialized().
|
private |
A mapper for node address -> path in TGeoManager.
Definition at line 71 of file CbmRecoSetupManager.h.
Referenced by GetGeoNodeMap(), HasGeoNodeMaps(), and Init().
|
private |
Instance of reconstruction setup.
Definition at line 69 of file CbmRecoSetupManager.h.
Referenced by GetSetup(), Has(), Init(), and LoadSetup().
|
private |
Output name for the setup (if not empty, the setup is stored)
Definition at line 70 of file CbmRecoSetupManager.h.
Referenced by Init(), and StoreSetup().