CMS 3D CMS Logo

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

◆ operator!=()

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

Definition at line 285 of file Interval.h.

References cmsLHEtoEOSManager::l, and alignCSCRings::r.

285  {
286  return !(l == r);
287 }

◆ operator==()

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 cmsLHEtoEOSManager::l, and alignCSCRings::r.

280  {
281  return r.min() == l.min() && r.max() == l.max();
282 }