#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 > | calculateCHSEnergies (edm::Ptr< pat::Jet > const &jet, edm::View< T > const &cands) 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 54 of file BetaStarVarProducer.cc.
References BetaStarVarProducer< T >::calculateCHSEnergies(), egammaForCoreTracking_cff::cands, BetaStarVarProducer< T >::fillDescriptions(), metsig::jet, and BetaStarVarProducer< T >::produce().
|
private |
Definition at line 108 of file BetaStarVarProducer.cc.
References pat::Jet::correctedP4(), pat::Jet::daughterPtrVector(), reco::deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, pat::PackedCandidate::energy(), spr::find(), and BetaStarVarProducer< T >::maxDR_.
Referenced by BetaStarVarProducer< T >::produce(), and BetaStarVarProducer< T >::~BetaStarVarProducer().
|
static |
Definition at line 159 of file BetaStarVarProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by BetaStarVarProducer< T >::~BetaStarVarProducer().
|
overrideprivate |
Definition at line 70 of file BetaStarVarProducer.cc.
References BetaStarVarProducer< T >::calculateCHSEnergies(), edm::helper::Filler< Map >::fill(), edm::Event::getByToken(), edm::helper::Filler< Map >::insert(), metsig::jet, eostools::move(), edm::Event::put(), 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 65 of file BetaStarVarProducer.cc.
Referenced by BetaStarVarProducer< T >::calculateCHSEnergies().
|
private |
Definition at line 63 of file BetaStarVarProducer.cc.
Referenced by BetaStarVarProducer< T >::produce().
|
private |
Definition at line 64 of file BetaStarVarProducer.cc.
Referenced by BetaStarVarProducer< T >::produce().