37 LogDebug(
"Muon|RecoMuon|TevMuonProducer") <<
"constructor called" << endl;
48 theService = std::make_unique<MuonServiceProxy>(serviceParameters, consumesCollector());
62 for (
unsigned int ww = 0; ww <
theRefits.size(); ww++) {
64 produces<reco::TrackCollection>(
theRefits[ww]);
65 produces<TrackingRecHitCollection>(
theRefits[ww]);
66 produces<reco::TrackExtraCollection>(
theRefits[ww]);
67 produces<vector<Trajectory> >(
theRefits[ww]);
68 produces<TrajTrackAssociationCollection>(
theRefits[ww]);
69 produces<reco::TrackToTrackMap>(
theRefits[ww]);
71 produces<DYTestimators>(
"dytInfo");
83 const string metname =
"Muon|RecoMuon|TevMuonProducer";
101 auto dytInfo = std::make_unique<DYTestimators>();
103 size_t GLBmuonSize = glbMuons->size();
104 vector<DYTInfo> dytTmp(GLBmuonSize);
110 vector<MuonTrajectoryBuilder::TrackCand> glbTrackCands;
116 for (
unsigned int ww = 0; ww <
theRefits.size(); ww++) {
118 std::vector<std::pair<Trajectory*, reco::TrackRef> > miniMap;
122 for (reco::TrackCollection::const_iterator
track = glbTracks->begin();
track != glbTracks->end();
123 track++, ++trackIndex) {
132 if (!refitted.empty()) {
133 auto refit = std::make_unique<Trajectory>(refitted.front());
135 std::pair<Trajectory*, reco::TrackRef> thisPair(refit.get(), glbRef);
136 miniMap.push_back(thisPair);
143 filler.insert(glbMuons, dytTmp.begin(), dytTmp.end());
145 event.put(
std::move(dytInfo),
"dytInfo");