CMS 3D CMS Logo

ComplexComparesFalse.h
Go to the documentation of this file.
1 #ifndef NPSTAT_COMPLEXCOMPARESFALSE_HH_
2 #define NPSTAT_COMPLEXCOMPARESFALSE_HH_
3 
14 #include <complex>
15 
16 namespace npstat {
22  template <class T>
24  inline static bool less(const T& l, const T& r) { return l < r; }
25 
26  inline static bool more(const T& l, const T& r) { return l > r; }
27  };
28 
29  template <class T>
30  struct ComplexComparesFalse<std::complex<T> > {
31  inline static bool less(const std::complex<T>&, const std::complex<T>&) { return false; }
32 
33  inline static bool more(const std::complex<T>&, const std::complex<T>&) { return false; }
34  };
35 } // namespace npstat
36 
37 #endif // NPSTAT_COMPLEXCOMPARESFALSE_HH_
npstat::ComplexComparesFalse::less
static bool less(const T &l, const T &r)
Definition: ComplexComparesFalse.h:24
npstat
Definition: AbsArrayProjector.h:14
npstat::ComplexComparesFalse
Definition: ComplexComparesFalse.h:23
npstat::ComplexComparesFalse< std::complex< T > >::more
static bool more(const std::complex< T > &, const std::complex< T > &)
Definition: ComplexComparesFalse.h:33
npstat::ComplexComparesFalse< std::complex< T > >::less
static bool less(const std::complex< T > &, const std::complex< T > &)
Definition: ComplexComparesFalse.h:31
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
alignCSCRings.r
r
Definition: alignCSCRings.py:93
std
Definition: JetResolutionObject.h:76
T
long double T
Definition: Basic3DVectorLD.h:48
npstat::ComplexComparesFalse::more
static bool more(const T &l, const T &r)
Definition: ComplexComparesFalse.h:26