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++) {
33 produces<double>(
"METSignificance");
57 std::vector<edm::Handle<reco::CandidateView> >
leptons;
62 event.getByToken(*srcLeptons_i, leptons_i);
63 leptons.push_back(leptons_i);
82 double sumPtUnclustered = 0;
84 *jets, leptons, pfCandidates, *rho, resPtObj, resPhiObj, resSFObj, event.
isRealData(), sumPtUnclustered);
88 (*significance) = sig;
91 (*covPtr)(0, 0) = cov(0, 0);
92 (*covPtr)(1, 0) = cov(1, 0);
93 (*covPtr)(1, 1) = cov(1, 1);
95 event.put(
std::move(covPtr),
"METCovariance");
96 event.put(
std::move(significance),
"METSignificance");
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
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
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCandidatesToken_
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > lepTokens_
edm::EDGetTokenT< double > rhoToken_
std::string jetResPhiType_
~METSignificanceProducer() override
#define DEFINE_FWK_MODULE(type)
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)
Namespace of DDCMS conversion namespace.
METSignificanceProducer(const edm::ParameterSet &)
METSignificance
____________________________________________________________________________||
static const JetResolutionScaleFactor get(const edm::EventSetup &, const std::string &)
metsig::METSignificance * metSigAlgo_
std::string jetResPtType_
edm::EDGetTokenT< edm::View< reco::Jet > > pfjetsToken_
edm::EDGetTokenT< edm::View< reco::MET > > metToken_