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

◆ operator==()

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 cond::persistency::RunInfoProxy::Iterator::operator!=(), cond::persistency::GTProxy::Iterator::operator!=(), and cond::persistency::IOVArray::Iterator::operator!=().

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