ATLAS Offline Software
InnerDetector
InDetValidation
InDetPhysValMonitoring
src
safeDecorator.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
#include "
safeDecorator.h
"
12
#include <cmath>
13
namespace
IDPVM
{
14
// @name roughlyEqual overloaded functions
15
// @{
16
bool
17
roughlyEqual
(
const
int
i
,
const
int
j) {
18
return
i
== j;
19
}
20
21
bool
22
roughlyEqual
(
const
unsigned
int
i
,
const
unsigned
int
j) {
23
return
i
== j;
24
}
25
26
bool
27
roughlyEqual
(
const
float
i
,
const
float
j) {
28
const
float
epsilon = 0.001 *
std::min
(
i
, j);
29
30
return
(std::fabs(
i
- j) < epsilon);
31
}
32
}
IDPVM
Class to retrieve associated truth from a track, implementing a cached response.
Definition:
InDetPhysValMonitoringTool.h:55
min
constexpr double min()
Definition:
ap_fixedTest.cxx:26
safeDecorator.h
lumiFormat.i
int i
Definition:
lumiFormat.py:85
IDPVM::roughlyEqual
bool roughlyEqual(const int i, const int j)
Definition:
safeDecorator.cxx:17
Generated on Mon Dec 23 2024 21:17:40 for ATLAS Offline Software by
1.8.18