CbmRoot
|
A CA Parameters object initialization class. More...
#include <CaInitManager.h>
Public Member Functions | |
InitManager ()=default | |
Default constructor. | |
~InitManager ()=default | |
Destructor. | |
InitManager (const InitManager &)=delete | |
Copy constructor is forbidden. | |
InitManager (InitManager &&)=delete | |
Move constructor is forbidden. | |
InitManager & | operator= (const InitManager &)=delete |
Copy assignment operator is forbidden. | |
InitManager & | operator= (InitManager &&)=delete |
Move assignment operator is forbidden. | |
void | AddStation (const StationInitializer &station) |
Adds a tracking station to the geometry. | |
void | AddStations (const Parameters< fvec > &par) |
Adds tracking stations from the parameters file. | |
void | CheckInit () |
Provides final checks of the parameters object. | |
void | ClearCAIterations () |
Clears vector of CA track finder iterations. | |
void | ClearSetupInfo () |
Clears vector of base setup. | |
bool | FormParametersContainer () |
Forms parameters container. | |
const std::string & | GetDetectorName (EDetectorID detId) const |
Gets name of the detector. | |
int | GetGhostSuppression () const |
Gets ghost suppression flag. | |
const std::string & | GetInputConfigMain () const |
Gets a name of the main input configuration file. | |
const std::string & | GetInputConfigUser () const |
Gets a name of the user input configuration file. | |
const InitController_t & | GetInitController () const |
Gets a const reference to ca::ObjectInitController. | |
int | GetNstationsActive () const |
Gets total number of active stations. | |
int | GetNstationsActive (EDetectorID detectorID) const |
Gets number of active stations for given detector ID. | |
int | GetNstationsGeometry () const |
Gets total number of stations, provided by setup geometry. | |
int | GetNstationsGeometry (EDetectorID detectorID) const |
Gets number of stations, provided by setup geometry for given detector ID. | |
const std::string & | GetOutputConfigName () const |
Gets a name of the output configuration file. | |
std::vector< StationInitializer > & | GetStationInfo () |
Gets a reference to the stations array. | |
void | InitStationLayout () |
Initializes station layout. | |
void | InitTargetField (double zStep) |
Calculates kf::FieldValue and L1FieldReference values for a selected step in z-axis from the target position. | |
bool | IsActive (EDetectorID detectorID) const |
Checks, if the detector is active. | |
bool | IsPresent (EDetectorID detectorID) const |
Checks, if the detector is present in the geometry. | |
void | PushBackCAIteration (const Iteration &iteration) |
Pushes an CA track finder iteration into a sequence of iteration using reference. | |
void | PushBackCAIteration (const Iteration *pIteration) |
Pushes an CA track finder iteration into a sequence of iteration using raw pointer. | |
void | PushBackCAIteration (const std::unique_ptr< Iteration > &puIteration) |
Pushes an CA track finder iteration into a sequence of iteration using std::unique_ptr. | |
void | ReadInputConfigs () |
Reads main and user parameters configs. | |
void | ReadGeometrySetup (const std::string &fileName) |
Reads geometry setup from file. | |
void | ReadParametersObject (const std::string &fileName) |
Reads parameters object from boost-serialized binary file. | |
void | ReadSearchWindows (const std::string &fileName) |
Reads search windows from file. | |
void | SetCAIterationsNumberCrosscheck (int nIterations) |
Sets a number of CA track finder iterations to provide initialization cross-check. | |
void | SetConfigMain (const std::string &mainConfig) |
Sets base configuration file. | |
void | SetConfigUser (const std::string &userConfig) |
Sets user configuration file. | |
template<size_t Size> | |
void | SetDetectorNames (const std::array< const char *, Size > &container) |
Sets detector names. | |
void | SetFieldFunction (const FieldFunction_t &fieldFcn) |
Sets a magnetic field function, which will be applied for all the stations. | |
void | SetGhostSuppression (int ghostSuppression) |
Sets the flag to enable/disable the ghost suppression routine. | |
void | SetOutputConfigName (const std::string &filename) |
Sets a name of the output configuration file. | |
void | SetRandomSeed (unsigned int seed) |
Sets pseudo-random numbers generator seed. | |
void | SetTargetPosition (double x, double y, double z) |
Sets target position. | |
void | SetMaxDoubletsPerSinglet (unsigned int value) |
Sets upper-bound cut on max number of doublets per one singlet. | |
void | SetMaxTripletPerDoublets (unsigned int value) |
Sets upper-bound cut on max number of triplets per one doublet. | |
template<typename DataT > | |
void | SetGeometrySetup (const cbm::algo::kf::Setup< DataT > &setup) |
Sets setup. | |
void | SetMisalignmentTolerance (EDetectorID detectorId, double x, double y, double t) |
Sets misalignment parameters in X direction. | |
void | SetDefaultMass (double mass) |
Sets default fitter mass. | |
Parameters< fvec > && | TakeParameters () |
Takes parameters object from the init-manager instance. | |
void | WriteParametersObject (const std::string &fileName) const |
Writes parameters object from boost-serialized binary file. | |
void | DevSetIgnoreHitSearchAreas (bool value=true) |
Ignore hit search areas. | |
void | DevSetUseOfOriginalField (bool value=true) |
Force use of the original field (not approximated) | |
void | DevSetIsMatchDoubletsViaMc (bool value=true) |
Flag to match doublets using MC information. | |
void | DevSetIsMatchTripletsViaMc (bool value=true) |
Flag to match triplets using Mc information. | |
void | DevSetIsExtendTracksViaMc (bool value=true) |
Flag to match triplets using Mc information. | |
void | DevSetIsSuppressOverlapHitsViaMc (bool value=true) |
Flag to match triplets using Mc information. | |
void | DevSetIsParSearchWUsed (bool value=true) |
Flag to use estimated hit search windows. | |
Private Types | |
enum class | EInitKey { kFieldFunction , kTargetPos , kPrimaryVertexField , kStationsInfo , kCAIterationsNumberCrosscheck , kCAIterations , kSearchWindows , kGhostSuppression , kRandomSeed , kStationLayoutInitialized , kSetupInitialized , kEnd } |
Init-controller key set. More... | |
using | DetectorIDIntMap_t = std::unordered_map<EDetectorID, int> |
using | DetectorIDSet_t = std::set<EDetectorID> |
using | FieldFunction_t = std::function<void(const double (&xyz)[3], double (&B)[3])> |
using | InitController_t = ObjectInitController<static_cast<int>(EInitKey::kEnd), EInitKey> |
template<typename T > | |
using | DetectorIDArr_t = std::array<T, constants::size::MaxNdetectors> |
Private Member Functions | |
void | CheckCAIterationsInit () |
Checker for Iteration container initialization (sets EInitKey::kCAIterations) | |
void | CheckStationsInfoInit () |
Checker for StationInitializer set initialization (sets EInitKey::kStationsInfo) | |
void | ClearStationLayout () |
Returns station layout into undefined condition. | |
Private Attributes | |
InitController_t | fInitController {} |
Initialization flags. | |
DetectorIDArr_t< std::string > | fvDetectorNames {} |
Names of the detectors. | |
double | fTargetZ {0.} |
Target position z component in double precision. | |
std::vector< StationInitializer > | fvStationInfo {} |
Vector of StationInitializer objects (active + inactive) | |
FieldFunction_t | fFieldFunction {[](const double (&)[3], double (&)[3]) {}} |
A function which returns magnetic field vector B in a radius-vector xyz. | |
int | fCAIterationsNumberCrosscheck {-1} |
Number of iterations to be passed (must be used for cross-checks) | |
Parameters< fvec > | fParameters {} |
CA parameters object. | |
std::string | fsConfigInputMain = "" |
name for the input configuration file | |
std::string | fsConfigInputUser = "" |
name for the input configuration file | |
std::string | fConfigOutputName = "" |
name for the output configuration file | |
bool | fbConfigIsRead = false |
Flag, if configuration file was read. | |
bool | fbGeometryConfigLock = false |
Lock geometry initialization. | |
A CA Parameters object initialization class.
This class provides an interface to form a solid Parameters object, which is used by the CA algorithm and the related routines. The initialization can be performed either from the detector-specific interfaces or by reading the already prepared binary wile with extention ca.par TODO:.... continue
|
private |
Definition at line 82 of file CaInitManager.h.
|
private |
Definition at line 77 of file CaInitManager.h.
|
private |
Definition at line 78 of file CaInitManager.h.
|
private |
Definition at line 79 of file CaInitManager.h.
|
private |
Definition at line 80 of file CaInitManager.h.
|
strongprivate |
Init-controller key set.
Definition at line 59 of file CaInitManager.h.
|
default |
Default constructor.
|
default |
Destructor.
|
delete |
Copy constructor is forbidden.
|
delete |
Move constructor is forbidden.
void cbm::algo::ca::InitManager::AddStation | ( | const StationInitializer & | station | ) |
Adds a tracking station to the geometry.
Definition at line 27 of file CaInitManager.cxx.
References fvStationInfo.
Referenced by AddStations(), and CbmL1::Init().
void cbm::algo::ca::InitManager::AddStations | ( | const Parameters< fvec > & | par | ) |
Adds tracking stations from the parameters file.
par | A valid instance of parameters, created for ACTIVE + INACTIVE tracking stations |
Definition at line 31 of file CaInitManager.cxx.
References AddStation(), cbm::algo::ca::Parameters< DataT >::GetActiveToGeoMap(), cbm::algo::ca::Parameters< DataT >::GetNstationsActive(), cbm::algo::ca::Parameters< DataT >::GetStationIndexLocal(), and cbm::algo::ca::Parameters< DataT >::GetStations().
|
private |
Checker for Iteration container initialization (sets EInitKey::kCAIterations)
Definition at line 533 of file CaInitManager.cxx.
References fCAIterationsNumberCrosscheck, fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), kCAIterations, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by CheckInit().
void cbm::algo::ca::InitManager::CheckInit | ( | ) |
Provides final checks of the parameters object.
Definition at line 54 of file CaInitManager.cxx.
References CheckCAIterationsInit(), CheckStationsInfoInit(), fbConfigIsRead, and fbGeometryConfigLock.
Referenced by FormParametersContainer().
|
private |
Checker for StationInitializer set initialization (sets EInitKey::kStationsInfo)
Definition at line 550 of file CaInitManager.cxx.
References fInitController, fParameters, fvStationInfo, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), kStationsInfo, cbm::algo::ca::constants::size::MaxNstations, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by CheckInit().
void cbm::algo::ca::InitManager::ClearCAIterations | ( | ) |
Clears vector of CA track finder iterations.
Definition at line 110 of file CaInitManager.cxx.
References fCAIterationsNumberCrosscheck, fInitController, fParameters, kCAIterations, kCAIterationsNumberCrosscheck, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by cbm::algo::ca::ConfigReader::Read().
void cbm::algo::ca::InitManager::ClearSetupInfo | ( | ) |
Clears vector of base setup.
Definition at line 64 of file CaInitManager.cxx.
References ClearStationLayout(), fbGeometryConfigLock, fFieldFunction, fInitController, fParameters, fTargetZ, fvStationInfo, kFieldFunction, kGhostSuppression, kPrimaryVertexField, kRandomSeed, kStationsInfo, kTargetPos, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
|
private |
Returns station layout into undefined condition.
Definition at line 577 of file CaInitManager.cxx.
References fInitController, fParameters, kStationLayoutInitialized, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by ClearSetupInfo(), and InitStationLayout().
|
inline |
Ignore hit search areas.
Definition at line 318 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Flag to match triplets using Mc information.
Definition at line 330 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Flag to match doublets using MC information.
Definition at line 324 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Flag to match triplets using Mc information.
Definition at line 327 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Flag to use estimated hit search windows.
true | estimated search windows will be used in track finder |
false | the Kalman filter is be used in track finder |
Definition at line 338 of file CaInitManager.h.
References fParameters.
Referenced by CbmL1::Init().
|
inline |
Flag to match triplets using Mc information.
Definition at line 333 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Force use of the original field (not approximated)
Definition at line 321 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
bool cbm::algo::ca::InitManager::FormParametersContainer | ( | ) |
Forms parameters container.
Definition at line 120 of file CaInitManager.cxx.
References CheckInit(), fbConfigIsRead, fInitController, fParameters, fvStationInfo, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::IsFinalized(), kSearchWindows, ReadInputConfigs(), cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag(), and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::ToString().
Referenced by CbmL1::Init().
|
inline |
Gets name of the detector.
detId | Index of the detector |
Definition at line 134 of file CaInitManager.h.
References fvDetectorNames.
Referenced by cbm::algo::ca::ConfigReader::ReadInactiveStationMap(), and cbm::algo::ca::ConfigReader::ReadMisalignmentTolerance().
|
inline |
Gets ghost suppression flag.
Definition at line 137 of file CaInitManager.h.
References fParameters.
|
inline |
Gets a const reference to ca::ObjectInitController.
Definition at line 146 of file CaInitManager.h.
References fInitController.
|
inline |
Gets a name of the main input configuration file.
Definition at line 140 of file CaInitManager.h.
References fsConfigInputMain.
|
inline |
Gets a name of the user input configuration file.
Definition at line 143 of file CaInitManager.h.
References fsConfigInputMain.
int cbm::algo::ca::InitManager::GetNstationsActive | ( | ) | const |
Gets total number of active stations.
Definition at line 169 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), and kStationLayoutInitialized.
Referenced by IsActive().
int cbm::algo::ca::InitManager::GetNstationsActive | ( | EDetectorID | detectorID | ) | const |
Gets number of active stations for given detector ID.
Definition at line 181 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), and kStationLayoutInitialized.
int cbm::algo::ca::InitManager::GetNstationsGeometry | ( | ) | const |
Gets total number of stations, provided by setup geometry.
Definition at line 193 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), and kStationLayoutInitialized.
Referenced by IsPresent(), and cbm::algo::ca::ConfigReader::ReadInactiveStationMap().
int cbm::algo::ca::InitManager::GetNstationsGeometry | ( | EDetectorID | detectorID | ) | const |
Gets number of stations, provided by setup geometry for given detector ID.
Definition at line 205 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), and kStationLayoutInitialized.
|
inline |
Gets a name of the output configuration file.
Definition at line 161 of file CaInitManager.h.
References fConfigOutputName.
std::vector< StationInitializer > & cbm::algo::ca::InitManager::GetStationInfo | ( | ) |
Gets a reference to the stations array.
Definition at line 217 of file CaInitManager.cxx.
References fInitController, fvStationInfo, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), and kStationLayoutInitialized.
Referenced by cbm::algo::ca::ConfigReader::Read().
void cbm::algo::ca::InitManager::InitStationLayout | ( | ) |
Initializes station layout.
This function is to be called after all the tracking stations (StationInitializer objects) are added to the InitManager instance. After the initialization the vector of the tracking stations is sorted by z-positions and is available for modifications.
Definition at line 230 of file CaInitManager.cxx.
References ClearStationLayout(), fInitController, fParameters, fvStationInfo, kStationLayoutInitialized, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by CbmL1::Init(), and cbm::algo::ca::ConfigReader::Read().
void cbm::algo::ca::InitManager::InitTargetField | ( | double | zStep | ) |
Calculates kf::FieldValue and L1FieldReference values for a selected step in z-axis from the target position.
zStep | step between nodal points |
Definition at line 268 of file CaInitManager.cxx.
References fFieldFunction, fInitController, fParameters, fTargetZ, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), kFieldFunction, kPrimaryVertexField, kTargetPos, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by CbmL1::Init().
|
inline |
Checks, if the detector is active.
Definition at line 178 of file CaInitManager.h.
References GetNstationsActive().
Referenced by CbmL1::Init().
|
inline |
Checks, if the detector is present in the geometry.
Definition at line 181 of file CaInitManager.h.
References GetNstationsGeometry().
|
delete |
Copy assignment operator is forbidden.
|
delete |
Move assignment operator is forbidden.
void cbm::algo::ca::InitManager::PushBackCAIteration | ( | const Iteration & | iteration | ) |
Pushes an CA track finder iteration into a sequence of iteration using reference.
Definition at line 311 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), and kCAIterationsNumberCrosscheck.
|
inline |
Pushes an CA track finder iteration into a sequence of iteration using raw pointer.
Definition at line 187 of file CaInitManager.h.
References PushBackCAIteration().
Referenced by PushBackCAIteration().
|
inline |
Pushes an CA track finder iteration into a sequence of iteration using std::unique_ptr.
Definition at line 190 of file CaInitManager.h.
References PushBackCAIteration().
Referenced by PushBackCAIteration().
void cbm::algo::ca::InitManager::ReadGeometrySetup | ( | const std::string & | fileName | ) |
Reads geometry setup from file.
fileName | Name of input file |
Definition at line 346 of file CaInitManager.cxx.
References cbm::algo::kf::SetupBuilder::Load(), and SetGeometrySetup().
void cbm::algo::ca::InitManager::ReadInputConfigs | ( | ) |
Reads main and user parameters configs.
Definition at line 324 of file CaInitManager.cxx.
References fbConfigIsRead, fbGeometryConfigLock, fsConfigInputMain, and fsConfigInputUser.
Referenced by FormParametersContainer(), and CbmL1::Init().
void cbm::algo::ca::InitManager::ReadParametersObject | ( | const std::string & | fileName | ) |
Reads parameters object from boost-serialized binary file.
fileName | Name of input file |
Definition at line 354 of file CaInitManager.cxx.
References cbm::algo::ca::constants::clrs::CL, fbGeometryConfigLock, fInitController, fParameters, cbm::algo::ca::constants::clrs::GNb, kPrimaryVertexField, kSearchWindows, kStationLayoutInitialized, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by cbm::ca::ParametersHandler::Get(), and CbmL1::ReadSTAPParamObject().
void cbm::algo::ca::InitManager::ReadSearchWindows | ( | const std::string & | fileName | ) |
Reads search windows from file.
fileName | Name of input file |
Definition at line 389 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::SearchWindow::GetStationID(), cbm::algo::ca::SearchWindow::GetTrackGroupID(), kSearchWindows, cbm::algo::ca::constants::size::MaxNstations, cbm::algo::ca::constants::size::MaxNtrackGroups, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by CbmL1::Init().
void cbm::algo::ca::InitManager::SetCAIterationsNumberCrosscheck | ( | int | nIterations | ) |
Sets a number of CA track finder iterations to provide initialization cross-check.
Definition at line 440 of file CaInitManager.cxx.
References fCAIterationsNumberCrosscheck, fInitController, fParameters, kCAIterationsNumberCrosscheck, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Sets base configuration file.
mainConfig | Path to main configuration file |
Definition at line 215 of file CaInitManager.h.
References fsConfigInputMain.
Referenced by CbmL1::Init().
|
inline |
Sets user configuration file.
userConfig | Path to user configuration file |
Definition at line 220 of file CaInitManager.h.
References fsConfigInputUser.
Referenced by CbmL1::SetConfigUser().
|
inline |
Sets default fitter mass.
mass | Particle mass [GeV/c2] |
Definition at line 303 of file CaInitManager.h.
References fParameters.
|
inline |
Sets detector names.
container | Container of the detector names |
Definition at line 225 of file CaInitManager.h.
References fvDetectorNames, and cbm::algo::ca::constants::size::MaxNdetectors.
Referenced by cbm::algo::TrackingChain::Init(), and CbmL1::Init().
void cbm::algo::ca::InitManager::SetFieldFunction | ( | const FieldFunction_t & | fieldFcn | ) |
Sets a magnetic field function, which will be applied for all the stations.
Definition at line 452 of file CaInitManager.cxx.
References fFieldFunction, fInitController, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), kFieldFunction, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by CbmL1::Init().
|
inline |
Sets setup.
Underlying | type of the setup |
Definition at line 266 of file CaInitManager.h.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), cbm::algo::kf::Setup< T >::GetNofLayers(), kSetupInitialized, kStationLayoutInitialized, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by cbm::ca::ParametersHandler::Get(), CbmL1::Init(), and ReadGeometrySetup().
void cbm::algo::ca::InitManager::SetGhostSuppression | ( | int | ghostSuppression | ) |
Sets the flag to enable/disable the ghost suppression routine.
Definition at line 465 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), kGhostSuppression, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Sets upper-bound cut on max number of doublets per one singlet.
Definition at line 258 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Sets upper-bound cut on max number of triplets per one doublet.
Definition at line 261 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Sets misalignment parameters in X direction.
detectorId | Index of the detector system |
x | Misalignment tolerance in x [cm] |
y | Misalignment tolerance in y [cm] |
t | Misalignment tolerance in t [ns] |
Definition at line 294 of file CaInitManager.h.
References fParameters, x, and y.
Referenced by cbm::algo::ca::ConfigReader::ReadMisalignmentTolerance().
|
inline |
Sets a name of the output configuration file.
filename | Name of the output CA parameters configuration |
The output file is created from the fields, saved in the resulted Parameters object.
Definition at line 243 of file CaInitManager.h.
References fConfigOutputName.
Referenced by CbmL1::SetOutputConfigName().
void cbm::algo::ca::InitManager::SetRandomSeed | ( | unsigned int | seed | ) |
Sets pseudo-random numbers generator seed.
seed | Seed value |
Definition at line 478 of file CaInitManager.cxx.
References fInitController, fParameters, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), kRandomSeed, and cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag().
Referenced by cbm::algo::ca::ConfigReader::Read(), and CbmL1::SetRandomSeed().
void cbm::algo::ca::InitManager::SetTargetPosition | ( | double | x, |
double | y, | ||
double | z ) |
Sets target position.
x | Position X component [cm] |
y | Position Y component [cm] |
z | Position Z component [cm] |
Fill fvec target fields
Set additional field for z component in double precision
Definition at line 490 of file CaInitManager.cxx.
References fInitController, fParameters, fTargetZ, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::GetFlag(), kTargetPos, cbm::algo::ca::ObjectInitController< NumberOfFlags, InitKeyEnum >::SetFlag(), x, and y.
Referenced by CbmL1::Init().
Parameters< fvec > && cbm::algo::ca::InitManager::TakeParameters | ( | ) |
Takes parameters object from the init-manager instance.
Definition at line 508 of file CaInitManager.cxx.
References fParameters.
Referenced by cbm::ca::ParametersHandler::Get(), and CbmL1::Init().
void cbm::algo::ca::InitManager::WriteParametersObject | ( | const std::string & | fileName | ) | const |
Writes parameters object from boost-serialized binary file.
fileName | Name of input file |
Definition at line 512 of file CaInitManager.cxx.
References cbm::algo::ca::constants::clrs::CL, fParameters, and cbm::algo::ca::constants::clrs::GNb.
Referenced by CbmL1::WriteSTAPParamObject().
|
private |
Flag, if configuration file was read.
Definition at line 374 of file CaInitManager.h.
Referenced by CheckInit(), FormParametersContainer(), and ReadInputConfigs().
|
private |
Lock geometry initialization.
Definition at line 375 of file CaInitManager.h.
Referenced by CheckInit(), ClearSetupInfo(), ReadInputConfigs(), and ReadParametersObject().
|
private |
Number of iterations to be passed (must be used for cross-checks)
Definition at line 364 of file CaInitManager.h.
Referenced by CheckCAIterationsInit(), ClearCAIterations(), and SetCAIterationsNumberCrosscheck().
|
private |
name for the output configuration file
Definition at line 372 of file CaInitManager.h.
Referenced by GetOutputConfigName(), and SetOutputConfigName().
|
private |
A function which returns magnetic field vector B in a radius-vector xyz.
Definition at line 360 of file CaInitManager.h.
Referenced by ClearSetupInfo(), InitTargetField(), and SetFieldFunction().
|
private |
Initialization flags.
Definition at line 352 of file CaInitManager.h.
Referenced by CheckCAIterationsInit(), CheckStationsInfoInit(), ClearCAIterations(), ClearSetupInfo(), ClearStationLayout(), FormParametersContainer(), GetInitController(), GetNstationsActive(), GetNstationsActive(), GetNstationsGeometry(), GetNstationsGeometry(), GetStationInfo(), InitStationLayout(), InitTargetField(), PushBackCAIteration(), ReadParametersObject(), ReadSearchWindows(), SetCAIterationsNumberCrosscheck(), SetFieldFunction(), SetGeometrySetup(), SetGhostSuppression(), SetRandomSeed(), and SetTargetPosition().
|
private |
CA parameters object.
Definition at line 366 of file CaInitManager.h.
Referenced by CheckCAIterationsInit(), CheckStationsInfoInit(), ClearCAIterations(), ClearSetupInfo(), ClearStationLayout(), DevSetIgnoreHitSearchAreas(), DevSetIsExtendTracksViaMc(), DevSetIsMatchDoubletsViaMc(), DevSetIsMatchTripletsViaMc(), DevSetIsParSearchWUsed(), DevSetIsSuppressOverlapHitsViaMc(), DevSetUseOfOriginalField(), FormParametersContainer(), GetGhostSuppression(), GetNstationsActive(), GetNstationsActive(), GetNstationsGeometry(), GetNstationsGeometry(), InitStationLayout(), InitTargetField(), PushBackCAIteration(), ReadParametersObject(), ReadSearchWindows(), SetCAIterationsNumberCrosscheck(), SetDefaultMass(), SetGeometrySetup(), SetGhostSuppression(), SetMaxDoubletsPerSinglet(), SetMaxTripletPerDoublets(), SetMisalignmentTolerance(), SetRandomSeed(), SetTargetPosition(), TakeParameters(), and WriteParametersObject().
|
private |
name for the input configuration file
Definition at line 370 of file CaInitManager.h.
Referenced by GetInputConfigMain(), GetInputConfigUser(), ReadInputConfigs(), and SetConfigMain().
|
private |
name for the input configuration file
Definition at line 371 of file CaInitManager.h.
Referenced by ReadInputConfigs(), and SetConfigUser().
|
private |
Target position z component in double precision.
Definition at line 355 of file CaInitManager.h.
Referenced by ClearSetupInfo(), InitTargetField(), and SetTargetPosition().
|
private |
Names of the detectors.
Definition at line 353 of file CaInitManager.h.
Referenced by GetDetectorName(), and SetDetectorNames().
|
private |
Vector of StationInitializer objects (active + inactive)
Definition at line 357 of file CaInitManager.h.
Referenced by AddStation(), CheckStationsInfoInit(), ClearSetupInfo(), FormParametersContainer(), GetStationInfo(), and InitStationLayout().