20 recoMet_.met = theMet.
et();
21 recoMet_.metPhi = theMet.
phi();
22 recoMet_.sumEt = theMet.
sumEt();
33 recoMet_.mHtPhi = -999;
35 for (reco::CaloJetCollection::const_iterator calojet = caloJets->begin(); calojet!=caloJets->end(); ++calojet)
37 if (calojet->pt()>jetptThreshold){
38 mHx += -1.*calojet->px();
39 mHy += -1.*calojet->py();
40 recoMet_.Ht += calojet->pt();
44 TVector2 *tv2 =
new TVector2(mHx,mHy);
46 recoMet_.mHt = tv2->Mod();
47 recoMet_.mHtPhi= tv2->Phi();
60 rechit != ebRecHits->end();
70 if (flag>ecalFlag) ecalFlag = flag;
75 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)
virtual double phi() const final
momentum azimuthal angle
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
virtual double et() const final
transverse energy