25 const Point vtx(0.0,0.0,0.0);
36 doSignificance =
true;
37 pfsignalgo_.setResolutions( &resolutions );
38 pfsignalgo_.addPFJets(
jets);
59 initializeSpecificPFMETData(specific);
63 double NeutralEMEt = 0.0;
64 double NeutralHadEt = 0.0;
65 double ChargedEMEt = 0.0;
66 double ChargedHadEt = 0.0;
74 if (!pfCandidate)
continue;
76 const double e = pfCandidate->
energy();
77 const double et = e*
sin(theta);
79 if (pfCandidate->
particleId() == 1) ChargedHadEt += et;
80 if (pfCandidate->
particleId() == 2) ChargedEMEt += et;
81 if (pfCandidate->
particleId() == 3) MuonEt += et;
82 if (pfCandidate->
particleId() == 4) NeutralEMEt += et;
83 if (pfCandidate->
particleId() == 5) NeutralHadEt += et;
84 if (pfCandidate->
particleId() == 6) type6Et += et;
85 if (pfCandidate->
particleId() == 7) type7Et += et;
90 const double Et_total = NeutralEMEt + NeutralHadEt + ChargedEMEt + ChargedHadEt + MuonEt + type6Et + type7Et;
92 initializeSpecificPFMETData(specific);
113 if (!pfCandidate)
continue;
115 if(dau.isNull())
continue;
116 if(!dau.isAvailable())
continue;
118 pfsignalgo_.addPFCandidate(pf);
120 return pfsignalgo_.getSignifMatrix();
virtual double energy() const GCC11_FINAL
energy
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
double NeutralHadFraction
double ChargedHadFraction
void initializeSpecificPFMETData(SpecificPFMETData &specific)
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
virtual double theta() const GCC11_FINAL
momentum polar angle
Structure containing data common to all types of MET.
void setSignificanceMatrix(const TMatrixD &matrix)
math::XYZTLorentzVector LorentzVector
MET made from Particle Flow Candidates.
TMatrixD mkSignifMatrix(edm::Handle< edm::View< reco::Candidate > > &PFCandidates)
Particle reconstructed by the particle flow algorithm.
void runSignificance(metsig::SignAlgoResolutions &resolutions, edm::Handle< edm::View< reco::PFJet > > jets)
reco::PFMET addInfo(edm::Handle< edm::View< reco::Candidate > > PFCandidates, CommonMETData met)
SpecificPFMETData mkSpecificPFMETData(edm::Handle< edm::View< reco::Candidate > > &PFCandidates)
virtual ParticleType particleId() const