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
void setEvent(const edm::Event &event) override
pass the Event to the algo at each event
std::pair< const Trajectory *, reco::TrackRef > TrackCand
bool isBarrel(GeomDetEnumerators::SubDetector m)
StandAloneMuonTrajectoryBuilder theTrajBuilder
MuonCandidate::TrajectoryContainer TrajectoryContainer
MuonSeedFromRecHits theSeeder
TrajectoryContainer trajectories(const TrajectorySeed &) override
return a container of the reconstructed trajectories compatible with a given seed ...
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
recHitContainer::const_iterator const_iterator
~ExhaustiveMuonTrajectoryBuilder() override
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::pair< const_iterator, const_iterator > range
unsigned int detId() const
TrajectoryContainer trajectories(const TrajectorySeed &) override
return a container of the reconstructed trajectories compatible with a given seed ...
PTrajectoryStateOnDet const & startingState() const
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
get the tracking geometry
void clean(TrajectoryContainer &trajectories) const
TrajectorySeed createSeed(float ptmean, float sptmean, MuonTransientTrackingRecHit::ConstMuonRecHitPointer last) const
const GeomDet * idToDet(DetId) const override
void setEvent(const edm::Event &event) override
Pass the Event to the algo at each event.
static MuonRecHitPointer specificBuild(const GeomDet *geom, const TrackingRecHit *rh)
ExhaustiveMuonTrajectoryBuilder(const edm::ParameterSet &pset, const MuonServiceProxy *, edm::ConsumesCollector &)
const LocalTrajectoryParameters & parameters() const
const MuonServiceProxy * theService