CMS 3D CMS Logo

CosmicMuonTrajectoryBuilder.h
Go to the documentation of this file.
1 #ifndef CosmicMuonTrajectoryBuilder_H
2 #define CosmicMuonTrajectoryBuilder_H
3 
9 
26 
27 namespace edm {
28  class Event;
29  class EventSetup;
30 } // namespace edm
31 
32 class Trajectory;
37 
40 
42 public:
45 
48 
51 
54 
55  void setEvent(const edm::Event&) override;
56 
58 
59  //FIXME
60  const Propagator* propagatorAlong() const { return &*theService->propagator("SteppingHelixPropagatorAlong"); }
61 
62  const Propagator* propagatorOpposite() const { return &*theService->propagator("SteppingHelixPropagatorOpposite"); }
63 
65 
67 
69 
70  const CosmicMuonUtilities* utilities() const { return smoother()->utilities(); }
71 
73 
75 
76  double t0(const DTRecSegment4D* deseg) const;
77 
79 
80 private:
82 
84 
86 
88 
90 
92  void reverseTrajectory(Trajectory&) const;
93 
95  void flipTrajectory(Trajectory&) const;
96 
99 
101  bool selfDuplicate(const Trajectory&) const;
102 
104  void estimateDirection(Trajectory&) const;
105 
107  void getDirectionByTime(Trajectory&) const;
108 
109  std::vector<TrajectoryMeasurement> findBestMeasurements(const DetLayer*,
111  const Propagator*,
112  const MeasurementEstimator*);
113 
115  const DetLayer* layer, int& dtChambers, int& cscChambers, int& rpcChambers, int& totalChambers);
116 
119 
123 
126 
128 
130 
133 
137 
138  unsigned long long theCacheId_DG;
141 };
142 #endif
CandidateContainer trajectories(const TrackCand &) override
dummy implementation, unused in this class
MuonCandidate::CandidateContainer CandidateContainer
const CosmicMuonUtilities * utilities() const
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
std::pair< const Trajectory *, reco::TrackRef > TrackCand
edm::Handle< CSCRecHit2DCollection > cschits_
MuonTransientTrackingRecHit::MuonRecHitContainer unusedHits(const DetLayer *, const TrajectoryMeasurement &) const
void reverseTrajectory(Trajectory &) const
reverse a trajectory without refit (out the measurements order changed)
MuonBestMeasurementFinder * bestMeasurementFinder() const
const Propagator * propagatorAlong() const
const Propagator * propagator() const
void reverseTrajectoryPropagationDirection(Trajectory &) const
reverse the propagation direction of a trajectory
bool selfDuplicate(const Trajectory &) const
check if the trajectory iterates the same hit more than once
MuonCandidate::TrajectoryContainer TrajectoryContainer
edm::Handle< DTRecHitCollection > dthits_
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
void getDirectionByTime(Trajectory &) const
check the direction of trajectory by checking the timing
PropagationDirection
MuonDetLayerMeasurements * theLayerMeasurements
MuonTrajectoryUpdator * backwardUpdator() const
double t0(const DTRecSegment4D *deseg) const
void estimateDirection(Trajectory &) const
check the direction of trajectory by checking eta spread
TrajectoryContainer trajectories(const TrajectorySeed &) override
build trajectories from seed
PropagationDirection checkDirectionByT0(const DTRecSegment4D *, const DTRecSegment4D *) const
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
MuonBestMeasurementFinder * theBestMeasurementFinder
const CosmicMuonUtilities * utilities() const
void incrementChamberCounters(const DetLayer *layer, int &dtChambers, int &cscChambers, int &rpcChambers, int &totalChambers)
~CosmicMuonTrajectoryBuilder() override
Destructor.
void selectHits(MuonTransientTrackingRecHit::MuonRecHitContainer &) const
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
TrajectoryStateOnSurface intermediateState(const TrajectoryStateOnSurface &) const
DirectMuonNavigation * navigation() const
MuonTrajectoryUpdator * updator() const
HLT enums.
void flipTrajectory(Trajectory &) const
flip a trajectory with refit (the momentum direction is opposite)
CosmicMuonTrajectoryBuilder(const edm::ParameterSet &, const MuonServiceProxy *service, edm::ConsumesCollector &iC)
Constructor.
std::vector< TrajectoryMeasurement > findBestMeasurements(const DetLayer *, const TrajectoryStateOnSurface &, const Propagator *, const MeasurementEstimator *)
CosmicMuonSmoother * smoother() const
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
void build(const TrajectoryStateOnSurface &, const NavigationDirection &, Trajectory &)
std::vector< MuonRecHitPointer > MuonRecHitContainer
const Propagator * propagatorOpposite() const