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 | 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 CbmL1::Init().
|
private |
Checker for Iteration container initialization (sets EInitKey::kCAIterations)
Definition at line 508 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 31 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 525 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 85 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 41 of file CaInitManager.cxx.
References ClearStationLayout(), 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 552 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 308 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Flag to match triplets using Mc information.
Definition at line 320 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Flag to match doublets using MC information.
Definition at line 314 of file CaInitManager.h.
References fParameters.
Referenced by cbm::algo::ca::ConfigReader::Read().
|
inline |
Flag to match triplets using Mc information.
Definition at line 317 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 328 of file CaInitManager.h.
References fParameters.
Referenced by CbmL1::Init().
|
inline |
Flag to match triplets using Mc information.
Definition at line 323 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 311 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 95 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 124 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 127 of file CaInitManager.h.
References fParameters.
|
inline |
Gets a const reference to ca::ObjectInitController.
Definition at line 136 of file CaInitManager.h.
References fInitController.
|
inline |
Gets a name of the main input configuration file.
Definition at line 130 of file CaInitManager.h.
References fsConfigInputMain.
|
inline |
Gets a name of the user input configuration file.
Definition at line 133 of file CaInitManager.h.
References fsConfigInputMain.
int cbm::algo::ca::InitManager::GetNstationsActive | ( | ) | const |
Gets total number of active stations.
Definition at line 144 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 156 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 168 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 180 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 151 of file CaInitManager.h.
References fConfigOutputName.
std::vector< StationInitializer > & cbm::algo::ca::InitManager::GetStationInfo | ( | ) |
Gets a reference to the stations array.
Definition at line 192 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 205 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 243 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 168 of file CaInitManager.h.
References GetNstationsActive().
Referenced by CbmL1::Init().
|
inline |
Checks, if the detector is present in the geometry.
Definition at line 171 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 286 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 177 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 180 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 321 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 299 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 329 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 364 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 415 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 205 of file CaInitManager.h.
References fsConfigInputMain.
Referenced by CbmL1::Init().
|
inline |
Sets user configuration file.
userConfig | Path to user configuration file |
Definition at line 210 of file CaInitManager.h.
References fsConfigInputUser.
Referenced by CbmL1::SetConfigUser().
|
inline |
Sets default fitter mass.
mass | Particle mass [GeV/c2] |
Definition at line 293 of file CaInitManager.h.
References fParameters.
|
inline |
Sets detector names.
container | Container of the detector names |
Definition at line 215 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 427 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 256 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 440 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 248 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 251 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 284 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 233 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 453 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 465 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 483 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 487 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 364 of file CaInitManager.h.
Referenced by CheckInit(), FormParametersContainer(), and ReadInputConfigs().
|
private |
Lock geometry initialization.
Definition at line 365 of file CaInitManager.h.
Referenced by CheckInit(), ReadInputConfigs(), and ReadParametersObject().
|
private |
Number of iterations to be passed (must be used for cross-checks)
Definition at line 354 of file CaInitManager.h.
Referenced by CheckCAIterationsInit(), ClearCAIterations(), and SetCAIterationsNumberCrosscheck().
|
private |
name for the output configuration file
Definition at line 362 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 350 of file CaInitManager.h.
Referenced by ClearSetupInfo(), InitTargetField(), and SetFieldFunction().
|
private |
Initialization flags.
Definition at line 342 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 356 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 360 of file CaInitManager.h.
Referenced by GetInputConfigMain(), GetInputConfigUser(), ReadInputConfigs(), and SetConfigMain().
|
private |
name for the input configuration file
Definition at line 361 of file CaInitManager.h.
Referenced by ReadInputConfigs(), and SetConfigUser().
|
private |
Target position z component in double precision.
Definition at line 345 of file CaInitManager.h.
Referenced by ClearSetupInfo(), InitTargetField(), and SetTargetPosition().
|
private |
Names of the detectors.
Definition at line 343 of file CaInitManager.h.
Referenced by GetDetectorName(), and SetDetectorNames().
|
private |
Vector of StationInitializer objects (active + inactive)
Definition at line 347 of file CaInitManager.h.
Referenced by AddStation(), CheckStationsInfoInit(), ClearSetupInfo(), FormParametersContainer(), GetStationInfo(), and InitStationLayout().