ATLAS Offline Software
Loading...
Searching...
No Matches
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
21namespace 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__
static Double_t a
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
bool vcmp(const std::vector< T > &a, const std::vector< T > &b)
Compare vectors using cmp predicate.
Definition TauCmp.h:36
bool cmp(const double &a, const double &b)
Definition TauCmp.cxx:34
The namespace of all packages in PhysicsAnalysis/JetTagging.