CMS 3D CMS Logo

Classes | Functions
QGLikelihoodObject.h File Reference
#include "CondFormats/PhysicsToolsObjects/interface/Histogram.h"
#include "CondFormats/Serialization/interface/Serializable.h"
#include <vector>

Go to the source code of this file.

Classes

struct  QGLikelihoodSystematicsObject::Entry
 
struct  QGLikelihoodObject::Entry
 
struct  QGLikelihoodCategory
 Category structure: ranges associated with QGLikelihood histograms. More...
 
struct  QGLikelihoodObject
 QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used anymore, only for backward backward compatibility with older DB constructs) More...
 
struct  QGLikelihoodParameters
 Parameters structure. More...
 
struct  QGLikelihoodSystematicsObject
 QGLikelihoodSystematicsObject containing the parameters for the systematic smearing. More...
 

Functions

bool operator== (const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
 Test if parameters are compatible with category. More...
 

Function Documentation

bool operator== ( const QGLikelihoodParameters lhs,
const QGLikelihoodCategory rhs 
)
inline

Test if parameters are compatible with category.

Definition at line 49 of file QGLikelihoodObject.h.

References QGLikelihoodParameters::Eta, QGLikelihoodCategory::EtaMax, QGLikelihoodCategory::EtaMin, QGLikelihoodParameters::Pt, QGLikelihoodCategory::PtMax, QGLikelihoodCategory::PtMin, QGLikelihoodCategory::QGIndex, QGLikelihoodParameters::QGIndex, QGLikelihoodParameters::Rho, QGLikelihoodCategory::RhoMax, QGLikelihoodCategory::RhoMin, QGLikelihoodCategory::VarIndex, and QGLikelihoodParameters::VarIndex.

Referenced by mathSSE::as3D(), lhef::LHERunInfo::getHEPRUP(), SimpleL1MuGMTCand::getMomentum(), NAEquationSolver< Function >::operator!=(), SeedingLayerSetsHits::SeedingLayerSet::const_iterator::operator!=(), ihd::const_iterator< ValueType, HitSetType >::operator!=(), IntermediateHitTriplets::RegionLayerSets::const_iterator::operator!=(), SeedingLayerSetsHits::const_iterator::operator!=(), and cond::persistency::QueryIterator< Types >::operator!=().

49  {
50  if(lhs.QGIndex != rhs.QGIndex) return false;
51  if(lhs.VarIndex != rhs.VarIndex) return false;
52  if(lhs.Eta < rhs.EtaMin) return false;
53  if(lhs.Eta > rhs.EtaMax) return false;
54  if(lhs.Rho < rhs.RhoMin) return false;
55  if(lhs.Rho > rhs.RhoMax) return false;
56  if(lhs.Pt < rhs.PtMin) return false;
57  if(lhs.Pt > rhs.PtMax) return false;
58  return true;
59 }