18 , calculateSignificance_(iConfig.getParameter<
bool>(
"calculateSignificance"))
19 , globalThreshold_(iConfig.getParameter<double>(
"globalThreshold"))
26 std::vector<edm::InputTag> srcLeptonsTags = iConfig.
getParameter< std::vector<edm::InputTag> >(
"srcLeptons");
27 for(std::vector<edm::InputTag>::const_iterator it=srcLeptonsTags.begin();it!=srcLeptonsTags.end();it++) {
39 produces<reco::PFMETCollection>().setBranchAlias(alias);
65 auto pfmetcoll = std::make_unique<reco::PFMETCollection>();
67 pfmetcoll->push_back(pfmet);
76 std::vector< edm::Handle<reco::CandidateView> >
leptons;
78 srcLeptons_i !=
lepTokens_.end(); ++srcLeptons_i ) {
80 event.getByToken(*srcLeptons_i, leptons_i);
81 leptons.push_back( leptons_i );
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 &)
#define DEFINE_FWK_MODULE(type)
void setSignificanceMatrix(const reco::METCovMatrix &matrix)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
def setup(process, global_tag, zero_tesla=False)
PFMETProducer(const edm::ParameterSet &)
ROOT::Math::SMatrix< double, 2 > METCovMatrix
std::string jetResPtType_
edm::EDGetTokenT< edm::View< reco::Jet > > jetToken_
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)
static std::string const input
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
bool calculateSignificance_
void produce(edm::Event &, const edm::EventSetup &) override
metsig::METSignificance * metSigAlgo_
Structure containing data common to all types of MET.
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > lepTokens_
MET made from Particle Flow Candidates.
SpecificPFMETData run(const edm::View< reco::Candidate > &pfCands)
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_