Go to the documentation of this file.
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");
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");
~METSignificanceProducer() override
METSignificanceProducer(const edm::ParameterSet &)
std::string jetResPhiType_
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > lepTokens_
edm::EDGetTokenT< edm::View< reco::MET > > metToken_
METSignificance
____________________________________________________________________________||
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCandidatesToken_
std::string jetResPtType_
#define DEFINE_FWK_MODULE(type)
bool isUninitialized() const
edm::EDGetTokenT< double > rhoToken_
edm::EDGetTokenT< edm::View< reco::Jet > > pfjetsToken_
metsig::METSignificance * metSigAlgo_
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
static const JetResolutionScaleFactor get(const edm::EventSetup &, const std::string &)
edm::EDGetTokenT< edm::ValueMap< float > > 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)
static double getSignificance(const reco::METCovMatrix &cov, const reco::MET &met)
static const JetResolution get(const edm::EventSetup &, const std::string &)
ROOT::Math::SMatrix< double, 2 > METCovMatrix
Namespace of DDCMS conversion namespace.