CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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) 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 }
60 
61 #endif
Parameters structure.
QGLikelihoodCategory category
QGLikelihoodCategory qgValidRange
PhysicsTools::Calibration::HistogramF Histogram
QGLikelihoodObject containing valid range and entries with category, histogram and mean...
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
Category structure: ranges associated with QGLikelihood histograms.
#define COND_SERIALIZABLE
Definition: Serializable.h:37
std::vector< Entry > data
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.