90 const string metname =
"Muon|RecoMuon|TevMuonProducer";
92 LogTrace(metname) <<
"TeV Muon Reconstruction started" << endl;
110 auto dytInfo = std::make_unique<DYTestimators>();
112 size_t GLBmuonSize = glbMuons->size();
113 vector<DYTInfo> dytTmp(GLBmuonSize);
119 vector<MuonTrajectoryBuilder::TrackCand> glbTrackCands;
125 for (
unsigned int ww = 0; ww <
theRefits.size(); ww++) {
127 std::vector<std::pair<Trajectory*, reco::TrackRef> > miniMap;
131 for (reco::TrackCollection::const_iterator
track = glbTracks->begin();
track != glbTracks->end();
132 track++, ++trackIndex) {
141 if (!refitted.empty()) {
144 trajectories.push_back(refit);
145 std::pair<Trajectory*, reco::TrackRef> thisPair(refit, glbRef);
146 miniMap.push_back(thisPair);
152 filler.insert(glbMuons, dytTmp.begin(), dytTmp.end());
154 event.put(
std::move(dytInfo),
"dytInfo");
156 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