Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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