#include <METSignificanceProducer.h>
Definition at line 46 of file METSignificanceProducer.h.
◆ METSignificanceProducer()
METSignificanceProducer::METSignificanceProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 15 of file METSignificanceProducer.cc.
16 std::vector<edm::InputTag> srcLeptonsTags = iConfig.
getParameter<std::vector<edm::InputTag>>(
"srcLeptons");
17 for (std::vector<edm::InputTag>::const_iterator it = srcLeptonsTags.begin(); it != srcLeptonsTags.end(); it++) {
37 produces<double>(
"METSignificance");
References edm::ParameterSet::getParameter(), jetResPhiType_, jetResPtType_, jetSFType_, lepTokens_, metSigAlgo_, METSignificance_cfi::METSignificance, metToken_, pfCandidatesToken_, pfjetsToken_, rhoToken_, HLT_2018_cff::srcWeights, AlCaHLTBitMon_QueryRunRegistry::string, and weightsToken_.
◆ ~METSignificanceProducer()
METSignificanceProducer::~METSignificanceProducer |
( |
| ) |
|
|
override |
◆ produce()
Definition at line 44 of file METSignificanceProducer.cc.
61 std::vector<edm::Handle<reco::CandidateView>>
leptons;
66 event.getByToken(*srcLeptons_i, leptons_i);
92 if (
met.isWeighted()) {
95 <<
"MET is weighted (e.g. PUPPI), but no weights given in METSignificanceProducer\n";
111 (*significance) = sig;
114 (*covPtr)(0, 0) = cov(0, 0);
115 (*covPtr)(1, 0) = cov(1, 0);
116 (*covPtr)(1, 1) = cov(1, 1);
118 event.put(
std::move(covPtr),
"METCovariance");
References JME::JetResolution::get(), JME::JetResolutionScaleFactor::get(), metsig::METSignificance::getCovariance(), metsig::METSignificance::getSignificance(), edm::EDGetTokenT< T >::isUninitialized(), jetResPhiType_, jetResPtType_, singleTopDQM_cfi::jets, jetSFType_, lepTokens_, HLT_2018_cff::leptons, BTaggingMonitor_cfi::met, metSigAlgo_, metToken_, eostools::move(), zmumugammaAnalyzer_cfi::pfCandidates, pfCandidatesToken_, pfjetsToken_, rhoToken_, singleTopDQM_cfi::setup, met_cff::significance, met_cff::sumPtUnclustered, HLT_2018_cff::weights, and weightsToken_.
◆ jetResPhiType_
std::string cms::METSignificanceProducer::jetResPhiType_ |
|
private |
◆ jetResPtType_
std::string cms::METSignificanceProducer::jetResPtType_ |
|
private |
◆ jetSFType_
std::string cms::METSignificanceProducer::jetSFType_ |
|
private |
◆ lepTokens_
◆ metSigAlgo_
◆ metToken_
◆ pfCandidatesToken_
◆ pfjetsToken_
◆ rhoToken_
◆ weightsToken_
reco::METCovMatrix getCovariance(const edm::View< reco::Jet > &jets, const std::vector< edm::Handle< reco::CandidateView > > &leptons, const edm::Handle< edm::View< reco::Candidate > > &pfCandidates, double rho, JME::JetResolution &resPtObj, JME::JetResolution &resPhiObj, JME::JetResolutionScaleFactor &resSFObj, bool isRealData, double &sumPtUnclustered, edm::ValueMap< float > const *weights=nullptr)