31 for(reco::MuonCollection::const_iterator it=muons->begin();
51 bool flagTight =
false;
56 double iso = (it->pfIsolationR04().sumChargedHadronPt +
max(0.,
57 it->pfIsolationR04().sumNeutralHadronEt +
58 it->pfIsolationR04().sumPhotonEt -
59 0.5*it->pfIsolationR04().sumPUPt)) / it->pt();
62 double MET_local = TMath::Sqrt (METx*METx + METy*METy);
66 METP4.SetPxPyPzE(METx, METy, 0, MET_local);
69 Muon.SetPtEtaPhiE(it->pt(),it->eta(),it->phi(),it->energy());
71 double scalSum = MET_local + Muon.Pt();
72 TLorentzVector vecSum (Muon);
74 double vecSumPt = vecSum.Pt();
76 recoMuon_.
mt.push_back(TMath::Sqrt (scalSum*scalSum - vecSumPt*vecSumPt));
TrajectoryStateOnSurface extrapolate(const reco::Track &tk) const
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails.
Geom::Phi< T > phi() const
GlobalPoint globalPosition() const
bool isLooseMuonCustom(const reco::Muon &recoMu)
bool isTightMuonCustom(const reco::Muon &recoMu, const reco::Vertex recoVtx)
bool isMediumMuonCustom(const reco::Muon &recoMu)
PropagateToMuon muPropagator2nd_
L1AnalysisRecoMuon2DataFormat recoMuon_
PropagateToMuon muPropagator1st_