1 #ifndef RecoMuon_GlobalTrackingTools_GlobalTrajectoryBuilderBase_H 2 #define RecoMuon_GlobalTrackingTools_GlobalTrajectoryBuilderBase_H 56 typedef std::vector<Trajectory>
TC;
57 typedef TC::const_iterator
TI;
133 if (barrel_a && barrel_b)
134 return a->det()->surface().position().perp() <
b->det()->surface().position().perp();
136 else if (!barrel_a && !barrel_b)
137 return fabs(
a->globalPosition().z()) < fabs(
b->globalPosition().z());
138 else if (barrel_a && !barrel_b)
140 else if (!barrel_a && barrel_b)
const TrackerTopology * theTopo
std::vector< Trajectory > TC
MuonTrajectoryBuilder::CandidateContainer build(const TrackCand &, MuonTrajectoryBuilder::CandidateContainer &) const
build combined trajectory from sta Track and tracker RecHits
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > theTopoToken
TransientTrackingRecHit::ConstRecHitContainer getTransientRecHits(const reco::Track &) const
get transient RecHits of a Track
MuonCandidate::CandidateContainer CandidateContainer
ConstRecHitContainer selectMuonHits(const Trajectory &, const std::vector< int > &) const
select muon hits compatible with trajectory; check hits in chambers with showers
virtual std::vector< TrackCand > makeTkCandCollection(const TrackCand &)=0
make a TrackCand collection using tracker Track, Trajectory information
void addTraj(TrackCand &)
if TrackCand has only a TrackRef, attempt to add Trajectory*
GlobalMuonRefitter * theGlbRefitter
std::pair< const Trajectory *, reco::TrackRef > TrackCand
ConstRecHitContainer selectTrackerHits(const ConstRecHitContainer &) const
select tracker hits; exclude some tracker hits in the global trajectory
TransientTrackingRecHit::RecHitPointer RecHitPointer
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
const MuonServiceProxy * service() const
const TransientTrackingRecHitBuilder * theMuonRecHitBuilder
void checkMuonHits(const reco::Track &, ConstRecHitContainer &, ConstRecHitContainer &, std::vector< int > &) const
check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit ...
std::vector< ConstRecHitPointer > RecHitContainer
MuonCandidate::TrajectoryContainer TrajectoryContainer
void fixTEC(ConstRecHitContainer &all, double scl_x, double scl_y) const
rescale errors of outermost TEC RecHit
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > theMSMakerToken
std::vector< TrackCand > chooseRegionalTrackerTracks(const TrackCand &, const std::vector< TrackCand > &)
choose tracker tracks within region of interest
const TransientTrackingRecHitBuilder * theTrackerRecHitBuilder
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
~GlobalTrajectoryBuilderBase() override
destructor
std::string theTrackerPropagatorName
TrackTransformer * theTrackTransformer
double trackProbability(const Trajectory &) const
calculate chi2 probability (-ln(P))
MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
void printHits(const ConstRecHitContainer &) const
print all RecHits of a trajectory
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theFieldToken
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const MagneticField * theField
bool operator()(const TransientTrackingRecHit::ConstRecHitPointer &a, const TransientTrackingRecHit::ConstRecHitPointer &b) const
MuonDetLayerMeasurements * theLayerMeasurements
TransientTrackingRecHit::RecHitContainer RecHitContainer
const MuonServiceProxy * theService
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
std::shared_ptr< TrackingRecHit const > RecHitPointer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
GlobalTrajectoryBuilderBase(const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &)
constructor with Parameter Set and MuonServiceProxy
const MultipleScatteringParametrisationMaker * theMSMaker
RectangularEtaPhiTrackingRegion defineRegionOfInterest(const reco::TrackRef &) const
define region of interest with tracker
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theMuonRecHitBuilderToken
GlobalMuonTrackMatcher * theTrackMatcher
const Trajectory * chooseTrajectory(const std::vector< Trajectory *> &, int) const
choose final trajectory
const edm::Event * theEvent
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
MuonTrackingRegionBuilder * theRegionBuilder
std::shared_ptr< MuonTransientTrackingRecHit const > ConstMuonRecHitPointer
std::vector< MuonRecHitPointer > MuonRecHitContainer
GlobalMuonTrackMatcher * trackMatcher() const
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theTrackerRecHitBuilderToken
MuonTrajectoryBuilder::TrajectoryContainer trajectories(const TrajectorySeed &) override
dummy implementation, unused in this class
RefitDirection checkRecHitsOrdering(const ConstRecHitContainer &) const
This does nothing now.