#include <QGLikelihoodCalculator.h>
Public Member Functions | |
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. More... | |
QGLikelihoodCalculator () | |
float | systematicSmearing (edm::ESHandle< QGLikelihoodSystematicsObject > &QGLParamsColl, float pt, float eta, float rho, float qgValue, int qgIndex) const |
~QGLikelihoodCalculator () | |
Private Member Functions | |
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. More... | |
bool | isValidRange (float pt, float rho, float eta, const QGLikelihoodCategory &qgValidRange) const |
Check the valid range of this qg tagger. More... | |
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. More... | |
The QGLikelihoodCalculater calculates the likelihood for a jet It takes information on the valid range of the tool, the binning of the categories, and their PDFs from the QGLikelihoodObject The variables in the vars vector should match with the variables in the QGLikelihoodObject, in which they are identified by the varIndex Authors: andre, a.ca rlo.m arin i@cer n.chtom.c, orne lis@c ern. chcms-q g-wo rking grou p@cer n.ch
Definition at line 13 of file QGLikelihoodCalculator.h.
Definition at line 16 of file QGLikelihoodCalculator.h.
|
inline |
Definition at line 17 of file QGLikelihoodCalculator.h.
References a, b, computeQGLikelihood(), data, PVValHelper::eta, findEntry(), isValidRange(), SiStripPI::max, min(), EnergyCorrector::pt, smearingFunction(), and systematicSmearing().
float QGLikelihoodCalculator::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 at line 8 of file QGLikelihoodCalculator.cc.
References QGLikelihoodObject::data, findEntry(), callgraph::G, isValidRange(), class-composition::Q, and QGLikelihoodObject::qgValidRange.
Referenced by QGTagger::produce(), and ~QGLikelihoodCalculator().
|
private |
Find matching entry in vector for a given eta, pt, rho, qgIndex and varIndex.
Definition at line 34 of file QGLikelihoodCalculator.cc.
References QGLikelihoodParameters::Eta, QGLikelihoodParameters::Pt, EnergyCorrector::pt, QGLikelihoodParameters::QGIndex, QGLikelihoodParameters::Rho, and QGLikelihoodParameters::VarIndex.
Referenced by computeQGLikelihood(), and ~QGLikelihoodCalculator().
|
private |
Check the valid range of this qg tagger.
Definition at line 56 of file QGLikelihoodCalculator.cc.
References QGLikelihoodCategory::EtaMax, QGLikelihoodCategory::EtaMin, QGLikelihoodCategory::PtMax, QGLikelihoodCategory::PtMin, QGLikelihoodCategory::RhoMax, and QGLikelihoodCategory::RhoMin.
Referenced by computeQGLikelihood(), and ~QGLikelihoodCalculator().
|
private |
Return the smeared qgLikelihood value, given input x0 and parameters a, b, min and max.
Definition at line 68 of file QGLikelihoodCalculator.cc.
References min(), and globals_cff::x1.
Referenced by systematicSmearing(), and ~QGLikelihoodCalculator().
float QGLikelihoodCalculator::systematicSmearing | ( | edm::ESHandle< QGLikelihoodSystematicsObject > & | QGLParamsColl, |
float | pt, | ||
float | eta, | ||
float | rho, | ||
float | qgValue, | ||
int | qgIndex | ||
) | const |
Definition at line 81 of file QGLikelihoodCalculator.cc.
References QGLikelihoodSystematicsObject::data, QGLikelihoodParameters::Eta, QGLikelihoodParameters::Pt, EnergyCorrector::pt, QGLikelihoodParameters::QGIndex, QGLikelihoodParameters::Rho, smearingFunction(), and QGLikelihoodParameters::VarIndex.
Referenced by QGTagger::produce(), and ~QGLikelihoodCalculator().