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 
15  public:
18 
19  float computeQGLikelihood(edm::ESHandle<QGLikelihoodObject> &QGLParamsColl, float pt, float eta, float rho, std::vector<float> vars) const;
20  float systematicSmearing(edm::ESHandle<QGLikelihoodSystematicsObject> &QGLParamsColl, float pt, float eta, float rho, float qgValue, int qgIndex) const;
21 
22  private:
23  const QGLikelihoodObject::Entry* findEntry(std::vector<QGLikelihoodObject::Entry> const &data, float eta, float pt, float rho, int qgIndex, int varIndex) const;
24  bool isValidRange(float pt, float rho, float eta, const QGLikelihoodCategory &qgValidRange) const;
25  float smearingFunction(float x0, float a ,float b,float min,float max) const;
26 };
27 
28 #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:120
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
double a
Definition: hdecay.h:121