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.

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 }

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

QGLikelihoodParameters::Pt
float Pt
Definition: QGLikelihoodObject.h:17
QGLikelihoodParameters::Eta
float Eta
Definition: QGLikelihoodObject.h:17
QGLikelihoodCategory::PtMin
float PtMin
Definition: QGLikelihoodObject.h:10
QGLikelihoodCategory::EtaMin
float EtaMin
Definition: QGLikelihoodObject.h:10
QGLikelihoodParameters::QGIndex
int QGIndex
Definition: QGLikelihoodObject.h:18
QGLikelihoodCategory::RhoMax
float RhoMax
Definition: QGLikelihoodObject.h:10
QGLikelihoodCategory::QGIndex
int QGIndex
Definition: QGLikelihoodObject.h:11
QGLikelihoodCategory::RhoMin
float RhoMin
Definition: QGLikelihoodObject.h:10
QGLikelihoodCategory::EtaMax
float EtaMax
Definition: QGLikelihoodObject.h:10
QGLikelihoodParameters::Rho
float Rho
Definition: QGLikelihoodObject.h:17
QGLikelihoodParameters::VarIndex
int VarIndex
Definition: QGLikelihoodObject.h:18
QGLikelihoodCategory::VarIndex
int VarIndex
Definition: QGLikelihoodObject.h:11
QGLikelihoodCategory::PtMax
float PtMax
Definition: QGLikelihoodObject.h:10