#include <QGLikelihoodCalculator.h>
Public Member Functions | |
float | computeQGLikelihood (const 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 (const 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 12 of file QGLikelihoodCalculator.h.
Definition at line 14 of file QGLikelihoodCalculator.h.
|
inline |
Definition at line 15 of file QGLikelihoodCalculator.h.
float QGLikelihoodCalculator::computeQGLikelihood | ( | const 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 7 of file QGLikelihoodCalculator.cc.
References QGLikelihoodObject::data, findEntry(), cmssw_cycle_finder::G, isValidRange(), and QGLikelihoodObject::qgValidRange.
Referenced by QGTagger::produce().
|
private |
Find matching entry in vector for a given eta, pt, rho, qgIndex and varIndex.
Definition at line 35 of file QGLikelihoodCalculator.cc.
References QGLikelihoodParameters::Eta, QGLikelihoodParameters::Pt, DiDispStaMuonMonitor_cfi::pt, QGLikelihoodParameters::QGIndex, QGLikelihoodParameters::Rho, and QGLikelihoodParameters::VarIndex.
Referenced by computeQGLikelihood().
|
private |
Check the valid range of this qg tagger.
Definition at line 62 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 82 of file QGLikelihoodCalculator.cc.
References min().
Referenced by systematicSmearing().
float QGLikelihoodCalculator::systematicSmearing | ( | const QGLikelihoodSystematicsObject & | QGLParamsColl, |
float | pt, | ||
float | eta, | ||
float | rho, | ||
float | qgValue, | ||
int | qgIndex | ||
) | const |
Definition at line 99 of file QGLikelihoodCalculator.cc.
References QGLikelihoodSystematicsObject::data, QGLikelihoodParameters::Eta, QGLikelihoodParameters::Pt, DiDispStaMuonMonitor_cfi::pt, QGLikelihoodParameters::QGIndex, QGLikelihoodParameters::Rho, smearingFunction(), and QGLikelihoodParameters::VarIndex.
Referenced by QGTagger::produce().