![]() |
![]() |
#include <QGTagger.h>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Descriptions method. More... | |
![]() | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
std::tuple< int, float, float > | calcVariables (const reco::Jet *, edm::Handle< reco::VertexCollection > &, bool) const |
Calculation of axis2, mult and ptD. More... | |
bool | isPackedCandidate (const reco::Jet *jet) const |
Function to tell us if we are using packedCandidates, only test for first candidate. More... | |
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override |
Produce qgLikelihood using {mult, ptD, -log(axis2)}. More... | |
template<typename T > | |
void | putInEvent (const std::string &, const edm::Handle< edm::View< reco::Jet >> &, std::vector< T > *, edm::Event &) const |
Function to put product into event. More... | |
Private Attributes | |
edm::EDGetTokenT< reco::JetCorrector > | jetCorrectorToken |
std::string | jetsLabel |
edm::EDGetTokenT< edm::View< reco::Jet > > | jetsToken |
const bool | produceSyst |
QGLikelihoodCalculator * | qgLikelihood |
edm::EDGetTokenT< double > | rhoToken |
std::string | systLabel |
const bool | useJetCorr |
const bool | useQC |
edm::EDGetTokenT< reco::VertexCollection > | vertexToken |
Additional Inherited Members | |
![]() | |
typedef EDProducerBase | ModuleType |
![]() | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
![]() | |
typedef ProductLabels | Labels |
![]() | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 16 of file QGTagger.h.
|
explicit |
EDProducer class to produced the qgLikelihood values and related variables If the input jets are uncorrected, the jecService should be provided, so jet are corrected on the fly before the algorithm is applied 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 28 of file QGTagger.cc.
References produceSyst, and qgLikelihood.
|
inlineoverride |
Definition at line 19 of file QGTagger.h.
References calcVariables(), fillDescriptions(), isPackedCandidate(), metsig::jet, produce(), putInEvent(), qgLikelihood, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Calculation of axis2, mult and ptD.
Definition at line 138 of file QGTagger.cc.
References a, b, EnergyCorrector::c, allConversions_cfi::d0, delta, reco::deltaPhi(), PVValHelper::dz, reco::LeafCandidate::eta(), reco::Jet::getJetConstituentsQuick(), edm::Ref< C, T, F >::isNonnull(), reco::LeafCandidate::phi(), funct::pow(), jets_cff::ptD, reco::TrackBase::qualityByName(), mathSSE::sqrt(), useQC, extraflags_cff::vtx, and mps_merge::weight.
Referenced by produce(), and ~QGTagger().
|
static |
Descriptions method.
Definition at line 217 of file QGTagger.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), DEFINE_FWK_MODULE, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~QGTagger().
|
private |
Function to tell us if we are using packedCandidates, only test for first candidate.
Definition at line 127 of file QGTagger.cc.
References Exception, and reco::Jet::getJetConstituentsQuick().
Referenced by produce(), and ~QGTagger().
|
overrideprivate |
Produce qgLikelihood using {mult, ptD, -log(axis2)}.
Definition at line 53 of file QGTagger.cc.
References calcVariables(), QGLikelihoodCalculator::computeQGLikelihood(), reco::JetCorrector::correction(), objects.autophobj::float, edm::EventSetup::get(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::Event::getByToken(), isPackedCandidate(), metsig::jet, jetCorrectorToken, fwrapper::jets, jetsLabel, jetsToken, cmsBatch::log, produceSyst, EnergyCorrector::pt, jets_cff::ptD, putInEvent(), qgLikelihood, rho, rhoToken, QGLikelihoodCalculator::systematicSmearing(), systLabel, useJetCorr, particleFlowSuperClusterECAL_cfi::vertexCollection, and vertexToken.
Referenced by ~QGTagger().
|
private |
Function to put product into event.
Definition at line 116 of file QGTagger.cc.
References objects.autophobj::filler, fwrapper::jets, eostools::move(), MillePedeFileConverter_cfg::out, and edm::Event::put().
Referenced by produce(), and ~QGTagger().
|
private |
Definition at line 29 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 32 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 28 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 33 of file QGTagger.h.
Referenced by produce(), and QGTagger().
|
private |
Definition at line 34 of file QGTagger.h.
Referenced by produce(), QGTagger(), and ~QGTagger().
|
private |
Definition at line 31 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 32 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 33 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 33 of file QGTagger.h.
Referenced by calcVariables().
|
private |
Definition at line 30 of file QGTagger.h.
Referenced by produce().