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
QGLikelihoodCalculator::~QGLikelihoodCalculator
~QGLikelihoodCalculator()
Definition: QGLikelihoodCalculator.h:16
QGLikelihoodCalculator::QGLikelihoodCalculator
QGLikelihoodCalculator()
Definition: QGLikelihoodCalculator.h:15
ESHandle.h
QGLikelihoodCalculator::systematicSmearing
float systematicSmearing(edm::ESHandle< QGLikelihoodSystematicsObject > &QGLParamsColl, float pt, float eta, float rho, float qgValue, int qgIndex) const
Definition: QGLikelihoodCalculator.cc:100
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
min
T min(T a, T b)
Definition: MathUtil.h:58
QGLikelihoodCalculator::isValidRange
bool isValidRange(float pt, float rho, float eta, const QGLikelihoodCategory &qgValidRange) const
Check the valid range of this qg tagger.
Definition: QGLikelihoodCalculator.cc:63
QGLikelihoodObject::Entry
Definition: QGLikelihoodObject.h:25
vars
vars
Definition: DeepTauId.cc:158
PVValHelper::eta
Definition: PVValidationHelpers.h:69
edm::ESHandle
Definition: DTSurvey.h:22
b
double b
Definition: hdecay.h:118
QGLikelihoodCalculator::computeQGLikelihood
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.
Definition: QGLikelihoodCalculator.cc:8
QGLikelihoodCategory
Category structure: ranges associated with QGLikelihood histograms.
Definition: QGLikelihoodObject.h:9
a
double a
Definition: hdecay.h:119
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
QGLikelihoodCalculator::findEntry
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.
Definition: QGLikelihoodCalculator.cc:36
QGLikelihoodObject.h
QGLikelihoodCalculator
Definition: QGLikelihoodCalculator.py:1
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
QGLikelihoodCalculator::smearingFunction
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.
Definition: QGLikelihoodCalculator.cc:83