CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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"
#include "Alignment/Geners/interface/IOIsUnsigned.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 509 of file BoxND.h.

References alignCSCRings::r.

509  {
510  return !(l == r);
511 }
template<typename Numeric >
bool operator== ( const npstat::BoxND< Numeric > &  l,
const npstat::BoxND< Numeric > &  r 
)

Binary comparison for equality

Definition at line 498 of file BoxND.h.

References mps_fire::i.

498  {
499  const unsigned long dim = l.size();
500  if (dim != r.size())
501  return false;
502  for (unsigned long i = 0; i < dim; ++i)
503  if (l[i] != r[i])
504  return false;
505  return true;
506 }