CbmRoot
Loading...
Searching...
No Matches
CaUtils.h
Go to the documentation of this file.
1/* Copyright (C) 2022-2023 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergey Gorbunov, Sergei Zharko [committer] */
4
9
10#pragma once // include this header only once per compilation unit
11
12#include "CaHit.h"
13#include "KfDefs.h"
14#include "KfMeasurementTime.h"
15#include "KfMeasurementXy.h"
16#include "KfSimd.h"
17#include "KfTrackKalmanFilter.h"
18
19
21{
22
23 template<typename T>
24 inline void FilterHit(kf::TrackKalmanFilter<T>& fit, const ca::Hit& hit, const kf::utils::masktype<T>& timeInfo)
25 {
27 m.SetDx2(hit.dX2());
28 m.SetDy2(hit.dY2());
29 m.SetDxy(hit.dXY());
30 m.SetX(hit.X());
31 m.SetY(hit.Y());
32 m.SetNdfX(T(1.));
33 m.SetNdfY(T(1.));
34 fit.FilterXY(m);
35 fit.FilterTime(hit.T(), hit.dT2(), timeInfo);
36 }
37
38} // namespace cbm::algo::ca::utils
A generic hit for the CA tracker (header)
Common constant definitions for the Kalman Filter library.
Definition of the KfMeasurementXy class.
Implementation selection for the SIMD utilities (VS or pseudo)
Track fit utilities for the CA tracking based on the Kalman filter.
ca::Hit class describes a generic hit for the CA tracker
Definition CaHit.h:32
fscal dT2() const
Get the uncertainty of time.
Definition CaHit.h:123
fscal dXY() const
Get the X/Y covariance.
Definition CaHit.h:120
fscal dX2() const
Get the uncertainty of X coordinate.
Definition CaHit.h:114
fscal Y() const
Get the Y coordinate.
Definition CaHit.h:105
fscal T() const
Get the time.
Definition CaHit.h:111
fscal X() const
Get the X coordinate.
Definition CaHit.h:102
fscal dY2() const
Get the uncertainty of Y coordinate.
Definition CaHit.h:117
The class describes a 2D - measurement (x, y) in XY coordinate system.
void FilterXY(const kf::MeasurementXy< DataT > &m, bool skipUnmeasuredCoordinates=false)
filter the track with the XY measurement
void FilterTime(DataT t, DataT dt2, const DataTmask &m)
filter the track with the time measurement
void FilterHit(kf::TrackKalmanFilter< T > &fit, const ca::Hit &hit, const kf::utils::masktype< T > &timeInfo)
Definition CaUtils.h:24
typename std::conditional< std::is_same< T, fvec >::value, fmask, bool >::type masktype
Definition KfUtils.h:27