/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoJets/JetAlgorithms/interface/QGLikelihoodCalculator.h
37 строк
2 KB
Shahzad Malik Muzaffar
[RECONSTRUCTION] Changes suggested by new llvm18 clang-format
05 сен 2024, 17:05
05 сен 2024, 17:05
a09aaae
Код
Авторство
О чём код?
#ifndef JetAlgorithms_QGLikelihoodCalculator_h #define JetAlgorithms_QGLikelihoodCalculator_h #include "CondFormats/JetMETObjects/interface/QGLikelihoodObject.h" /** * 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: andrea.carlo.marini@cern.ch, tom.cornelis@cern.ch, cms-qg-workinggroup@cern.ch */ class QGLikelihoodCalculator { public: QGLikelihoodCalculator() {} ~QGLikelihoodCalculator() {} float computeQGLikelihood( const QGLikelihoodObject &QGLParamsColl, float pt, float eta, float rho, std::vector<float> vars) const; float systematicSmearing(const QGLikelihoodSystematicsObject &QGLParamsColl, float pt, float eta, float rho, float qgValue, int qgIndex) const; private: const QGLikelihoodObject::Entry *findEntry(std::vector<QGLikelihoodObject::Entry> const &data, float eta, float pt, float rho, int qgIndex, int varIndex) const; bool isValidRange(float pt, float rho, float eta, const QGLikelihoodCategory &qgValidRange) const; float smearingFunction(float x0, float a, float b, float min, float max) const; }; #endif