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++) {
40 produces<double>(
"METSignificance");
64 std::vector<edm::Handle<reco::CandidateView>>
leptons;
69 event.getByToken(*srcLeptons_i, leptons_i);
95 if (
met.isWeighted()) {
98 <<
"MET is weighted (e.g. PUPPI), but no weights given in METSignificanceProducer\n";
114 (*significance) = sig;
117 (*covPtr)(0, 0) = cov(0, 0);
118 (*covPtr)(1, 0) = cov(1, 0);
119 (*covPtr)(1, 1) = cov(1, 1);
121 event.put(
std::move(covPtr),
"METCovariance");
static const JetResolutionScaleFactor get(const edm::EventSetup &, const Token &)
T getParameter(std::string const &) const
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)
void produce(edm::Event &, const edm::EventSetup &) override
static double getSignificance(const reco::METCovMatrix &cov, const reco::MET &met)
JME::JetResolution::Token jetResPhiTypeToken_
#define DEFINE_FWK_MODULE(type)
ROOT::Math::SMatrix< double, 2 > METCovMatrix
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCandidatesToken_
constexpr bool isUninitialized() const noexcept
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > lepTokens_
edm::EDGetTokenT< double > rhoToken_
std::string jetResPhiType_
~METSignificanceProducer() override
edm::EDGetTokenT< edm::ValueMap< float > > weightsToken_
Namespace of DDCMS conversion namespace.
METSignificanceProducer(const edm::ParameterSet &)
METSignificance
____________________________________________________________________________||
metsig::METSignificance * metSigAlgo_
std::string jetResPtType_
edm::EDGetTokenT< edm::View< reco::Jet > > pfjetsToken_
JME::JetResolutionScaleFactor::Token jetSFTypeToken_
edm::EDGetTokenT< edm::View< reco::MET > > metToken_
static const JetResolution get(const edm::EventSetup &, const Token &)
JME::JetResolution::Token jetResPtTypeToken_