92 LogTrace(category) <<
" STA pt " << staCandIn.second->pt() <<
" rho " << staCandIn.second->innerMomentum().Rho()
93 <<
" R " << staCandIn.second->innerMomentum().R() <<
" theCut " <<
thePtCut;
99 LogTrace(category) <<
" Found " << regionalTkTracks.size() <<
" tracks within region of interest";
102 vector<TrackCand> trackerTracks =
trackMatcher()->
match(staCand, regionalTkTracks);
103 LogTrace(category) <<
" Found " << trackerTracks.size() <<
" matching tracker tracks within region of interest";
105 if (trackerTracks.empty()) {
106 if (staCandIn.first ==
nullptr)
107 delete staCand.first;
116 LogTrace(category) <<
" Turn tkMatchedTracks into MuonCandidates";
118 for (vector<TrackCand>::const_iterator tkt = trackerTracks.begin(); tkt != trackerTracks.end(); tkt++) {
120 tkTrajs.push_back(muonCand);
123 if (tkTrajs.empty()) {
124 LogTrace(category) <<
" tkTrajs empty";
125 if (staCandIn.first ==
nullptr)
126 delete staCand.first;
132 LogTrace(category) <<
" Found " << result.size() <<
" GLBMuons from one STACand";
135 if (staCandIn.first ==
nullptr)
136 delete staCand.first;
138 for (CandidateContainer::const_iterator it = tkTrajs.begin(); it != tkTrajs.end(); ++it) {
139 if ((*it)->trajectory())
140 delete (*it)->trajectory();
141 if ((*it)->trackerTrajectory())
142 delete (*it)->trackerTrajectory();
156 const std::string category =
"Muon|RecoMuon|GlobalMuonTrajectoryBuilder|makeTkCandCollection";
158 vector<TrackCand> tkCandColl;
160 vector<TrackCand> tkTrackCands;
165 tkTrackCands.push_back(tkCand);
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
MuonCandidate::CandidateContainer CandidateContainer
GlobalMuonTrackMatcher * trackMatcher() const
edm::InputTag theTkTrackLabel
std::pair< const Trajectory *, reco::TrackRef > TrackCand
MuonTrajectoryBuilder::CandidateContainer trajectories(const TrackCand &) override
reconstruct trajectories from standalone and tracker only Tracks
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
std::vector< Track > TrackCollection
collection of Tracks
std::vector< TrackCand > makeTkCandCollection(const TrackCand &) override
make a TrackCand collection using tracker Track, Trajectory information
std::vector< TrackCand > chooseRegionalTrackerTracks(const TrackCand &, const std::vector< TrackCand > &)
choose tracker tracks within region of interest
edm::EDGetTokenT< reco::TrackCollection > allTrackerTracksToken
~GlobalMuonTrajectoryBuilder() override
destructor
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
std::vector< MuonCandidate * > CandidateContainer
double match(const TrackCand &sta, const TrackCand &track, int matchOption=0, int surfaceOption=1) const
GlobalMuonTrajectoryBuilder(const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &)
constructor with Parameter Set and MuonServiceProxy
edm::Handle< reco::TrackCollection > allTrackerTracks
MuonTrajectoryBuilder::CandidateContainer build(const TrackCand &, MuonTrajectoryBuilder::CandidateContainer &) const
build combined trajectory from sta Track and tracker RecHits
static int position[264][3]