ATLAS Offline Software
MuonSpectrometer
MuonCalib
MuonCalibUtils
MuonCalibMath
MuonCalibMath
UtilFunc.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 MUONCALIBMATH_UTILFUNC_H
5
#define MUONCALIBMATH_UTILFUNC_H
6
7
namespace
MuonCalib
{
12
inline
double
mapToUnitInterval
(
const
double
x
,
const
double
lowerEdge,
const
double
upperEdge) {
13
return
2. * (
x
- 0.5 * (upperEdge + lowerEdge)) / (upperEdge - lowerEdge);
14
}
15
inline
double
unitIntervalPrime
(
const
double
lowerEdge,
const
double
upperEdge) {
16
return
2. / (upperEdge - lowerEdge);
17
}
18
}
19
20
21
#endif
x
#define x
MuonCalib::unitIntervalPrime
double unitIntervalPrime(const double lowerEdge, const double upperEdge)
Definition:
UtilFunc.h:15
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition:
CscCalcPed.cxx:22
MuonCalib::mapToUnitInterval
double mapToUnitInterval(const double x, const double lowerEdge, const double upperEdge)
Maps the number x which is in [lowEdge;upperEdge] to the interval [-1;1].
Definition:
UtilFunc.h:12
Generated on Mon Sep 1 2025 21:23:29 for ATLAS Offline Software by
1.8.18