10 : theTrajBuilder(pset, proxy,iC),
30 pt *= localTrajectoryParameters.charge();
34 float sigmapt =
sqrt(err00)*pt*
pt;
39 recHitItr != range.second; ++recHitItr)
71 unsigned ntraj = trajectories.size();
72 for(
unsigned i = 0;
i < ntraj; ++
i)
74 int nhits = trajectories[
i]->foundHits();
75 if(nhits > best_nhits)
80 else if(nhits == best_nhits && trajectories[
i]->chiSquared() < trajectories[best]->chiSquared())
86 for(
unsigned i = 0;
i < ntraj; ++
i)
89 result.push_back(trajectories[best]);
91 delete trajectories[
i];
94 trajectories.swap(result);
MuonCandidate::CandidateContainer CandidateContainer
std::pair< const Trajectory *, reco::TrackRef > TrackCand
virtual void setEvent(const edm::Event &event)
pass the Event to the algo at each event
StandAloneMuonTrajectoryBuilder theTrajBuilder
MuonCandidate::TrajectoryContainer TrajectoryContainer
virtual ~ExhaustiveMuonTrajectoryBuilder()
MuonSeedFromRecHits theSeeder
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
virtual void setEvent(const edm::Event &event)
Pass the Event to the algo at each event.
recHitContainer::const_iterator const_iterator
std::pair< const_iterator, const_iterator > range
unsigned int detId() const
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
PTrajectoryStateOnDet const & startingState() const
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
void clean(TrajectoryContainer &trajectories) const
TrajectoryContainer trajectories(const TrajectorySeed &)
return a container of the reconstructed trajectories compatible with a given seed ...
TrajectorySeed createSeed(float ptmean, float sptmean, MuonTransientTrackingRecHit::ConstMuonRecHitPointer last) const
const GeomDet * idToDet(DetId) const override
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
virtual TrajectoryContainer trajectories(const TrajectorySeed &)
return a container of the reconstructed trajectories compatible with a given seed ...
ExhaustiveMuonTrajectoryBuilder(const edm::ParameterSet &pset, const MuonServiceProxy *, edm::ConsumesCollector &)
const LocalTrajectoryParameters & parameters() const
const MuonServiceProxy * theService