CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces
Interval.h File Reference

Template to represent intervals in one dimension. More...

#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)
 

Detailed Description

Template to represent intervals in one dimension.

Author: I. Volobouev

March 2010

Definition in file Interval.h.

Function Documentation

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

Definition at line 285 of file Interval.h.

References alignCSCRings::r.

285  {
286  return !(l == r);
287 }
template<typename Numeric >
bool operator== ( const npstat::Interval< Numeric > &  l,
const npstat::Interval< Numeric > &  r 
)

Binary comparison for equality

Definition at line 280 of file Interval.h.

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

280  {
281  return r.min() == l.min() && r.max() == l.max();
282 }
const Numeric max() const
Definition: Interval.h:81
const Numeric min() const
Definition: Interval.h:78