#include <QGTagger.h>
Public Member Functions | |
QGTagger (const edm::ParameterSet &) | |
~QGTagger () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Descriptions method. More... | |
Static Public Member Functions inherited from edm::EDProducer | |
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 > &) |
Calculation of axis2, mult and ptD. More... | |
bool | isPackedCandidate (const reco::Candidate *candidate) |
Function to tell us if we are using packedCandidates, only test for first candidate. More... | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Produce qgLikelihood using {mult, ptD, -log(axis2)}. More... | |
template<typename T > | |
void | putInEvent (std::string, const edm::Handle< edm::View< reco::Jet >> &, std::vector< T > *, edm::Event &) |
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 |
bool | weAreUsingPackedCandidates |
bool | weStillNeedToCheckJetCandidates |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
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 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 14 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 29 of file QGTagger.cc.
References produceSyst, qgLikelihood, and weStillNeedToCheckJetCandidates.
|
inline |
|
private |
Calculation of axis2, mult and ptD.
Definition at line 135 of file QGTagger.cc.
References a, b, EnergyCorrector::c, delta, reco::deltaPhi(), reco::LeafCandidate::eta(), reco::Jet::getJetConstituentsQuick(), edm::Ref< C, T, F >::isNonnull(), isPackedCandidate(), VarParsing::mult, reco::LeafCandidate::phi(), funct::pow(), reco::TrackBase::qualityByName(), mathSSE::sqrt(), useQC, and puppiForMET_cff::weight.
Referenced by produce().
|
static |
Descriptions method.
Definition at line 214 of file QGTagger.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_25ns14e33_v1_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Function to tell us if we are using packedCandidates, only test for first candidate.
Definition at line 123 of file QGTagger.cc.
References Exception, weAreUsingPackedCandidates, and weStillNeedToCheckJetCandidates.
Referenced by calcVariables().
|
privatevirtual |
Produce qgLikelihood using {mult, ptD, -log(axis2)}.
Implements edm::EDProducer.
Definition at line 55 of file QGTagger.cc.
References calcVariables(), QGLikelihoodCalculator::computeQGLikelihood(), edm::EventSetup::get(), edm::eventsetup::EventSetupRecord::get(), edm::Event::getByToken(), metsig::jet, jetCorrectorToken, fwrapper::jets, jetsLabel, jetsToken, cmsBatch::log, VarParsing::mult, produceSyst, EnergyCorrector::pt, putInEvent(), qgLikelihood, rho, rhoToken, QGLikelihoodCalculator::systematicSmearing(), systLabel, useJetCorr, GoodVertex_cfg::vertexCollection, and vertexToken.
|
private |
Function to put product into event.
Definition at line 112 of file QGTagger.cc.
References edm::helper::Filler< Map >::fill(), edm::helper::Filler< Map >::insert(), fwrapper::jets, dbtoconf::out, and edm::Event::put().
Referenced by produce().
|
private |
Definition at line 27 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 30 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 26 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 31 of file QGTagger.h.
Referenced by produce(), and QGTagger().
|
private |
Definition at line 33 of file QGTagger.h.
Referenced by produce(), QGTagger(), and ~QGTagger().
|
private |
Definition at line 29 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 30 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 31 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 31 of file QGTagger.h.
Referenced by calcVariables().
|
private |
Definition at line 28 of file QGTagger.h.
Referenced by produce().
|
private |
Definition at line 32 of file QGTagger.h.
Referenced by isPackedCandidate().
|
private |
Definition at line 32 of file QGTagger.h.
Referenced by isPackedCandidate(), and QGTagger().