ATLAS Offline Software
Loading...
Searching...
No Matches
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
7namespace 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
#define x
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
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
double unitIntervalPrime(const double lowerEdge, const double upperEdge)
Definition UtilFunc.h:15