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 );
95 std::auto_ptr<double> significance (
new double);
96 (*significance) = sig;
99 (*covPtr)(0,0) = cov(0,0);
100 (*covPtr)(1,0) = cov(1,0);
101 (*covPtr)(1,1) = cov(1,1);
103 event.put( covPtr,
"METCovariance" );
104 event.put( significance,
"METSignificance" );
T getParameter(std::string const &) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
static const JetResolution get(const edm::EventSetup &, const std::string &)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCandidatesToken_
ROOT::Math::SMatrix< double, 2 > METCovMatrix
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > lepTokens_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
tuple METSignificance
____________________________________________________________________________||
edm::EDGetTokenT< double > rhoToken_
std::string jetResPhiType_
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
virtual ~METSignificanceProducer()
METSignificanceProducer(const edm::ParameterSet &)
static const JetResolutionScaleFactor get(const edm::EventSetup &, const std::string &)
metsig::METSignificance * metSigAlgo_
std::string jetResPtType_
edm::EDGetTokenT< edm::View< reco::Jet > > pfjetsToken_
double getSignificance(const reco::METCovMatrix &cov, const reco::MET &met) const
edm::EDGetTokenT< edm::View< reco::MET > > metToken_
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)