#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 | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
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 |
JME::JetResolution::Token | m_jets_algo_pt_token |
JME::JetResolutionScaleFactor::Token | m_jets_algo_token |
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<> | |
using | CacheTypes = CacheContexts< T...> |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T...> |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::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, DeDxTools::esConsumes(), Exception, edm::ParameterSet::exists(), contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), SmearedJetProducerT< T >::m_enabled, SmearedJetProducerT< T >::m_genJetMatcher, SmearedJetProducerT< T >::m_jets_algo, SmearedJetProducerT< T >::m_jets_algo_pt, SmearedJetProducerT< T >::m_jets_algo_pt_token, SmearedJetProducerT< T >::m_jets_algo_token, 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, fileCollector::seed, AlCaHLTBitMon_QueryRunRegistry::string, and UP.
|
inlinestatic |
Definition at line 155 of file SmearedJetProducerT.h.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addNode(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, pat::GenJetMatcher::fillDescriptions(), eostools::move(), source, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineoverride |
Definition at line 179 of file SmearedJetProducerT.h.
References gather_cfg::cout, ztail::d, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), JME::JetResolution::get(), JME::JetResolutionScaleFactor::get(), JME::JetResolution::getResolution(), JME::JetResolutionScaleFactor::getScaleFactor(), edm::EventBase::isRealData(), metsig::jet, JME::JetEta, JME::JetPt, SmearedJetProducerT< T >::jetPtComparator, fwrapper::jets, SmearedJetProducerT< T >::m_debug, SmearedJetProducerT< T >::m_enabled, SmearedJetProducerT< T >::m_genJetMatcher, SmearedJetProducerT< T >::m_jets_algo_pt_token, SmearedJetProducerT< T >::m_jets_algo_token, 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(), dtDQMClient_cfg::resolution, rho, JME::Rho, fileCollector::seed, and mathSSE::sqrt().
|
private |
Definition at line 329 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().
|
private |
Definition at line 320 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().
|
private |
Definition at line 312 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 314 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 313 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 315 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 316 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 310 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce(), and SmearedJetProducerT< T >::SmearedJetProducerT().
|
private |
Definition at line 331 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 324 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 325 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 318 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 319 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().
|
staticprivate |
Definition at line 308 of file SmearedJetProducerT.h.
Referenced by SmearedJetProducerT< T >::produce().