9 : theTrajBuilder(pset, proxy),
26 bool isBarrel = (detId.
subdetId() == 1);
28 double pt = (isBarrel) ? -
p.z() :
p.perp();
29 pt *= localTrajectoryParameters.charge();
33 float sigmapt =
sqrt(err00)*pt*pt;
38 recHitItr != range.second; ++recHitItr)
48 if(!result.empty())
clean(result);
72 unsigned ntraj = trajectories.size();
73 for(
unsigned i = 0;
i < ntraj; ++
i)
75 int nhits = trajectories[
i]->foundHits();
76 if(nhits > best_nhits)
81 else if(nhits == best_nhits && trajectories[
i]->chiSquared() < trajectories[best]->chiSquared())
87 for(
unsigned i = 0;
i < ntraj; ++
i)
90 result.push_back(trajectories[best]);
92 delete trajectories[
i];
95 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
ExhaustiveMuonTrajectoryBuilder(const edm::ParameterSet &pset, const MuonServiceProxy *)
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
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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
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 ...
const LocalTrajectoryParameters & parameters() const
const MuonServiceProxy * theService