|
CbmRoot
|
An instance of reconstruction setup unit interfaces for online/offline data reconstruction. More...
#include <RecoSetup.h>
Public Member Functions | |
| RecoSetup ()=default | |
| Default constructor. | |
| RecoSetup (const std::string &filename) | |
| Constructor from parameters. | |
| template<class Visitor> | |
| void | ForEachOptUnit (Visitor &&visitor) const |
| A for-each method, which is applied to each unit as an std::optional<> (constant access) | |
| template<class Visitor> | |
| void | ForEachOptUnit (Visitor &&visitor) |
| A for-each method, which is applied to each unit as an std::optional<> (mutable access) | |
| template<class Visitor> | |
| void | ForEachUnit (Visitor &&visitor) const |
| A for-each method, which is applied to each unit, if it has a value (constant access) | |
| template<class Visitor> | |
| void | ForEachUnit (Visitor &&visitor) |
| A for-each method, which is applied to each unit, if it has a value (mutable access) | |
| template<ECbmModuleId ModuleId> | |
| const RecoSetupUnit_t< ModuleId > * | Get () const |
| Access to a reconstruction setup unit. | |
| const much::RecoSetupUnit * | GetMuch () const |
| Access to MuCh reconstruction setup unit. | |
| const mvd::RecoSetupUnit * | GetMvd () const |
| Access to MVD reconstruction setup unit. | |
| const sts::RecoSetupUnit * | GetSts () const |
| Access to STS reconstruction setup unit. | |
| const tof::RecoSetupUnit * | GetTof () const |
| Access to TOF reconstruction setup unit. | |
| const trd::RecoSetupUnit * | GetTrd () const |
| Access to TRD reconstruction setup unit. | |
| template<ECbmModuleId ModuleId> | |
| bool | Has () const |
| Checks, if a setup unit is available (compile-time) | |
| bool | Has (ECbmModuleId moduleId) const |
| Checks, if a setup unit is available (run-time) | |
| bool | HasMuch () const |
| Checks, if the MuCh reconstruction setup unit is available. | |
| bool | HasMvd () const |
| Checks, if the MVD reconstruction setup unit is available. | |
| bool | HasSts () const |
| Checks, if the STS reconstruction setup unit is available. | |
| bool | HasTof () const |
| Checks, if the TOF reconstruction setup unit is available. | |
| bool | HasTrd () const |
| Checks, if the TRD reconstruction setup unit is available. | |
| void | SetMuch (much::RecoSetupUnit much) |
| Defines MuCh reconstruction setup unit. | |
| void | SetMvd (mvd::RecoSetupUnit mvd) |
| Defines STS reconstruction setup unit. | |
| void | SetSts (sts::RecoSetupUnit sts) |
| Defines STS reconstruction setup unit. | |
| void | SetTof (tof::RecoSetupUnit tof) |
| Defines TOF reconstruction setup unit. | |
| void | SetTrd (trd::RecoSetupUnit trd) |
| Defines TRD reconstruction setup unit. | |
| std::string | ToString () const |
| Dumps contents to string. | |
Static Public Member Functions | |
| static RecoSetup | Load (const std::string &filename) |
| Loads setup from a file. | |
| static void | Store (const RecoSetup &setup, const std::string &filename) |
| Stores setup in a file. | |
Private Member Functions | |
| template<class Archive> | |
| void | load (Archive &ar, const unsigned int) |
| Serialization load method. | |
| template<class Archive> | |
| void | save (Archive &ar, const unsigned int) const |
| Serialization save method. | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int version) |
| Serialization method. | |
Private Attributes | |
| std::optional< mvd::RecoSetupUnit > | fMvd {std::nullopt} |
| MVD reconstruction setup unit. | |
| std::optional< sts::RecoSetupUnit > | fSts {std::nullopt} |
| STS reconstruction setup unit. | |
| std::optional< much::RecoSetupUnit > | fMuch {std::nullopt} |
| MuCh reconstruction setup unit. | |
| std::optional< trd::RecoSetupUnit > | fTrd {std::nullopt} |
| TRD reconstruction setup unit. | |
| std::optional< tof::RecoSetupUnit > | fTof {std::nullopt} |
| TOF reconstruction setup unit. | |
Static Private Attributes | |
| static constexpr auto | kUnits |
| A tuple of units (for loops) | |
Friends | |
| class | boost::serialization::access |
An instance of reconstruction setup unit interfaces for online/offline data reconstruction.
Definition at line 62 of file RecoSetup.h.
|
default |
Default constructor.
| RecoSetup::RecoSetup | ( | const std::string & | filename | ) |
Constructor from parameters.
| filename | A path to file containing the setup |
Definition at line 24 of file RecoSetup.cxx.
|
inline |
A for-each method, which is applied to each unit as an std::optional<> (mutable access)
| Visitor | A type of Visitor |
| visitor | A callable of a particular std::optional<RecoSetupUnit> |
Definition at line 86 of file RecoSetup.h.
|
inline |
A for-each method, which is applied to each unit as an std::optional<> (constant access)
| Visitor | A type of Visitor |
| visitor | A callable of a particular std::optional<RecoSetupUnit> |
Definition at line 77 of file RecoSetup.h.
|
inline |
A for-each method, which is applied to each unit, if it has a value (mutable access)
| Visitor | A type of Visitor |
| visitor | A callable of a particular RecoSetupUnit |
Definition at line 104 of file RecoSetup.h.
|
inline |
A for-each method, which is applied to each unit, if it has a value (constant access)
| Visitor | A type of Visitor |
| visitor | A callable of a particular RecoSetupUnit |
Definition at line 95 of file RecoSetup.h.
|
inline |
Access to a reconstruction setup unit.
Definition at line 112 of file RecoSetup.h.
|
inline |
Access to MuCh reconstruction setup unit.
Definition at line 132 of file RecoSetup.h.
|
inline |
Access to MVD reconstruction setup unit.
Definition at line 136 of file RecoSetup.h.
|
inline |
Access to STS reconstruction setup unit.
Definition at line 140 of file RecoSetup.h.
|
inline |
Access to TOF reconstruction setup unit.
Definition at line 144 of file RecoSetup.h.
|
inline |
Access to TRD reconstruction setup unit.
Definition at line 148 of file RecoSetup.h.
|
inline |
Checks, if a setup unit is available (compile-time)
| ModuleId | CBM module ID |
Definition at line 153 of file RecoSetup.h.
| bool RecoSetup::Has | ( | ECbmModuleId | moduleId | ) | const |
Checks, if a setup unit is available (run-time)
Definition at line 28 of file RecoSetup.cxx.
|
inline |
Checks, if the MuCh reconstruction setup unit is available.
Definition at line 172 of file RecoSetup.h.
|
inline |
Checks, if the MVD reconstruction setup unit is available.
Definition at line 175 of file RecoSetup.h.
|
inline |
Checks, if the STS reconstruction setup unit is available.
Definition at line 178 of file RecoSetup.h.
|
inline |
Checks, if the TOF reconstruction setup unit is available.
Definition at line 181 of file RecoSetup.h.
|
inline |
Checks, if the TRD reconstruction setup unit is available.
Definition at line 184 of file RecoSetup.h.
|
static |
Loads setup from a file.
| filename | Path to input binary file with the setup |
| If | setup was loaded inproperly |
Definition at line 42 of file RecoSetup.cxx.
|
inlineprivate |
Serialization load method.
Definition at line 239 of file RecoSetup.h.
|
inlineprivate |
Serialization save method.
Definition at line 258 of file RecoSetup.h.
|
inlineprivate |
Serialization method.
Definition at line 273 of file RecoSetup.h.
|
inline |
Defines MuCh reconstruction setup unit.
Definition at line 187 of file RecoSetup.h.
|
inline |
Defines STS reconstruction setup unit.
Definition at line 190 of file RecoSetup.h.
|
inline |
Defines STS reconstruction setup unit.
Definition at line 193 of file RecoSetup.h.
|
inline |
Defines TOF reconstruction setup unit.
Definition at line 196 of file RecoSetup.h.
|
inline |
Defines TRD reconstruction setup unit.
Definition at line 199 of file RecoSetup.h.
|
static |
Stores setup in a file.
| setup | A reconstruction setup |
| filename | Path to output binary file |
| If | setup cannot be stored |
Definition at line 69 of file RecoSetup.cxx.
| std::string RecoSetup::ToString | ( | ) | const |
Dumps contents to string.
Definition at line 87 of file RecoSetup.cxx.
|
friend |
Definition at line 236 of file RecoSetup.h.
|
private |
MuCh reconstruction setup unit.
Definition at line 221 of file RecoSetup.h.
|
private |
MVD reconstruction setup unit.
Definition at line 219 of file RecoSetup.h.
|
private |
STS reconstruction setup unit.
Definition at line 220 of file RecoSetup.h.
|
private |
TOF reconstruction setup unit.
Definition at line 223 of file RecoSetup.h.
|
private |
TRD reconstruction setup unit.
Definition at line 222 of file RecoSetup.h.
|
staticconstexprprivate |
A tuple of units (for loops)
Definition at line 227 of file RecoSetup.h.