ATLAS Offline Software
TauCmp.h
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 #ifndef __TauCmp_h__
16 #define __TauCmp_h__
17 
18 #include <vector>
19 #include <algorithm>
20 
21 namespace Analysis {
22  namespace TauCmp {
30  template <typename T> bool cmp(const T& a, const T &b);
31 
36  template <typename T> bool vcmp(
37  const std::vector<T> &a, const std::vector<T> &b)
38  {
39  return equal(a.begin(),a.end(),b.begin(),cmp<T>);
40  }
41 
46  template <typename T> bool vvcmp(
47  const std::vector<std::vector<T> > &a,
48  const std::vector<std::vector<T> > &b)
49  {
50  return equal(a.begin(),a.end(),b.begin(),vcmp<T>);
51  }
52  }
53 }
54 #endif //__TauCmp_h__
Analysis::TauCmp::vvcmp
bool vvcmp(const std::vector< std::vector< T > > &a, const std::vector< std::vector< T > > &b)
Compare vectors using vcmp predicate.
Definition: TauCmp.h:46
Analysis::TauCmp::cmp
bool cmp(const double &a, const double &b)
Definition: TauCmp.cxx:34
CxxUtils::fpcompare::equal
bool equal(double a, double b)
Compare two FP numbers, working around x87 precision issues.
Definition: fpcompare.h:114
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Analysis::TauCmp::vcmp
bool vcmp(const std::vector< T > &a, const std::vector< T > &b)
Compare vectors using cmp predicate.
Definition: TauCmp.h:36
a
TList * a
Definition: liststreamerinfos.cxx:10