9 : theTrajBuilder(pset, proxy, iC), theSeeder(), theService(proxy) {}
21 pt *= localTrajectoryParameters.charge();
25 float sigmapt =
sqrt(err00) * pt *
pt;
28 for (
auto const& recHit : seed.
recHits()) {
47 if (trajectories.empty()) {
52 unsigned ntraj = trajectories.size();
53 for (
unsigned i = 0;
i < ntraj; ++
i) {
54 int nhits = trajectories[
i]->foundHits();
55 if (nhits > best_nhits) {
58 }
else if (nhits == best_nhits && trajectories[
i]->chiSquared() < trajectories[best]->chiSquared()) {
64 result.emplace_back(
std::move(trajectories[best]));
65 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
StandAloneMuonTrajectoryBuilder theTrajBuilder
MuonCandidate::TrajectoryContainer TrajectoryContainer
MuonSeedFromRecHits theSeeder
TrajectoryContainer trajectories(const TrajectorySeed &) override
return a container of the reconstructed trajectories compatible with a given seed ...
~ExhaustiveMuonTrajectoryBuilder() override
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int detId() const
TrajectoryContainer trajectories(const TrajectorySeed &) override
return a container of the reconstructed trajectories compatible with a given seed ...
RecHitRange recHits() const
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
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