#include <SmearedJetProducerT.h>
Public Member Functions | |
SmearedJetProducerT (const edm::ParameterSet &cfg) | |
~SmearedJetProducerT () | |
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< T > | JetCollection |
Private Member Functions | |
virtual void | produce (edm::Event &evt, const edm::EventSetup &es) |
Private Attributes | |
SmearedJetProducer_namespace::GenJetMatcherT < T > | genJetMatcher_ |
TFile * | inputFile_ |
double | jetCorrEtaMax_ |
Textractor | jetCorrExtractor_ |
edm::InputTag | jetCorrLabel_ |
edm::EDGetTokenT < reco::JetCorrector > | jetCorrToken_ |
SmearedJetProducer_namespace::JetResolutionExtractorT < T > | jetResolutionExtractor_ |
TH2 * | lut_ |
std::string | moduleLabel_ |
TRandom3 | rnd_ |
double | shiftBy_ |
double | sigmaMaxGenJetMatch_ |
double | skipCorrJetPtThreshold_ |
StringCutObjectSelector< T > * | skipJetSelection_ |
double | skipRawJetPtThreshold_ |
double | smearBy_ |
edm::InputTag | src_ |
double | srcJetSmeared_ |
edm::EDGetTokenT< JetCollection > | srcToken_ |
int | verbosity_ |
Additional Inherited Members | |
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 |
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) |
Produce collection of "smeared" jets. The aim of this correction is to account for the difference in jet energy resolution between Monte Carlo simulation and Data. The jet energy resolutions have been measured in QCD di-jet and gamma + jets events selected in 2010 data, as documented in the PAS JME-10-014.
Definition at line 146 of file SmearedJetProducerT.h.
|
private |
Definition at line 148 of file SmearedJetProducerT.h.
|
inlineexplicit |
Definition at line 152 of file SmearedJetProducerT.h.
References edm::hlt::Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), SmearedJetProducerT< T, Textractor >::inputFile_, writeAntiElectronDiscrMVA_cfi::inputFileName, SmearedJetProducerT< T, Textractor >::jetCorrEtaMax_, SmearedJetProducerT< T, Textractor >::jetCorrLabel_, SmearedJetProducerT< T, Textractor >::jetCorrToken_, SmearedJetProducerT< T, Textractor >::lut_, SmearedJetProducerT< T, Textractor >::shiftBy_, SmearedJetProducerT< T, Textractor >::sigmaMaxGenJetMatch_, SmearedJetProducerT< T, Textractor >::skipCorrJetPtThreshold_, SmearedJetProducerT< T, Textractor >::skipJetSelection_, SmearedJetProducerT< T, Textractor >::skipRawJetPtThreshold_, SmearedJetProducerT< T, Textractor >::smearBy_, SmearedJetProducerT< T, Textractor >::src_, SmearedJetProducerT< T, Textractor >::srcJetSmeared_, SmearedJetProducerT< T, Textractor >::srcToken_, AlCaHLTBitMon_QueryRunRegistry::string, edm::FileInPath::Unknown, and SmearedJetProducerT< T, Textractor >::verbosity_.
|
inline |
Definition at line 210 of file SmearedJetProducerT.h.
References SmearedJetProducerT< T, Textractor >::inputFile_, SmearedJetProducerT< T, Textractor >::lut_, and SmearedJetProducerT< T, Textractor >::skipJetSelection_.
|
inlineprivatevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 219 of file SmearedJetProducerT.h.
References funct::abs(), gather_cfg::cout, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), SmearedJetProducerT< T, Textractor >::genJetMatcher_, edm::Event::getByToken(), metsig::jet, SmearedJetProducerT< T, Textractor >::jetCorrEtaMax_, SmearedJetProducerT< T, Textractor >::jetCorrExtractor_, SmearedJetProducerT< T, Textractor >::jetCorrLabel_, SmearedJetProducerT< T, Textractor >::jetCorrToken_, SmearedJetProducerT< T, Textractor >::jetResolutionExtractor_, fwrapper::jets, edm::InputTag::label(), SmearedJetProducerT< T, Textractor >::lut_, bookConverter::max, SmearedJetProducerT< T, Textractor >::moduleLabel_, reco::LeafCandidate::phi(), edm::Handle< T >::product(), reco::LeafCandidate::pt(), edm::Event::put(), SmearedJetProducerT< T, Textractor >::rnd_, SmearedJetProducerT< T, Textractor >::shiftBy_, SmearedJetProducerT< T, Textractor >::sigmaMaxGenJetMatch_, SmearedJetProducerT< T, Textractor >::skipCorrJetPtThreshold_, SmearedJetProducerT< T, Textractor >::skipJetSelection_, SmearedJetProducerT< T, Textractor >::skipRawJetPtThreshold_, SmearedJetProducerT< T, Textractor >::smearBy_, mathSSE::sqrt(), SmearedJetProducerT< T, Textractor >::src_, SmearedJetProducerT< T, Textractor >::srcToken_, relativeConstraints::value, SmearedJetProducerT< T, Textractor >::verbosity_, x, and y.
|
private |
Definition at line 350 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce().
|
private |
Definition at line 358 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::SmearedJetProducerT(), and SmearedJetProducerT< T, Textractor >::~SmearedJetProducerT().
|
private |
Definition at line 366 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 371 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce().
|
private |
Definition at line 364 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 365 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 361 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce().
|
private |
Definition at line 359 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), SmearedJetProducerT< T, Textractor >::SmearedJetProducerT(), and SmearedJetProducerT< T, Textractor >::~SmearedJetProducerT().
|
private |
Definition at line 348 of file SmearedJetProducerT.h.
Referenced by Mixins._TypedParameterizable::insertInto(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), and SmearedJetProducerT< T, Textractor >::produce().
|
private |
Definition at line 362 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce().
|
private |
Definition at line 379 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 373 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 385 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 383 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), SmearedJetProducerT< T, Textractor >::SmearedJetProducerT(), and SmearedJetProducerT< T, Textractor >::~SmearedJetProducerT().
|
private |
Definition at line 384 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 377 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 355 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 381 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 356 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().
|
private |
Definition at line 387 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T, Textractor >::produce(), and SmearedJetProducerT< T, Textractor >::SmearedJetProducerT().