26 produces<reco::MuonCollection>().setBranchAlias(
theAlias +
"s");
35 const std::string metname =
"Muon|RecoMuon|MuonIdentification|GlobalMuonToMuonProducer";
41 if ((*recHit)->isValid()) {
42 const GeomDet* geomDet = trackingGeometry->
idToDet((*recHit)->geographicalId());
44 double z = geomDet->
toGlobal((*recHit)->localPosition()).
z();
52 const std::string metname =
"Muon|RecoMuon|MuonIdentification|GlobalMuonToMuonProducer";
60 if (linksCollection->empty()) {
69 for (reco::MuonTrackLinksCollection::const_iterator
links = linksCollection->begin();
links != linksCollection->end();
81 muon.setStandAlone(
links->standAloneTrack());
86 muon.setCharge(
links->globalTrack()->charge());
94 muon.setVertex(
links->globalTrack()->vertex());