#include <PhysicsTools/NanoAOD/plugins/BetaStarVarProducer.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
std::tuple< float, float, float, float > | calculateCHSEnergies (edm::Ptr< pat::Jet > const &jet, double chefrompv0) const |
void | fillValueMaps (std::string valueName, const std::vector< float > &values, edm::Handle< edm::View< pat::Jet >> &srcJet, edm::Event &iEvent) const |
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override |
Private Attributes | |
double | maxDR_ |
edm::EDGetTokenT< edm::View< pat::Jet > > | srcJet_ |
edm::EDGetTokenT< edm::View< T > > | srcPF_ |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
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 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) |
Description: This produces value maps to store CHS-related variables for JERC. This includes the charged hadrons associated to CHS jets, and those associated to PU that are within the CHS jet.
Implementation: This uses a ValueMap producer functionality, and loops over the input candidates (usually PackedCandidates) that are associated to each jet, counting the candidates associated to the PV and those not.
Definition at line 44 of file BetaStarVarProducer.cc.
|
inlineexplicit |
Definition at line 46 of file BetaStarVarProducer.cc.
|
inlineoverride |
Definition at line 55 of file BetaStarVarProducer.cc.
References BetaStarVarProducer< T >::calculateCHSEnergies(), BetaStarVarProducer< T >::fillDescriptions(), BetaStarVarProducer< T >::fillValueMaps(), iEvent, metsig::jet, BetaStarVarProducer< T >::produce(), electrons_cff::srcJet, AlCaHLTBitMon_QueryRunRegistry::string, and MuonErrorMatrixValues_cff::values.
|
private |
Definition at line 136 of file BetaStarVarProducer.cc.
References pat::Jet::correctedP4(), pat::Jet::daughter(), pat::PackedCandidate::energy(), and pat::Jet::numberOfDaughters().
Referenced by BetaStarVarProducer< T >::produce(), and BetaStarVarProducer< T >::~BetaStarVarProducer().
|
static |
Definition at line 168 of file BetaStarVarProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by BetaStarVarProducer< T >::~BetaStarVarProducer().
|
private |
Definition at line 124 of file BetaStarVarProducer.cc.
References edm::helper::Filler< Map >::fill(), edm::helper::Filler< Map >::insert(), eostools::move(), edm::Event::put(), and electrons_cff::srcJet.
Referenced by BetaStarVarProducer< T >::produce(), and BetaStarVarProducer< T >::~BetaStarVarProducer().
|
overrideprivate |
Definition at line 74 of file BetaStarVarProducer.cc.
References BetaStarVarProducer< T >::calculateCHSEnergies(), reco::deltaR(), allElectronIsolations_cfi::dRMin, BetaStarVarProducer< T >::fillValueMaps(), edm::Event::getByToken(), metsig::jet, BetaStarVarProducer< T >::maxDR_, or, electrons_cff::srcJet, BetaStarVarProducer< T >::srcJet_, jets_cff::srcPF, BetaStarVarProducer< T >::srcPF_, and create_public_pileup_plots::vals.
Referenced by BetaStarVarProducer< T >::~BetaStarVarProducer().
|
private |
Definition at line 70 of file BetaStarVarProducer.cc.
Referenced by BetaStarVarProducer< T >::produce().
|
private |
Definition at line 68 of file BetaStarVarProducer.cc.
Referenced by BetaStarVarProducer< T >::produce().
|
private |
Definition at line 69 of file BetaStarVarProducer.cc.
Referenced by BetaStarVarProducer< T >::produce().