20 std::vector<edm::InputTag> srcLeptonsTags = iConfig.
getParameter< std::vector<edm::InputTag> >(
"srcLeptons");
21 for(std::vector<edm::InputTag>::const_iterator it=srcLeptonsTags.begin();it!=srcLeptonsTags.end();it++) {
37 produces<double>(
"METSignificance");
66 std::vector< edm::Handle<reco::CandidateView> >
leptons;
68 srcLeptons_i !=
lepTokens_.end(); ++srcLeptons_i ) {
71 event.getByToken(*srcLeptons_i, leptons_i);
72 leptons.push_back( leptons_i );
97 (*significance) = sig;
100 (*covPtr)(0,0) = cov(0,0);
101 (*covPtr)(1,0) = cov(1,0);
102 (*covPtr)(1,1) = cov(1,1);
104 event.put(
std::move(covPtr),
"METCovariance" );
105 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 &)
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCandidatesToken_
def setup(process, global_tag, zero_tesla=False)
ROOT::Math::SMatrix< double, 2 > METCovMatrix
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_