Produces a ValueMap between TauJetCorrFactors and the originating reco taus. More...
#include "PhysicsTools/PatAlgos/interface/TauJetCorrFactorsProducer.h"
Classes | |
struct | payloadMappingType |
Public Types | |
typedef edm::ValueMap < pat::TauJetCorrFactors > | JetCorrFactorsMap |
value map for JetCorrFactors (to be written into the event) More... | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
everything that needs to be done per event More... | |
TauJetCorrFactorsProducer (const edm::ParameterSet &) | |
default constructor More... | |
~TauJetCorrFactorsProducer () | |
default destructor More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
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 () |
Private Types | |
typedef std::vector< int > | vint |
mapping of reconstructed tau decay modes to payloads More... | |
typedef std::vector< std::string > | vstring |
jec levels More... | |
Private Member Functions | |
float | evaluate (edm::View< reco::BaseTau >::const_iterator &, boost::shared_ptr< FactorizedJetCorrector > &, int) |
evaluate jet correction factor up to a given level More... | |
std::vector < JetCorrectorParameters > | params (const JetCorrectorParametersCollection &, const std::vector< std::string > &) const |
return the jec parameters as input to the FactorizedJetCorrector for different flavors More... | |
Private Attributes | |
std::string | defaultPayload_ |
vstring | levels_ |
std::string | moduleLabel_ |
python label of this TauJetCorrFactorsProducer module More... | |
std::vector< payloadMappingType > | payloadMappings_ |
edm::EDGetTokenT< edm::View < reco::BaseTau > > | srcToken_ |
input tau-jet collection More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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) |
Produces a ValueMap between TauJetCorrFactors and the originating reco taus.
The TauJetCorrFactorsProducer produces a set of tau-jet energy correction factors, defined in the class pat::TauJetCorrFactors. This vector is linked to the originating reco taus through an edm::ValueMap. The initializing parameters of the module can be found in the recoLayer1/tauJetCorrFactors_cfi.py of the PatAlgos package. In the standard PAT workflow the module has to be run before the creation of the pat::Tau. The edm::ValueMap will then be embedded into the pat::Tau.
Jets corrected up to a given correction level can then be accessed via the pat::Tau member function correctedJet. For more details have a look into the class description of the pat::Tau.
Definition at line 38 of file TauJetCorrFactorsProducer.h.
value map for JetCorrFactors (to be written into the event)
Definition at line 42 of file TauJetCorrFactorsProducer.h.
|
private |
mapping of reconstructed tau decay modes to payloads
Definition at line 68 of file TauJetCorrFactorsProducer.h.
|
private |
jec levels
Definition at line 88 of file TauJetCorrFactorsProducer.h.
|
explicit |
default constructor
Definition at line 15 of file TauJetCorrFactorsProducer.cc.
References pat::TauJetCorrFactorsProducer::payloadMappingType::decayModes_, defaultPayload_, edm::ParameterSet::getParameter(), Parameters::parameters, pat::TauJetCorrFactorsProducer::payloadMappingType::payload_, payloadMappings_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
private |
evaluate jet correction factor up to a given level
Definition at line 57 of file TauJetCorrFactorsProducer.cc.
Referenced by produce().
|
private |
return the jec parameters as input to the FactorizedJetCorrector for different flavors
Definition at line 45 of file TauJetCorrFactorsProducer.cc.
References JetCorrectorParametersCollection::push_back().
Referenced by produce().
|
overridevirtual |
everything that needs to be done per event
Implements edm::stream::EDProducerBase.
Definition at line 67 of file TauJetCorrFactorsProducer.cc.
References mvaPFMET_cff::corrector, reco::PFTau::decayMode(), defaultPayload_, evaluate(), edm::helper::Filler< Map >::fill(), edm::EventSetup::get(), edm::Event::getByToken(), customizeTrackingMonitorSeedNumber::idx, edm::helper::Filler< Map >::insert(), patTestJEC_cfi::jec, levels_, moduleLabel_, params(), payloadMappings_, edm::Event::put(), srcToken_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
payload to be used for decay modes not explicitely specified
NOTE: no decay mode reconstruction implemented for CaloTaus so far –> this payload is used for all CaloTaus
Definition at line 85 of file TauJetCorrFactorsProducer.h.
Referenced by produce(), and TauJetCorrFactorsProducer().
|
private |
Definition at line 89 of file TauJetCorrFactorsProducer.h.
Referenced by produce().
|
private |
python label of this TauJetCorrFactorsProducer module
Definition at line 62 of file TauJetCorrFactorsProducer.h.
Referenced by Mixins._TypedParameterizable::insertInto(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), and produce().
|
private |
Definition at line 78 of file TauJetCorrFactorsProducer.h.
Referenced by produce(), and TauJetCorrFactorsProducer().
|
private |
input tau-jet collection
Definition at line 65 of file TauJetCorrFactorsProducer.h.
Referenced by produce().