99 LogTrace(
category) <<
" STA pt " << staCandIn.second->pt() <<
" rho " << staCandIn.second->innerMomentum().Rho()
100 <<
" R " << staCandIn.second->innerMomentum().R() <<
" theCut " <<
thePtCut;
106 LogTrace(
category) <<
" Found " << regionalTkTracks.size() <<
" tracks within region of interest";
109 vector<TrackCand> trackerTracks =
trackMatcher()->
match(staCand, regionalTkTracks);
110 LogTrace(
category) <<
" Found " << trackerTracks.size() <<
" matching tracker tracks within region of interest";
112 if (trackerTracks.empty()) {
113 if (staCandIn.first ==
nullptr)
114 delete staCand.first;
125 for (vector<TrackCand>::const_iterator tkt = trackerTracks.begin(); tkt != trackerTracks.end(); tkt++) {
126 tkTrajs.push_back(std::make_unique<MuonCandidate>(
nullptr, staCand.second, (*tkt).second,
nullptr));
129 if (tkTrajs.empty()) {
131 if (staCandIn.first ==
nullptr)
132 delete staCand.first;
141 if (staCandIn.first ==
nullptr)
142 delete staCand.first;
152 const std::string category =
"Muon|RecoMuon|GlobalMuonTrajectoryBuilder|makeTkCandCollection";
154 vector<TrackCand> tkCandColl;
156 vector<TrackCand> tkTrackCands;
163 if (!(*recoVertices)[0].isFake())
166 tkTrackCands.push_back(tkCand);
MuonTrajectoryBuilder::CandidateContainer build(const TrackCand &, MuonTrajectoryBuilder::CandidateContainer &) const
build combined trajectory from sta Track and tracker RecHits
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
MuonCandidate::CandidateContainer CandidateContainer
T getParameter(std::string const &) const
edm::InputTag theTkTrackLabel
std::pair< const Trajectory *, reco::TrackRef > TrackCand
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
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
T const * product() const
std::vector< Track > TrackCollection
collection of Tracks
std::vector< Vertex > VertexCollection
collection of Vertex objects
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
edm::EDGetTokenT< reco::VertexCollection > primaryVertexToken
~GlobalMuonTrajectoryBuilder() override
destructor
edm::InputTag thePrimaryVtxLabel
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
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
std::vector< std::unique_ptr< MuonCandidate > > CandidateContainer
edm::Handle< reco::TrackCollection > allTrackerTracks
edm::Handle< reco::VertexCollection > vertexCollection
static int position[264][3]
GlobalMuonTrackMatcher * trackMatcher() const