CMS 3D CMS Logo

QGLikelihoodCalculator.h
Go to the documentation of this file.
1 #ifndef JetAlgorithms_QGLikelihoodCalculator_h
2 #define JetAlgorithms_QGLikelihoodCalculator_h
3 
6 
14 public:
17 
18  float computeQGLikelihood(
19  edm::ESHandle<QGLikelihoodObject> &QGLParamsColl, float pt, float eta, float rho, std::vector<float> vars) const;
21  float pt,
22  float eta,
23  float rho,
24  float qgValue,
25  int qgIndex) const;
26 
27 private:
28  const QGLikelihoodObject::Entry *findEntry(std::vector<QGLikelihoodObject::Entry> const &data,
29  float eta,
30  float pt,
31  float rho,
32  int qgIndex,
33  int varIndex) const;
34  bool isValidRange(float pt, float rho, float eta, const QGLikelihoodCategory &qgValidRange) const;
35  float smearingFunction(float x0, float a, float b, float min, float max) const;
36 };
37 
38 #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(edm::ESHandle< QGLikelihoodSystematicsObject > &QGLParamsColl, float pt, float eta, float rho, float qgValue, int qgIndex) const
float computeQGLikelihood(edm::ESHandle< 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...
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.
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:158