13#include <boost/serialization/access.hpp>
146 std::string
ToString(
int verbose,
bool bHeader)
const;
176 template<
class Archive>
202 res &= std::isfinite(
fX);
203 res &= std::isfinite(
fY);
204 res &= std::isfinite(
fZ);
205 res &= std::isfinite(
fT);
206 res &= std::isfinite(
fDx2);
207 res &= std::isfinite(
fDy2);
208 res &= std::isfinite(
fDxy);
209 res &= std::isfinite(
fDt2);
ca::Hit class describes a generic hit for the CA tracker
fscal fRangeT
+/- range of uncertainty of time [ns]
fscal fDx2
rms^2 of uncertainty of X coordinate [cm2]
void SetX(fscal x)
Set the X coordinate.
fscal Z() const
Get the Z coordinate.
HitKeyIndex_t BackKey() const
Get the back key index.
int fStation
index of station in the active stations array
fscal fDt2
measured uncertainty of time [ns2]
HitIndex_t fId
id of the hit
void SetRangeT(fscal rangeT)
Set the +/- range of uncertainty of time.
void SetDt2(fscal dt2)
Set the uncertainty of time.
fscal RangeX() const
Get the +/- range of uncertainty of X coordinate.
void SetDy2(fscal dy2)
Set the uncertainty of Y coordinate.
void SetRangeY(fscal rangeY)
Set the +/- range of uncertainty of Y coordinate.
fscal dT2() const
Get the uncertainty of time.
void SetStation(int station)
Set the station index.
std::string ToString() const
Simple string representation of the hit class.
Hit()=default
Default constructor.
void SetDx2(fscal dx2)
Set the uncertainty of X coordinate.
void SetRangeX(fscal rangeX)
Set the +/- range of uncertainty of X coordinate.
fscal dXY() const
Get the X/Y covariance.
fscal fDy2
rms^2 of uncertainty of Y coordinate [cm2]
void SetZ(fscal z)
Set the Z coordinate.
fscal fRangeX
+/- range of uncertainty of X coordinate [cm]
void SetBackKey(HitKeyIndex_t key)
Set the back key index.
fscal dX2() const
Get the uncertainty of X coordinate.
fscal Y() const
Get the Y coordinate.
void serialize(Archive &ar, const unsigned int)
Serialization method, used to save ca::Hit objects into binary or text file in a defined order.
void SetFrontKey(HitKeyIndex_t key)
Set the front key index.
fscal RangeY() const
Get the +/- range of uncertainty of Y coordinate.
void SetId(HitIndex_t id)
Set the hit id.
fscal RangeT() const
Get the +/- range of uncertainty of time.
bool Check() const
Checks, if the hit is defined.
fscal fZ
fixed Z coordinate [cm]
HitKeyIndex_t FrontKey() const
Get the front key index.
fscal T() const
Get the time.
void SetT(fscal t)
Set the time.
HitKeyIndex_t fFrontKey
front hit key index
fscal X() const
Get the X coordinate.
HitIndex_t Id() const
Get the hit id.
fscal fY
measured Y coordinate [cm]
friend class boost::serialization::access
fscal fRangeY
+/- range of uncertainty of Y coordinate [cm]
int Station() const
Get the station index.
fscal fDxy
X/Y covariance [cm2].
void SetDxy(fscal dxy)
Set the X/Y covariance.
HitKeyIndex_t fBackKey
back hit key index
fscal fT
measured time [ns]
void SetY(fscal y)
Set the Y coordinate.
fscal fX
measured X coordinate [cm]
fscal dY2() const
Get the uncertainty of Y coordinate.
TODO: SZh 8.11.2022: add selection of parameterisation.
unsigned int HitKeyIndex_t
Index of the hit key (e.g. front / back cluster id for STS)
unsigned int HitIndex_t
Index of ca::Hit.