14#include <boost/serialization/array.hpp>
15#include <boost/serialization/string.hpp>
32 void Init(
float targetX,
float targetY,
float targetZ,
float refZ,
float xMin,
float xMax,
int nBinsX,
float yMin,
33 float yMax,
int nBinsY)
39 fMap.SetRange(xMin, xMax, nBinsX, yMin, yMax, nBinsY);
44 float x1,
float y1,
float z1,
float dx1,
float dy1,
45 float x2,
float y2,
float z2,
float dx2,
float dy2
59 float c = (
fRefZ - z1) / (z2 - z1);
60 float cm1 = (1.f - c);
61 float xe = x1 + (x2 - x1) * c;
62 float ye = y1 + (y2 - y1) * c;
63 float dxe = std::sqrt(dx1 * dx1 * cm1 * cm1 + dx2 * dx2 * c * c);
64 float dye = std::sqrt(dy1 * dy1 * cm1 * cm1 + dy2 * dy2 * c * c);
65 auto [window, ms] =
fMap.GetSearchWindowAndMs(xe, ye);
88 template<
class Archive>
Provides parameterisation for hit search windows in the CA tracking.
Class SearchWindowMap parameterisation for hit search windows in the CA tracking.
std::tuple< SearchWindowMap::SearchWindow, float > GetSearchWindowAndMs(float x1, float y1, float z1, float dx1, float dy1, float x2, float y2, float z2, float dx2, float dy2) const
~TripletSearchWindowMap()=default
Destructor.
void serialize(Archive &ar, const unsigned int)
float fRefZ
Reference Z coordinate.
void Init(float targetX, float targetY, float targetZ, float refZ, float xMin, float xMax, int nBinsX, float yMin, float yMax, int nBinsY)
Constructor.
float fTargetX
Target X coordinate.
friend class boost::serialization::access
Serialization function.
std::string ToString() const
String representation of the contents.
SearchWindowMap fMap
Search window map.
float fTargetZ
Target Z coordinate.
SearchWindowMap & GetMap()
float fTargetY
Target Y coordinate.
TripletSearchWindowMap()=default
Default constructor.
TODO: SZh 8.11.2022: add selection of parameterisation.