93 const string metname =
"Muon|RecoMuon|TevMuonProducer";
95 LogTrace(metname)<<
"TeV Muon Reconstruction started" << endl;
114 auto dytInfo = std::make_unique<DYTestimators>();
116 size_t GLBmuonSize = glbMuons->size();
117 vector<DYTInfo> dytTmp(GLBmuonSize);
123 vector<MuonTrajectoryBuilder::TrackCand> glbTrackCands;
129 for(
unsigned int ww=0;ww<
theRefits.size();ww++) {
131 std::vector<std::pair<Trajectory*,reco::TrackRef> > miniMap;
135 for (reco::TrackCollection::const_iterator
track = glbTracks->begin();
track!=glbTracks->end();
track++ , ++trackIndex) {
143 if (!refitted.empty()) {
146 trajectories.push_back(refit);
147 std::pair<Trajectory*,reco::TrackRef> thisPair(refit,glbRef);
148 miniMap.push_back(thisPair);
154 filler.insert(glbMuons, dytTmp.begin(), dytTmp.end());
156 event.put(
std::move(dytInfo),
"dytInfo");
158 LogTrace(metname) <<
"Done." << endl;
const reco::DYTInfo * getDYTInfo()
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
const std::string metname
std::vector< int > theRefitIndex
std::vector< Track > TrackCollection
collection of Tracks
void setServices(const edm::EventSetup &)
set the services needed by the TrackTransformer
edm::EDGetTokenT< std::vector< Trajectory > > glbMuonsTrajToken
edm::OrphanHandle< reco::TrackCollection > loadTracks(const TrajectoryContainer &, edm::Event &, const TrackerTopology &ttopo, const std::string &="", bool=true)
Convert the trajectories into tracks and load the tracks in the event.
edm::InputTag theGLBCollectionLabel
STA Label.
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
std::vector< std::string > theRefits
T const * product() const
GlobalMuonRefitter * theRefitter
MuonTrackLoader * theTrackLoader
MuonServiceProxy * theService
the event setup proxy, it takes care the services update
T const * product() const
std::vector< Trajectory > refit(const reco::Track &globalTrack, const int theMuonHitsOption, const TrackerTopology *tTopo) const
build combined trajectory from sta Track and tracker RecHits
edm::EDGetTokenT< reco::TrackCollection > glbMuonsToken