#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, PVValHelper::eta, findEntry(), cmssw_cycle_finder::G, isValidRange(), DiDispStaMuonMonitor_cfi::pt, 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 data, PVValHelper::eta, hydjet2DefaultParameters_cff::myParameters, and DiDispStaMuonMonitor_cfi::pt.
Referenced by computeQGLikelihood().
|
private |
Check the valid range of this qg tagger.
Definition at line 62 of file QGLikelihoodCalculator.cc.
References PVValHelper::eta, QGLikelihoodCategory::EtaMax, QGLikelihoodCategory::EtaMin, DiDispStaMuonMonitor_cfi::pt, 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 a, b, SiStripPI::max, SiStripPI::min, nnet::tanh(), x, and testProducerWithPsetDescEmpty_cfi::x1.
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, PVValHelper::eta, hydjet2DefaultParameters_cff::myParameters, DiDispStaMuonMonitor_cfi::pt, and smearingFunction().
Referenced by QGTagger::produce().