ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction
tauEvent
src
TauCmp.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
14
15
//Tau event includes
16
#include "
tauEvent/TauCmp.h
"
17
#include "
tauEvent/TauJetParameters.h
"
18
//Other includes
19
#include "AthLinks/ElementLink.h"
20
#include "
CaloEvent/CaloCellContainer.h
"
21
//C/C++ includes
22
#include <limits>
23
#include <cmath>
24
#include <utility>
25
26
namespace
Analysis
{
27
namespace
TauCmp
{
28
29
// Specialisations for cmp
30
//
31
// Any type that uses cmp must be implemented explicitly or code
32
// will not link!
33
34
template
<>
bool
cmp<>
(
const
double
&
a
,
const
double
&b) {
35
return
(std::fabs(
a
-b)<std::numeric_limits<float>::epsilon());
36
}
37
38
template
<>
bool
cmp<ElementLink<CaloCellContainer>
> (
39
const
ElementLink<CaloCellContainer>
&
a
,
40
const
ElementLink<CaloCellContainer>
&b) {
41
return
(
a
==b);
42
}
43
44
template
<>
bool
cmp <std::pair<TauJetParameters::TauID, double>
> (
45
const
std::pair<TauJetParameters::TauID, double > &
a
,
46
const
std::pair<TauJetParameters::TauID, double > &b)
47
{
48
return
((
a
.first==b.first)&&(
a
.second==b.second));
49
}
50
51
}
52
}
CaloCellContainer.h
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
TauCmp.h
Declaration of Tau comparison predicates.
TauJetParameters.h
Definition of parameters for TauJet object.
ElementLink
ElementLink implementation for ROOT usage.
Definition
AthLinks/ElementLink.h:123
Analysis::TauCmp
Definition
TauCmp.cxx:27
Analysis::TauCmp::cmp
bool cmp(const double &a, const double &b)
Definition
TauCmp.cxx:34
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
BTaggingCnvAlg.h:20
Generated on
for ATLAS Offline Software by
1.14.0