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 std::auto_ptr<reco::PFMETCollection> pfmetcoll;
68 pfmetcoll->push_back(pfmet);
77 std::vector< edm::Handle<reco::CandidateView> >
leptons;
79 srcLeptons_i !=
lepTokens_.end(); ++srcLeptons_i ) {
81 event.getByToken(*srcLeptons_i, leptons_i);
82 leptons.push_back( leptons_i );
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
PFMETProducer(const edm::ParameterSet &)
ROOT::Math::SMatrix< double, 2 > METCovMatrix
std::string jetResPtType_
edm::EDGetTokenT< edm::View< reco::Jet > > jetToken_
reco::METCovMatrix getMETCovMatrix(const edm::Event &event, const edm::EventSetup &, const edm::View< reco::Candidate > &input) const
static std::string const input
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
tuple METSignificance
____________________________________________________________________________||
bool calculateSignificance_
virtual 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_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
MET made from Particle Flow Candidates.
SpecificPFMETData run(const edm::View< reco::Candidate > &pfCands)
std::string jetResPhiType_
T const * product() const
XYZPointD XYZPoint
point in space with cartesian internal representation
static const JetResolutionScaleFactor get(const edm::EventSetup &, const std::string &)
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
edm::EDGetTokenT< edm::View< reco::Candidate > > inputToken_
edm::EDGetTokenT< double > rhoToken_
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
reco::METCovMatrix getCovariance(const edm::View< reco::Jet > &jets, const std::vector< edm::Handle< reco::CandidateView > > &leptons, const edm::View< reco::Candidate > &pfCandidates, double rho, JME::JetResolution &resPtObj, JME::JetResolution &resPhiObj, JME::JetResolutionScaleFactor &resSFObj, bool isRealData)