ATLAS Offline Software
Loading...
Searching...
No Matches
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"
18//Other includes
19#include "AthLinks/ElementLink.h"
21//C/C++ includes
22#include <limits>
23#include <cmath>
24#include <utility>
25
26namespace 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
41 return (a==b);
42 }
43
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}
static Double_t a
Declaration of Tau comparison predicates.
Definition of parameters for TauJet object.
bool cmp(const double &a, const double &b)
Definition TauCmp.cxx:34
The namespace of all packages in PhysicsAnalysis/JetTagging.