CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
QGLikelihoodCalculator.h
Go to the documentation of this file.
1 #ifndef JetAlgorithms_QGLikelihoodCalculator_h
2 #define JetAlgorithms_QGLikelihoodCalculator_h
3 
5 
13 public:
16 
17  float computeQGLikelihood(
18  const QGLikelihoodObject &QGLParamsColl, float pt, float eta, float rho, std::vector<float> vars) const;
19  float systematicSmearing(const QGLikelihoodSystematicsObject &QGLParamsColl,
20  float pt,
21  float eta,
22  float rho,
23  float qgValue,
24  int qgIndex) const;
25 
26 private:
27  const QGLikelihoodObject::Entry *findEntry(std::vector<QGLikelihoodObject::Entry> const &data,
28  float eta,
29  float pt,
30  float rho,
31  int qgIndex,
32  int varIndex) const;
33  bool isValidRange(float pt, float rho, float eta, const QGLikelihoodCategory &qgValidRange) const;
34  float smearingFunction(float x0, float a, float b, float min, float max) const;
35 };
36 
37 #endif
bool isValidRange(float pt, float rho, float eta, const QGLikelihoodCategory &qgValidRange) const
Check the valid range of this qg tagger.
float smearingFunction(float x0, float a, float b, float min, float max) const
Return the smeared qgLikelihood value, given input x0 and parameters a, b, min and max...
float systematicSmearing(const QGLikelihoodSystematicsObject &QGLParamsColl, float pt, float eta, float rho, float qgValue, int qgIndex) const
QGLikelihoodObject containing valid range and entries with category and histogram (mean is not used a...
T min(T a, T b)
Definition: MathUtil.h:58
Category structure: ranges associated with QGLikelihood histograms.
const QGLikelihoodObject::Entry * findEntry(std::vector< QGLikelihoodObject::Entry > const &data, float eta, float pt, float rho, int qgIndex, int varIndex) const
Find matching entry in vector for a given eta, pt, rho, qgIndex and varIndex.
float computeQGLikelihood(const QGLikelihoodObject &QGLParamsColl, float pt, float eta, float rho, std::vector< float > vars) const
Compute likelihood for a jet using the QGLikelihoodObject information and a set of variables...
double b
Definition: hdecay.h:118
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
double a
Definition: hdecay.h:119
vars
Definition: DeepTauId.cc:164
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.