CbmRoot
|
Class L1SearchWindow defines a parameterisation of hits search window for CA tracking algorithm TODO: SZh 8.11.2022: add description. More...
#include <CaSearchWindow.h>
Public Member Functions | |
SearchWindow (int stationID, int trackGrID) | |
Constructor. | |
SearchWindow ()=default | |
Default constructor. | |
~SearchWindow ()=default | |
Destructor. | |
SearchWindow (const SearchWindow &other)=default | |
Copy constructor. | |
SearchWindow & | operator= (const SearchWindow &other)=default |
Copy assignment operator. | |
SearchWindow (SearchWindow &&other) noexcept=default | |
Move constructor. | |
SearchWindow & | operator= (SearchWindow &&other)=default |
Move assignment operator. | |
float | DxMaxVsX0 (float) const |
Parameterisation function for dx_max(x0) | |
float | DxMinVsX0 (float) const |
Parameterisation function for dx_min(x0) | |
float | DxMaxVsY0 (float) const |
Parameterisation function for dx_max(y0) | |
float | DxMinVsY0 (float) const |
Parameterisation function for dx_min(y0) | |
float | DyMaxVsX0 (float) const |
Parameterisation function for dy_max(x0) | |
float | DyMinVsX0 (float) const |
Parameterisation function for dy_min(x0) | |
float | DyMaxVsY0 (float) const |
Parameterisation function for dy_max(y0) | |
float | DyMinVsY0 (float) const |
Parameterisation function for dy_min(y0) | |
int | GetStationID () const |
Gets station id. | |
int | GetTrackGroupID () const |
Gets track group id. | |
void | SetTag (const char *name) |
Sets tag. | |
void | SetParamDxMaxVsX0 (int id, float val) |
Sets parameters for dx_max(x0) | |
void | SetParamDxMinVsX0 (int id, float val) |
Sets parameters for dx_min(x0) | |
void | SetParamDxMaxVsY0 (int id, float val) |
Sets parameters for dx_max(y0) | |
void | SetParamDxMinVsY0 (int id, float val) |
Sets parameters for dx_min(y0) | |
void | SetParamDyMaxVsX0 (int id, float val) |
Sets parameters for dy_max(x0) | |
void | SetParamDyMinVsX0 (int id, float val) |
Sets parameters for dy_min(x0) | |
void | SetParamDyMaxVsY0 (int id, float val) |
Sets parameters for dy_max(y0) | |
void | SetParamDyMinVsY0 (int id, float val) |
Sets parameters for dy_min(y0) | |
std::string | ToString () const |
String representation of the contents. | |
Private Types | |
enum | EDependency { kDxMaxVsX0 , kDxMinVsX0 , kDxMaxVsY0 , kDxMinVsY0 , kDyMaxVsX0 , kDyMinVsX0 , kDyMaxVsY0 , kDyMinVsY0 } |
Enumeration for dependencies stored. More... | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Private Attributes | |
std::array< float, kNdeps *kNpars > | fvParams = {0} |
Search window parameter array containing parameters from. | |
int | fStationID = -1 |
Global index of active tracking station. | |
int | fTrackGroupID = -1 |
Index of tracks group. | |
std::string | fsTag = "" |
Tag, containing information on the tracks group (TODO: can be omitted?) | |
Static Private Attributes | |
static constexpr unsigned char | kNpars = 1 |
Max number of parameters for one dependency. | |
static constexpr unsigned char | kNdeps = 8 |
Number of the dependencies. | |
Friends | |
class | boost::serialization::access |
Serialization function. | |
Class L1SearchWindow defines a parameterisation of hits search window for CA tracking algorithm TODO: SZh 8.11.2022: add description.
|
private |
Enumeration for dependencies stored.
Enumerator | |
---|---|
kDxMaxVsX0 | |
kDxMinVsX0 | |
kDxMaxVsY0 | |
kDxMinVsY0 | |
kDyMaxVsX0 | |
kDyMinVsX0 | |
kDyMaxVsY0 | |
kDyMinVsY0 |
Definition at line 137 of file CaSearchWindow.h.
SearchWindow::SearchWindow | ( | int | stationID, |
int | trackGrID ) |
Constructor.
stationID | Global index of active station |
trackGrID | Track group ID |
Definition at line 15 of file CaSearchWindow.cxx.
References kNpars.
|
default |
Default constructor.
|
default |
Destructor.
|
default |
Copy constructor.
|
defaultnoexcept |
Move constructor.
|
inline |
Parameterisation function for dx_max(x0)
Definition at line 52 of file CaSearchWindow.h.
References fvParams, and kDxMaxVsX0.
|
inline |
Parameterisation function for dx_max(y0)
Definition at line 58 of file CaSearchWindow.h.
References fvParams, and kDxMaxVsY0.
|
inline |
Parameterisation function for dx_min(x0)
Definition at line 55 of file CaSearchWindow.h.
References fvParams, and kDxMinVsX0.
|
inline |
Parameterisation function for dx_min(y0)
Definition at line 61 of file CaSearchWindow.h.
References fvParams, and kDxMinVsY0.
|
inline |
Parameterisation function for dy_max(x0)
Definition at line 64 of file CaSearchWindow.h.
References fvParams, and kDyMaxVsX0.
|
inline |
Parameterisation function for dy_max(y0)
Definition at line 70 of file CaSearchWindow.h.
References fvParams, and kDyMaxVsY0.
|
inline |
Parameterisation function for dy_min(x0)
Definition at line 67 of file CaSearchWindow.h.
References fvParams, and kDyMinVsX0.
|
inline |
Parameterisation function for dy_min(y0)
Definition at line 73 of file CaSearchWindow.h.
References fvParams, and kDyMinVsY0.
|
inline |
Gets station id.
Definition at line 77 of file CaSearchWindow.h.
References fStationID.
Referenced by cbm::algo::ca::InitManager::ReadSearchWindows().
|
inline |
Gets track group id.
Definition at line 80 of file CaSearchWindow.h.
References fTrackGroupID.
Referenced by cbm::algo::ca::InitManager::ReadSearchWindows().
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
|
inlineprivate |
Definition at line 167 of file CaSearchWindow.h.
References fsTag, fStationID, fTrackGroupID, and fvParams.
void SearchWindow::SetParamDxMaxVsX0 | ( | int | id, |
float | val ) |
Sets parameters for dx_max(x0)
id | Parameter index |
val | Parameter value |
Definition at line 28 of file CaSearchWindow.cxx.
References fvParams, kDxMaxVsX0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
void SearchWindow::SetParamDxMaxVsY0 | ( | int | id, |
float | val ) |
Sets parameters for dx_max(y0)
id | Parameter index |
val | Parameter value |
Definition at line 44 of file CaSearchWindow.cxx.
References fvParams, kDxMaxVsY0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
void SearchWindow::SetParamDxMinVsX0 | ( | int | id, |
float | val ) |
Sets parameters for dx_min(x0)
id | Parameter index |
val | Parameter value |
Definition at line 36 of file CaSearchWindow.cxx.
References fvParams, kDxMinVsX0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
void SearchWindow::SetParamDxMinVsY0 | ( | int | id, |
float | val ) |
Sets parameters for dx_min(y0)
id | Parameter index |
val | Parameter value |
Definition at line 52 of file CaSearchWindow.cxx.
References fvParams, kDxMinVsY0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
void SearchWindow::SetParamDyMaxVsX0 | ( | int | id, |
float | val ) |
Sets parameters for dy_max(x0)
id | Parameter index |
val | Parameter value |
Definition at line 60 of file CaSearchWindow.cxx.
References fvParams, kDyMaxVsX0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
void SearchWindow::SetParamDyMaxVsY0 | ( | int | id, |
float | val ) |
Sets parameters for dy_max(y0)
id | Parameter index |
val | Parameter value |
Definition at line 76 of file CaSearchWindow.cxx.
References fvParams, kDyMaxVsY0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
void SearchWindow::SetParamDyMinVsX0 | ( | int | id, |
float | val ) |
Sets parameters for dy_min(x0)
id | Parameter index |
val | Parameter value |
Definition at line 68 of file CaSearchWindow.cxx.
References fvParams, kDyMinVsX0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
void SearchWindow::SetParamDyMinVsY0 | ( | int | id, |
float | val ) |
Sets parameters for dy_min(y0)
id | Parameter index |
val | Parameter value |
Definition at line 84 of file CaSearchWindow.cxx.
References fvParams, kDyMinVsY0, and kNpars.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
|
inline |
Sets tag.
A tag can be used for insurance, if this search window corresponds to a desired track finder iteration
Definition at line 85 of file CaSearchWindow.h.
References fsTag.
Referenced by cbm::ca::tools::WindowFinder::CreateSW().
std::string SearchWindow::ToString | ( | ) | const |
String representation of the contents.
Definition at line 92 of file CaSearchWindow.cxx.
References fStationID, fTrackGroupID, fvParams, kNdeps, and kNpars.
|
friend |
Serialization function.
Definition at line 165 of file CaSearchWindow.h.
|
private |
Tag, containing information on the tracks group (TODO: can be omitted?)
Definition at line 162 of file CaSearchWindow.h.
Referenced by serialize(), and SetTag().
|
private |
Global index of active tracking station.
Definition at line 160 of file CaSearchWindow.h.
Referenced by GetStationID(), serialize(), and ToString().
|
private |
Index of tracks group.
Definition at line 161 of file CaSearchWindow.h.
Referenced by GetTrackGroupID(), serialize(), and ToString().
Search window parameter array containing parameters from.
Definition at line 158 of file CaSearchWindow.h.
Referenced by DxMaxVsX0(), DxMaxVsY0(), DxMinVsX0(), DxMinVsY0(), DyMaxVsX0(), DyMaxVsY0(), DyMinVsX0(), DyMinVsY0(), serialize(), SetParamDxMaxVsX0(), SetParamDxMaxVsY0(), SetParamDxMinVsX0(), SetParamDxMinVsY0(), SetParamDyMaxVsX0(), SetParamDyMaxVsY0(), SetParamDyMinVsX0(), SetParamDyMinVsY0(), and ToString().
|
staticconstexprprivate |
Number of the dependencies.
Definition at line 134 of file CaSearchWindow.h.
Referenced by ToString().
|
staticconstexprprivate |
Max number of parameters for one dependency.
Definition at line 133 of file CaSearchWindow.h.
Referenced by SearchWindow(), SetParamDxMaxVsX0(), SetParamDxMaxVsY0(), SetParamDxMinVsX0(), SetParamDxMinVsY0(), SetParamDyMaxVsX0(), SetParamDyMaxVsY0(), SetParamDyMinVsX0(), SetParamDyMinVsY0(), and ToString().