Outlier finder using a Chi2 cut.
More...
#include <FitterHelperFunctions.h>
|
template<typename trajectory_t > |
bool | operator() (typename Acts::MultiTrajectory< trajectory_t >::ConstTrackStateProxy state) const |
| Classify a measurement as a valid one or an outlier. More...
|
|
Outlier finder using a Chi2 cut.
Definition at line 39 of file FitterHelperFunctions.h.
◆ operator()()
template<typename trajectory_t >
bool ActsTrk::FitterHelperFunctions::ATLASOutlierFinder::operator() |
( |
typename Acts::MultiTrajectory< trajectory_t >::ConstTrackStateProxy |
state | ) |
const |
|
inline |
Classify a measurement as a valid one or an outlier.
- Template Parameters
-
track_state_t | Type of the track state |
- Parameters
-
state | The track state to classify |
- Return values
-
False | if the measurement is not an outlier |
True | if the measurement is an outlier |
Definition at line 48 of file FitterHelperFunctions.h.
50 if (not state.hasCalibrated() or not state.hasPredicted()) {
53 return Acts::visit_measurement(
54 state.calibratedSize(),
55 [&] (
auto N) ->
bool {
56 constexpr size_t kMeasurementSize = decltype(N)::value;
58 typename Acts::TrackStateTraits<kMeasurementSize, true>::Measurement calibrated{
59 state.template calibrated<Acts::MultiTrajectoryTraits::MeasurementSizeMax>().data()};
61 typename Acts::TrackStateTraits<kMeasurementSize, true>::MeasurementCovariance
62 calibratedCovariance{state.template calibratedCovariance<Acts::MultiTrajectoryTraits::MeasurementSizeMax>().data()};
67 .template topLeftCorner<kMeasurementSize, Acts::BoundIndices::eBoundSize>()
70 const auto residual = calibrated - H * state.predicted();
71 double chi2 = (
residual.transpose() * (calibratedCovariance + H * state.predictedCovariance() *
H.transpose()).inverse() *
residual).value();
◆ StateChiSquaredPerNumberDoFCut
double ActsTrk::FitterHelperFunctions::ATLASOutlierFinder::StateChiSquaredPerNumberDoFCut = std::numeric_limits<double>::max() |
The documentation for this struct was generated from the following file: