CMS 3D CMS Logo

Classes | Namespaces | Functions
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

◆ operator!=()

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

Definition at line 509 of file BoxND.h.

509  {
510  return !(l == r);
511 }

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

◆ operator==()

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.

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 }

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

mps_fire.i
i
Definition: mps_fire.py:428
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
alignCSCRings.r
r
Definition: alignCSCRings.py:93