#include <SmearedJetProducerT.h>
Public Member Functions | |
void | produce (edm::Event &event, const edm::EventSetup &setup) override |
SmearedJetProducerT (const edm::ParameterSet &cfg) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Types | |
using | JetCollection = std::vector< T > |
Private Attributes | |
GreaterByPt< T > | jetPtComparator |
bool | m_debug |
bool | m_enabled |
std::shared_ptr< pat::GenJetMatcher > | m_genJetMatcher |
std::string | m_jets_algo |
std::string | m_jets_algo_pt |
edm::EDGetTokenT< JetCollection > | m_jets_token |
int | m_nomVar |
std::mt19937 | m_random_generator |
std::unique_ptr< JME::JetResolution > | m_resolution_from_file |
edm::EDGetTokenT< double > | m_rho_token |
std::unique_ptr< JME::JetResolutionScaleFactor > | m_scale_factor_from_file |
Variation | m_systematic_variation |
std::string | m_uncertaintySource |
bool | m_use_txt_files |
bool | m_useDeterministicSeed |
Static Private Attributes | |
static constexpr const double | MIN_JET_ENERGY = 1e-2 |
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 |
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.
Definition at line 97 of file SmearedJetProducerT.h.
|
private |
Definition at line 98 of file SmearedJetProducerT.h.
|
inlineexplicit |
Definition at line 101 of file SmearedJetProducerT.h.
References looper::cfg, edm::errors::ConfigFileReadError, DOWN, Exception, contentValuesFiles::fullPath, SmearedJetProducerT< T >::m_enabled, SmearedJetProducerT< T >::m_genJetMatcher, SmearedJetProducerT< T >::m_jets_algo, SmearedJetProducerT< T >::m_jets_algo_pt, SmearedJetProducerT< T >::m_jets_token, SmearedJetProducerT< T >::m_nomVar, SmearedJetProducerT< T >::m_random_generator, SmearedJetProducerT< T >::m_resolution_from_file, SmearedJetProducerT< T >::m_rho_token, SmearedJetProducerT< T >::m_scale_factor_from_file, SmearedJetProducerT< T >::m_systematic_variation, SmearedJetProducerT< T >::m_uncertaintySource, SmearedJetProducerT< T >::m_use_txt_files, NOMINAL, SurveyInfoScenario_cff::seed, patPFMETCorrections_cff::skipGenMatching, AlCaHLTBitMon_QueryRunRegistry::string, UP, and patPFMETCorrections_cff::variation.
|
inlinestatic |
Definition at line 153 of file SmearedJetProducerT.h.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addNode(), edm::ParameterSetDescription::addUntracked(), pat::GenJetMatcher::fillDescriptions(), eostools::move(), source, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineoverride |
Definition at line 177 of file SmearedJetProducerT.h.
References gather_cfg::cout, ztail::d, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), JME::JetResolution::get(), JME::JetResolutionScaleFactor::get(), JME::JetResolutionScaleFactor::getScaleFactor(), metsig::jet, JME::JetEta, JME::JetPt, SmearedJetProducerT< T >::jetPtComparator, singleTopDQM_cfi::jets, SmearedJetProducerT< T >::m_debug, SmearedJetProducerT< T >::m_enabled, SmearedJetProducerT< T >::m_genJetMatcher, SmearedJetProducerT< T >::m_jets_algo, SmearedJetProducerT< T >::m_jets_algo_pt, SmearedJetProducerT< T >::m_jets_token, SmearedJetProducerT< T >::m_nomVar, SmearedJetProducerT< T >::m_random_generator, SmearedJetProducerT< T >::m_resolution_from_file, SmearedJetProducerT< T >::m_rho_token, SmearedJetProducerT< T >::m_scale_factor_from_file, SmearedJetProducerT< T >::m_systematic_variation, SmearedJetProducerT< T >::m_uncertaintySource, SmearedJetProducerT< T >::m_use_txt_files, SmearedJetProducerT< T >::m_useDeterministicSeed, SmearedJetProducerT< T >::MIN_JET_ENERGY, eostools::move(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), L1TObjectsTimingClient_cff::resolution, rho, JME::Rho, SurveyInfoScenario_cff::seed, singleTopDQM_cfi::setup, and mathSSE::sqrt().
|
private |
Definition at line 325 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().
|
private |
Definition at line 316 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().
|
private |
Definition at line 310 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 317 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 312 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 311 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 308 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 327 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 323 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 320 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 309 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 321 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 313 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 314 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 319 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 315 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().
|
staticconstexprprivate |
Definition at line 306 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().