CMS 3D CMS Logo

Classes | Namespaces
Interval.h File Reference
#include "JetMETCorrections/InterpolationTables/interface/NpstatException.h"
#include <algorithm>
#include <cmath>
#include <cassert>

Go to the source code of this file.

Classes

class  npstat::Interval< Numeric >
 

Namespaces

 npstat
 

Functions

template<typename Numeric >
bool operator== (const npstat::Interval< Numeric > &l, const npstat::Interval< Numeric > &r)
 
template<typename Numeric >
bool operator!= (const npstat::Interval< Numeric > &l, const npstat::Interval< Numeric > &r)
 

Function Documentation

template<typename Numeric >
bool operator!= ( const npstat::Interval< Numeric > &  l,
const npstat::Interval< Numeric > &  r 
)

Definition at line 320 of file Interval.h.

References alignCSCRings::r.

321 {
322  return !(l == r);
323 }
template<typename Numeric >
bool operator== ( const npstat::Interval< Numeric > &  l,
const npstat::Interval< Numeric > &  r 
)

Binary comparison for equality

Definition at line 314 of file Interval.h.

References npstat::Interval< Numeric >::max(), and npstat::Interval< Numeric >::min().

315 {
316  return r.min() == l.min() && r.max() == l.max();
317 }
const Numeric max() const
Definition: Interval.h:94
const Numeric min() const
Definition: Interval.h:91