CMS 3D CMS Logo

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

Template to represent rectangles, boxes, and hyperboxes. More...

#include <vector>
#include "Alignment/Geners/interface/ClassId.hh"
#include "JetMETCorrections/InterpolationTables/interface/Interval.h"
#include <limits>
#include <cassert>
#include "JetMETCorrections/InterpolationTables/interface/NpstatException.h"
#include "Alignment/Geners/interface/GenericIO.hh"

Go to the source code of this file.

Classes

struct  npstat::BoxND< Numeric >
 

Namespaces

 npstat
 

Functions

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

Detailed Description

Template to represent rectangles, boxes, and hyperboxes.

Author: I. Volobouev

March 2010

Definition in file BoxND.h.

Function Documentation

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

Definition at line 555 of file BoxND.h.

References alignCSCRings::r.

556 {
557  return !(l == r);
558 }
template<typename Numeric >
bool operator== ( const npstat::BoxND< Numeric > &  l,
const npstat::BoxND< Numeric > &  r 
)

Binary comparison for equality

Definition at line 543 of file BoxND.h.

References i.

544 {
545  const unsigned long dim = l.size();
546  if (dim != r.size())
547  return false;
548  for (unsigned long i=0; i<dim; ++i)
549  if (l[i] != r[i])
550  return false;
551  return true;
552 }
int i
Definition: DBlmapReader.cc:9