|
|
Go to the documentation of this file.
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;
118 for (vector<TrackCand>::const_iterator tkt = trackerTracks.begin(); tkt != trackerTracks.end(); tkt++) {
119 tkTrajs.push_back(std::make_unique<MuonCandidate>(
nullptr, staCand.second, (*tkt).second,
nullptr));
122 if (tkTrajs.empty()) {
124 if (staCandIn.first ==
nullptr)
125 delete staCand.first;
134 if (staCandIn.first ==
nullptr)
135 delete staCand.first;
145 const std::string category =
"Muon|RecoMuon|GlobalMuonTrajectoryBuilder|makeTkCandCollection";
147 vector<TrackCand> tkCandColl;
149 vector<TrackCand> tkTrackCands;
154 tkTrackCands.push_back(tkCand);
std::vector< TrackCand > chooseRegionalTrackerTracks(const TrackCand &, const std::vector< TrackCand > &)
choose tracker tracks within region of interest
double match(const TrackCand &sta, const TrackCand &track, int matchOption=0, int surfaceOption=1) const
GlobalMuonTrackMatcher * trackMatcher() const
MuonTrajectoryBuilder::CandidateContainer build(const TrackCand &, MuonTrajectoryBuilder::CandidateContainer &) const
build combined trajectory from sta Track and tracker RecHits
MuonCandidate::CandidateContainer CandidateContainer
MuonTrajectoryBuilder::CandidateContainer trajectories(const TrackCand &) override
reconstruct trajectories from standalone and tracker only Tracks
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
std::vector< std::unique_ptr< MuonCandidate > > CandidateContainer
static int position[264][3]
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
std::vector< TrackCand > makeTkCandCollection(const TrackCand &) override
make a TrackCand collection using tracker Track, Trajectory information
~GlobalMuonTrajectoryBuilder() override
destructor
T getParameter(std::string const &) const
std::pair< const Trajectory *, reco::TrackRef > TrackCand
edm::EDGetTokenT< reco::TrackCollection > allTrackerTracksToken
std::vector< Track > TrackCollection
collection of Tracks
GlobalMuonTrajectoryBuilder(const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &)
constructor with Parameter Set and MuonServiceProxy
edm::Handle< reco::TrackCollection > allTrackerTracks
edm::InputTag theTkTrackLabel