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::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
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::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
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::InputTag | src_ |
input tau-jet collection More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
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_, and payloadMappings_.
|
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().
|
virtual |
everything that needs to be done per event
Implements edm::EDProducer.
Definition at line 67 of file TauJetCorrFactorsProducer.cc.
References reco::PFTau::decayMode(), defaultPayload_, evaluate(), edm::helper::Filler< Map >::fill(), edm::EventSetup::get(), edm::Event::getByLabel(), edm::helper::Filler< Map >::insert(), patTestJEC_cfi::jec, levels_, moduleLabel_, params(), payloadMappings_, edm::Event::put(), and src_.
|
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().