ATLAS Offline Software
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 
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> > (
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 }
TauCmp.h
TauJetParameters.h
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
CaloCellContainer.h
a
TList * a
Definition: liststreamerinfos.cxx:10