Produces the pat::MET. More...
Public Member Functions | |
PATMETProducer (const edm::ParameterSet &iConfig) | |
void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override |
~PATMETProducer () override | |
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 Member Functions | |
const reco::METCovMatrix | getMETCovMatrix (const edm::Event &event, const edm::EventSetup &iSetup, const reco::MET &met, double &sumPtUnclustered) const |
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 |
Produces the pat::MET.
The PATMETProducer produces the analysis-level pat::MET starting from a collection of objects of METType.
Definition at line 35 of file PATMETProducer.cc.
|
explicit |
Definition at line 85 of file PATMETProducer.cc.
References addEfficiencies_, addGenMET_, addResolutions_, calculateMETSignificance_, efficiencyLoader_, DeDxTools::esConsumes(), genMETToken_, edm::ParameterSet::getParameter(), jetResPhiToken_, jetResPtToken_, jetSFToken_, jetToken_, edm::InputTag::label(), lepTokens_, metSigAlgo_, METSignificance_cfi::METSignificance, metSrc_, metToken_, pfCandToken_, resolutionLoader_, rhoToken_, HLT_FULL_cff::srcWeights, AlCaHLTBitMon_QueryRunRegistry::string, userDataHelper_, useUserData_, and weightsToken_.
|
override |
Definition at line 138 of file PATMETProducer.cc.
|
static |
Definition at line 207 of file PATMETProducer.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), pat::helper::KinResolutionsLoader::fillDescription(), pat::PATUserDataHelper< ObjectType >::fillDescription(), HLT_FULL_cff::InputTag, edm::ParameterSetDescription::setAllowAnything(), and edm::ParameterSetDescription::setComment().
|
private |
Definition at line 236 of file PATMETProducer.cc.
References edm::Event::getByToken(), metsig::METSignificance::getCovariance(), edm::EventSetup::getData(), HLT_FULL_cff::inputJets, edm::EventBase::isRealData(), edm::EDGetTokenT< T >::isUninitialized(), reco::MET::isWeighted(), jetResPhiToken_, jetResPtToken_, jetSFToken_, jetToken_, lepTokens_, HLT_FULL_cff::leptons, metSigAlgo_, pfCandToken_, rhoToken_, trackerHitRTTI::vector, HLT_FULL_cff::weights, and weightsToken_.
Referenced by produce().
|
override |
Definition at line 140 of file PATMETProducer.cc.
References addGenMET_, calculateMETSignificance_, efficiencyLoader_, pat::helper::EfficiencyLoader::enabled(), pat::helper::KinResolutionsLoader::enabled(), edm::InputTag::encode(), genMETToken_, edm::Event::getByToken(), getMETCovMatrix(), metsig::METSignificance::getSignificance(), metSigAlgo_, metSrc_, metToken_, eostools::move(), pat::helper::EfficiencyLoader::newEvent(), pat::helper::KinResolutionsLoader::newEvent(), metProducer_cfi::patMETs, edm::Event::put(), resolutionLoader_, pat::helper::EfficiencyLoader::setEfficiencies(), pat::MET::setGenMET(), pat::MET::setMETSignificance(), pat::MET::setMETSumPtUnclustered(), pat::helper::KinResolutionsLoader::setResolutions(), reco::MET::setSignificanceMatrix(), userDataHelper_, and useUserData_.
|
private |
Definition at line 57 of file PATMETProducer.cc.
Referenced by PATMETProducer().
|
private |
Definition at line 48 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 52 of file PATMETProducer.cc.
|
private |
Definition at line 50 of file PATMETProducer.cc.
Referenced by PATMETProducer().
|
private |
Definition at line 64 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 58 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 55 of file PATMETProducer.cc.
|
private |
Definition at line 49 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 72 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().
|
private |
Definition at line 71 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().
|
private |
Definition at line 73 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().
|
private |
Definition at line 66 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().
|
private |
Definition at line 68 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().
|
private |
Definition at line 65 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), PATMETProducer(), and produce().
|
private |
Definition at line 46 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 47 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 53 of file PATMETProducer.cc.
|
private |
Definition at line 67 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().
|
private |
Definition at line 51 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 69 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().
|
private |
Definition at line 61 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 60 of file PATMETProducer.cc.
Referenced by PATMETProducer(), and produce().
|
private |
Definition at line 70 of file PATMETProducer.cc.
Referenced by getMETCovMatrix(), and PATMETProducer().