CbmRoot
Loading...
Searching...
No Matches
RecoSetupManager Class Reference

A manager for setup representation in CBM reconstruction. More...

#include <CbmRecoSetupManager.h>

Inheritance diagram for RecoSetupManager:
[legend]
Collaboration diagram for RecoSetupManager:
[legend]

Public Member Functions

 RecoSetupManager (const RecoSetupManager &)=delete
 
 RecoSetupManager (RecoSetupManager &&)=delete
 
RecoSetupManageroperator= (const RecoSetupManager &)=delete
 
RecoSetupManageroperator= (RecoSetupManager &&)=delete
 
std::shared_ptr< const GeoNodeMapGetGeoNodeMap () 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 RecoSetupManagerInstance ()
 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 GeoNodeMapfGeoNodeMap
 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.
 

Detailed Description

A manager for setup representation in CBM reconstruction.

Definition at line 24 of file CbmRecoSetupManager.h.

Constructor & Destructor Documentation

◆ RecoSetupManager() [1/3]

cbm::RecoSetupManager::RecoSetupManager ( const RecoSetupManager & )
delete

◆ RecoSetupManager() [2/3]

cbm::RecoSetupManager::RecoSetupManager ( RecoSetupManager && )
delete

◆ RecoSetupManager() [3/3]

RecoSetupManager::RecoSetupManager ( )
private

Constructor.

Definition at line 33 of file CbmRecoSetupManager.cxx.

◆ ~RecoSetupManager()

cbm::RecoSetupManager::~RecoSetupManager ( )
privatedefault

Destructor.

Member Function Documentation

◆ BuildGeoNodeMaps()

void cbm::RecoSetupManager::BuildGeoNodeMaps ( )
inline

Requests geo-node map building.

Definition at line 43 of file CbmRecoSetupManager.h.

◆ ClassDefOverride()

cbm::RecoSetupManager::ClassDefOverride ( RecoSetupManager ,
0  )
private

◆ GetGeoNodeMap()

std::shared_ptr< const GeoNodeMap > cbm::RecoSetupManager::GetGeoNodeMap ( ) const
inline

Access to geo node map.

Note
Can be nullptr, to create a geo-node map, please invoke BuildGeoNodeMap method before Init

Definition at line 37 of file CbmRecoSetupManager.h.

◆ GetSetup()

const algo::RecoSetup & cbm::RecoSetupManager::GetSetup ( ) const
inline

Setup accessor.

Definition at line 40 of file CbmRecoSetupManager.h.

◆ Has()

bool cbm::RecoSetupManager::Has ( ECbmModuleId moduleId) const
inline

Checks, if a detector is in setup.

Definition at line 53 of file CbmRecoSetupManager.h.

◆ HasGeoNodeMaps()

bool RecoSetupManager::HasGeoNodeMaps ( ) const

Checks, if the geo node maps were built.

Definition at line 37 of file CbmRecoSetupManager.cxx.

◆ Init()

InitStatus RecoSetupManager::Init ( )
override

Initialization method.

Definition at line 51 of file CbmRecoSetupManager.cxx.

◆ Instance()

RecoSetupManager * RecoSetupManager::Instance ( )
static

Instance access.

Definition at line 113 of file CbmRecoSetupManager.cxx.

◆ IsInitialized()

bool RecoSetupManager::IsInitialized ( ) const

Returns initialization status.

Note
Prints an error message

Definition at line 121 of file CbmRecoSetupManager.cxx.

◆ LoadSetup()

void RecoSetupManager::LoadSetup ( const std::string & filename)

Loads setup from a binary file.

Parameters
filenameInput filename

Definition at line 132 of file CbmRecoSetupManager.cxx.

◆ operator=() [1/2]

RecoSetupManager & cbm::RecoSetupManager::operator= ( const RecoSetupManager & )
delete

◆ operator=() [2/2]

RecoSetupManager & cbm::RecoSetupManager::operator= ( RecoSetupManager && )
delete

◆ ReInit()

InitStatus cbm::RecoSetupManager::ReInit ( )
inlineoverrideprivate

Re-initialization method.

Definition at line 82 of file CbmRecoSetupManager.h.

◆ SetParContainers()

void RecoSetupManager::SetParContainers ( )
overrideprivate

Sets parameter containers for different subsystems.

Definition at line 141 of file CbmRecoSetupManager.cxx.

◆ StoreSetup()

void cbm::RecoSetupManager::StoreSetup ( const std::string & filename)
inline

Stores setup to a binary file.

Parameters
filenameOutput filename
Note
Setup is stored after the initialization

Definition at line 65 of file CbmRecoSetupManager.h.

Member Data Documentation

◆ fbBuildGeoNodeMaps

bool cbm::RecoSetupManager::fbBuildGeoNodeMaps {false}
private

Flag, if to create the geo node map.

Definition at line 73 of file CbmRecoSetupManager.h.

◆ fbInitialized

bool cbm::RecoSetupManager::fbInitialized {false}
private

Flag, if the instance was initialized.

Definition at line 72 of file CbmRecoSetupManager.h.

◆ fGeoNodeMap

std::shared_ptr<const GeoNodeMap> cbm::RecoSetupManager::fGeoNodeMap
private

A mapper for node address -> path in TGeoManager.

Definition at line 71 of file CbmRecoSetupManager.h.

◆ fSetup

algo::RecoSetup cbm::RecoSetupManager::fSetup {}
private

Instance of reconstruction setup.

Definition at line 69 of file CbmRecoSetupManager.h.

◆ fSetupOutFilename

std::string cbm::RecoSetupManager::fSetupOutFilename {}
private

Output name for the setup (if not empty, the setup is stored)

Definition at line 70 of file CbmRecoSetupManager.h.


The documentation for this class was generated from the following files: