25 produces<reco::MuonCollection>().setBranchAlias(
theAlias +
"s");
27 trackingGeomToken_ = esConsumes<GlobalTrackingGeometry, GlobalTrackingGeometryRecord>();
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()) {
68 for (reco::MuonTrackLinksCollection::const_iterator
links = linksCollection->begin();
links != linksCollection->end();
80 muon.setStandAlone(
links->standAloneTrack());
85 muon.setCharge(
links->globalTrack()->charge());
93 muon.setVertex(
links->globalTrack()->vertex());