14 recoMet_.met = theMet.
et();
15 recoMet_.metPhi = theMet.
phi();
16 recoMet_.sumEt = theMet.
sumEt();
20 float jetptThreshold) {
26 recoMet_.mHtPhi = -999;
28 for (reco::CaloJetCollection::const_iterator calojet = caloJets->begin(); calojet != caloJets->end(); ++calojet) {
29 if (calojet->pt() > jetptThreshold) {
30 mHx += -1. * calojet->px();
31 mHy += -1. * calojet->py();
32 recoMet_.Ht += calojet->pt();
36 TVector2 *tv2 =
new TVector2(mHx, mHy);
38 recoMet_.mHt = tv2->Mod();
39 recoMet_.mHtPhi = tv2->Phi();
63 recoMet_.ecalFlag = ecalFlag;
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
void SetHtMht(const edm::Handle< reco::CaloJetCollection > caloJets, float jetptThreshold)
std::vector< EcalRecHit >::const_iterator const_iterator
void SetMet(const edm::Handle< reco::CaloMETCollection > recoMet)
void SetECALFlags(const edm::ESHandle< EcalChannelStatus > chStatus, const edm::Handle< EcalRecHitCollection > ebRecHits, const edm::Handle< EcalRecHitCollection > eeRecHits, const EcalSeverityLevelAlgo *sevlv)
std::vector< reco::CaloMET > CaloMETCollection
collection of CaloMET objects
T const * product() const
double et() const final
transverse energy
double phi() const final
momentum azimuthal angle