![]() |
![]() |
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... | |
![]() | |
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 Member Functions | |
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 () override | |
default destructor More... | |
![]() | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
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... | |
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 boostedTaus_cff::decayMode, pat::TauJetCorrFactorsProducer::payloadMappingType::decayModes_, defaultPayload_, edm::ParameterSet::getParameter(), pat::TauJetCorrFactorsProducer::payloadMappingType::payload_, payloadMappings_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineoverride |
default destructor
Definition at line 48 of file TauJetCorrFactorsProducer.h.
References evaluate(), params(), and produce().
|
private |
evaluate jet correction factor up to a given level
Definition at line 57 of file TauJetCorrFactorsProducer.cc.
References PatJetAnalyzer_cfi::corrLevel.
Referenced by produce(), and ~TauJetCorrFactorsProducer().
|
private |
return the jec parameters as input to the FactorizedJetCorrector for different flavors
Definition at line 45 of file TauJetCorrFactorsProducer.cc.
References PatJetAnalyzer_cfi::corrLevel, and JetCorrectorParametersCollection::push_back().
Referenced by produce(), and ~TauJetCorrFactorsProducer().
|
override |
everything that needs to be done per event
Definition at line 67 of file TauJetCorrFactorsProducer.cc.
References mitigatedMETSequence_cff::corrector, PatJetAnalyzer_cfi::corrLevel, boostedTaus_cff::decayMode, reco::PFTau::decayMode(), defaultPayload_, DEFINE_FWK_MODULE, evaluate(), objects.autophobj::filler, edm::EventSetup::get(), edm::Event::getByToken(), training_settings::idx, patTestJEC_cfi::jec, levels_, moduleLabel_, eostools::move(), params(), jets_cff::payload, payloadMappings_, edm::Event::put(), srcToken_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~TauJetCorrFactorsProducer().
|
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 ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Modules.SwitchProducer::insertInto(), 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().