4#ifndef MDTCALIBDATA_SAMPLEPOINTUTILS_H
5#define MDTCALIBDATA_SAMPLEPOINTUTILS_H
34 std::vector<SamplePoint>
swapCoordinates(
const std::vector<SamplePoint>& points,
41 std::vector<SamplePoint>
resoFromRadius(
const std::vector<SamplePoint>& points,
47 std::vector<SamplePoint>
fetchResolution(
const std::vector<SamplePoint>& points,
50 std::vector<SamplePoint>
normalizeDomain(
const std::vector<SamplePoint>& dataPoints);
52 double calculateChi2(
const std::vector<SamplePoint>& dataPoints,
54 double calculateChi2(
const std::vector<SamplePoint>& dataPoints,
56 double calculateChi2(
const std::vector<SamplePoint>& dataPoints,
61 std::pair<double, double>
minMax(
const std::vector<SamplePoint>& points);
63 std::pair<double, double>
interval(
const std::vector<SamplePoint>& points);
generic interface for a rt-relation
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.