ATLAS Offline Software
Loading...
Searching...
No Matches
SamplePointUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MDTCALIBDATA_SAMPLEPOINTUTILS_H
5#define MDTCALIBDATA_SAMPLEPOINTUTILS_H
6
8
9#include <vector>
10#include <utility>
11
12namespace MuonCalib{
13 class IRtRelation;
14 class ITrRelation;
15 class IRtResolution;
16
21 std::vector<SamplePoint> fetchDataPoints(const IRtRelation& rtRel,
22 const double relUnc);
28 std::vector<SamplePoint> fetchDataPoints(const IRtRelation& rtRel,
29 const IRtResolution& resoFunc);
34 std::vector<SamplePoint> swapCoordinates(const std::vector<SamplePoint>& points,
35 const IRtRelation& rtRel);
41 std::vector<SamplePoint> resoFromRadius(const std::vector<SamplePoint>& points,
42 const double uncert);
47 std::vector<SamplePoint> fetchResolution(const std::vector<SamplePoint>& points,
48 const double uncert);
50 std::vector<SamplePoint> normalizeDomain(const std::vector<SamplePoint>& dataPoints);
52 double calculateChi2(const std::vector<SamplePoint>& dataPoints,
53 const IRtRelation& rtRel);
54 double calculateChi2(const std::vector<SamplePoint>& dataPoints,
55 const ITrRelation& trRel);
56 double calculateChi2(const std::vector<SamplePoint>& dataPoints,
57 const IRtResolution& rtReso);
58
59
61 std::pair<double, double> minMax(const std::vector<SamplePoint>& points);
63 std::pair<double, double> interval(const std::vector<SamplePoint>& points);
64
65
66}
67#endif
generic interface for a rt-relation
Definition IRtRelation.h:19
Generic interface to retrieve the resolution on the drift radius as a function of the drift time.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
std::pair< double, double > interval(const std::vector< SamplePoint > &points)
Returns the interval covered by the sample points.
std::pair< double, double > minMax(const std::vector< SamplePoint > &points)
Returns the minimum & maximum values covered by the sample points.
std::vector< SamplePoint > resoFromRadius(const std::vector< SamplePoint > &points, const double uncert)
Creates a new vector of sample points where the x2 coordinate becomes the x1 coordinate and the resol...
std::vector< SamplePoint > normalizeDomain(const std::vector< SamplePoint > &dataPoints)
Normalizes the domain of the samples points to the interval -1 to 1.
std::vector< SamplePoint > swapCoordinates(const std::vector< SamplePoint > &points, const IRtRelation &rtRel)
Creates a new vector of samples points with x1 exchanged by x2 and vice-versa.
double calculateChi2(const std::vector< SamplePoint > &dataPoints, const IRtRelation &rtRel)
Returns the chi2 of the rt-relation w.r.t.
std::vector< SamplePoint > fetchResolution(const std::vector< SamplePoint > &points, const double uncert)
Creates a new vector of sample points where the x2 is assigned to the uncertainty and the uncertainty...
std::vector< SamplePoint > fetchDataPoints(const IRtRelation &rtRel, const double relUnc)
Constructs a list of sample points from the rt-relation.