#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 15 of file QGLikelihoodCalculator.h.
|
inline |
Definition at line 16 of file QGLikelihoodCalculator.h.
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, PVValHelper::eta, findEntry(), callgraph::G, isValidRange(), DiDispStaMuonMonitor_cfi::pt, class-composition::Q, 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 36 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 63 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 83 of file QGLikelihoodCalculator.cc.
References a, b, SiStripPI::max, min(), and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by systematicSmearing().
float QGLikelihoodCalculator::systematicSmearing | ( | edm::ESHandle< QGLikelihoodSystematicsObject > & | QGLParamsColl, |
float | pt, | ||
float | eta, | ||
float | rho, | ||
float | qgValue, | ||
int | qgIndex | ||
) | const |
Definition at line 100 of file QGLikelihoodCalculator.cc.
References QGLikelihoodSystematicsObject::data, PVValHelper::eta, hydjet2DefaultParameters_cff::myParameters, DiDispStaMuonMonitor_cfi::pt, and smearingFunction().
Referenced by QGTagger::produce().