17 calculateSignificance_(iConfig.getParameter<
bool>(
"calculateSignificance")),
18 globalThreshold_(iConfig.getParameter<double>(
"globalThreshold")) {
23 std::vector<edm::InputTag> srcLeptonsTags = iConfig.
getParameter<std::vector<edm::InputTag> >(
"srcLeptons");
24 for (std::vector<edm::InputTag>::const_iterator it = srcLeptonsTags.begin(); it != srcLeptonsTags.end(); it++) {
36 produces<reco::PFMETCollection>().setBranchAlias(alias);
60 auto pfmetcoll = std::make_unique<reco::PFMETCollection>();
62 pfmetcoll->push_back(pfmet);
70 std::vector<edm::Handle<reco::CandidateView> >
leptons;
75 event.getByToken(*srcLeptons_i, leptons_i);
76 leptons.push_back(leptons_i);
97 double sumPtUnclustered = 0;
99 *inputJets, leptons, candInput, *rho, resPtObj, resPhiObj, resSFObj, event.
isRealData(), sumPtUnclustered);
reco::METCovMatrix getMETCovMatrix(const edm::Event &event, const edm::EventSetup &, const edm::Handle< edm::View< reco::Candidate > > &input) const
T getParameter(std::string const &) const
static const JetResolution get(const edm::EventSetup &, const std::string &)
ROOT::Math::SMatrix< double, 2 > METCovMatrix
void setSignificanceMatrix(const reco::METCovMatrix &matrix)
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > lepTokens_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
PFMETProducer(const edm::ParameterSet &)
std::string jetResPtType_
edm::EDGetTokenT< edm::View< reco::Jet > > jetToken_
static std::string const input
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
#define DEFINE_FWK_MODULE(type)
bool calculateSignificance_
void produce(edm::Event &, const edm::EventSetup &) override
metsig::METSignificance * metSigAlgo_
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)
Structure containing data common to all types of MET.
MET made from Particle Flow Candidates.
SpecificPFMETData run(const edm::View< reco::Candidate > &pfCands)
Namespace of DDCMS conversion namespace.
std::string jetResPhiType_
METSignificance
____________________________________________________________________________||
T const * product() const
XYZPointD XYZPoint
point in space with cartesian internal representation
static const JetResolutionScaleFactor get(const edm::EventSetup &, const std::string &)
edm::EDGetTokenT< edm::View< reco::Candidate > > inputToken_
edm::EDGetTokenT< double > rhoToken_