#include <QGLikelihoodCalculator.h>
Public Member Functions | |
float | computeQGLikelihood (edm::ESHandle< QGLikelihoodObject > &QGLParamsColl, float pt, float eta, float rho, std::vector< float > vars) |
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) |
~QGLikelihoodCalculator () | |
Private Member Functions | |
const QGLikelihoodObject::Entry * | findEntry (std::vector< QGLikelihoodObject::Entry > const &data, float eta, float pt, float rho, int qgIndex, int varIndex) |
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) |
Check the valid range of this qg tagger. More... | |
float | smearingFunction (float x0, float a, float b, float min, float max) |
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.
float QGLikelihoodCalculator::computeQGLikelihood | ( | edm::ESHandle< QGLikelihoodObject > & | QGLParamsColl, |
float | pt, | ||
float | eta, | ||
float | rho, | ||
std::vector< float > | vars | ||
) |
Compute likelihood for a jet using the QGLikelihoodObject information and a set of variables.
Definition at line 8 of file QGLikelihoodCalculator.cc.
References findEntry(), callgraph::G, isValidRange(), and class-composition::Q.
Referenced by QGTagger::produce().
|
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().
|
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().
|
private |
Return the smeared qgLikelihood value, given input x0 and parameters a, b, min and max.
Definition at line 68 of file QGLikelihoodCalculator.cc.
Referenced by systematicSmearing().
float QGLikelihoodCalculator::systematicSmearing | ( | edm::ESHandle< QGLikelihoodSystematicsObject > & | QGLParamsColl, |
float | pt, | ||
float | eta, | ||
float | rho, | ||
float | qgValue, | ||
int | qgIndex | ||
) |
Definition at line 81 of file QGLikelihoodCalculator.cc.
References QGLikelihoodParameters::Eta, QGLikelihoodParameters::Pt, EnergyCorrector::pt, QGLikelihoodParameters::QGIndex, QGLikelihoodParameters::Rho, smearingFunction(), and QGLikelihoodParameters::VarIndex.
Referenced by QGTagger::produce().