CMS 3D CMS Logo

QGLikelihoodObject.h
Go to the documentation of this file.
1 #ifndef QGLikelihoodObject_h
2 #define QGLikelihoodObject_h
3 
6 #include <vector>
7 
13 };
14 
17  float Rho, Pt, Eta;
19 };
20 
24 
25  struct Entry {
28  float mean;
30  };
31 
33  std::vector<Entry> data;
35 };
36 
39  struct Entry {
41  float a, b, lmin, lmax;
43  };
44  std::vector<Entry> data;
46 };
47 
49 inline bool operator==(const QGLikelihoodParameters& lhs, const QGLikelihoodCategory& rhs) {
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 }
68 
69 #endif
QGLikelihoodParameters::Pt
float Pt
Definition: QGLikelihoodObject.h:17
QGLikelihoodObject::Histogram
PhysicsTools::Calibration::HistogramF Histogram
Definition: QGLikelihoodObject.h:23
QGLikelihoodObject::data
std::vector< Entry > data
Definition: QGLikelihoodObject.h:33
QGLikelihoodParameters::Eta
float Eta
Definition: QGLikelihoodObject.h:17
QGLikelihoodObject::Entry::histogram
Histogram histogram
Definition: QGLikelihoodObject.h:27
QGLikelihoodObject::Entry::category
QGLikelihoodCategory category
Definition: QGLikelihoodObject.h:26
QGLikelihoodCategory::PtMin
float PtMin
Definition: QGLikelihoodObject.h:10
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
QGLikelihoodSystematicsObject::Entry
Definition: QGLikelihoodObject.h:39
QGLikelihoodSystematicsObject::Entry::lmax
float lmax
Definition: QGLikelihoodObject.h:41
QGLikelihoodObject::Entry
Definition: QGLikelihoodObject.h:25
QGLikelihoodSystematicsObject::Entry::b
float b
Definition: QGLikelihoodObject.h:41
QGLikelihoodSystematicsObject::Entry::a
float a
Definition: QGLikelihoodObject.h:41
QGLikelihoodCategory::EtaMin
float EtaMin
Definition: QGLikelihoodObject.h:10
QGLikelihoodParameters::QGIndex
int QGIndex
Definition: QGLikelihoodObject.h:18
Histogram.h
QGLikelihoodSystematicsObject
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.
Definition: QGLikelihoodObject.h:38
QGLikelihoodSystematicsObject::Entry::lmin
float lmin
Definition: QGLikelihoodObject.h:41
QGLikelihoodSystematicsObject::data
std::vector< Entry > data
Definition: QGLikelihoodObject.h:44
QGLikelihoodCategory
Category structure: ranges associated with QGLikelihood histograms.
Definition: QGLikelihoodObject.h:9
operator==
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
Definition: QGLikelihoodObject.h:49
QGLikelihoodCategory::RhoMax
float RhoMax
Definition: QGLikelihoodObject.h:10
QGLikelihoodCategory::QGIndex
int QGIndex
Definition: QGLikelihoodObject.h:11
Serializable.h
QGLikelihoodObject::qgValidRange
QGLikelihoodCategory qgValidRange
Definition: QGLikelihoodObject.h:32
PhysicsTools::Calibration::Histogram
Definition: Histogram.h:35
QGLikelihoodObject::Entry::mean
float mean
Definition: QGLikelihoodObject.h:28
QGLikelihoodSystematicsObject::Entry::systCategory
QGLikelihoodCategory systCategory
Definition: QGLikelihoodObject.h:40
QGLikelihoodCategory::RhoMin
float RhoMin
Definition: QGLikelihoodObject.h:10
QGLikelihoodParameters
Parameters structure.
Definition: QGLikelihoodObject.h:16
QGLikelihoodObject
QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used a...
Definition: QGLikelihoodObject.h:22
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