ATLAS Offline Software
Loading...
Searching...
No Matches
SamplePointUtils.cxx File Reference
#include "MdtCalibData/SamplePointUtils.h"
#include "MdtCalibData/IRtRelation.h"
#include "MdtCalibData/IRtResolution.h"
#include "MdtCalibData/ITrRelation.h"
#include "MuonCalibMath/UtilFunc.h"
#include "MdtCalibData/RtResolutionLookUp.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <ranges>

Go to the source code of this file.

Namespaces

namespace  MuonCalib
 CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.

Functions

std::vector< SamplePointMuonCalib::fetchDataPoints (const IRtRelation &rtRel, const double relUnc)
 Constructs a list of sample points from the rt-relation.
std::vector< SamplePointMuonCalib::fetchDataPoints (const IRtRelation &rtRel, const IRtResolution &resoFunc)
 Constructs a list of sample points from the rt-relation.
std::vector< SamplePointMuonCalib::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 resolution becomes x2.
std::vector< SamplePointMuonCalib::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 is replaced by a constant value.
std::vector< SamplePointMuonCalib::swapCoordinates (const std::vector< SamplePoint > &points, const IRtRelation &rtRel)
 Creates a new vector of samples points with x1 exchanged by x2 and vice-versa.
std::vector< SamplePointMuonCalib::normalizeDomain (const std::vector< SamplePoint > &dataPoints)
 Normalizes the domain of the samples points to the interval -1 to 1.
std::pair< double, double > MuonCalib::minMax (const std::vector< SamplePoint > &points)
 Returns the minimum & maximum values covered by the sample points.
std::pair< double, double > MuonCalib::interval (const std::vector< SamplePoint > &points)
 Returns the interval covered by the sample points.
double MuonCalib::calculateChi2 (const std::vector< SamplePoint > &dataPoints, const IRtRelation &rtRel)
 Returns the chi2 of the rt-relation w.r.t.
double MuonCalib::calculateChi2 (const std::vector< SamplePoint > &dataPoints, const ITrRelation &trRel)
double MuonCalib::calculateChi2 (const std::vector< SamplePoint > &dataPoints, const IRtResolution &rtReso)