CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CosmicMuonTrajectoryBuilder.h
Go to the documentation of this file.
1 #ifndef CosmicMuonTrajectoryBuilder_H
2 #define CosmicMuonTrajectoryBuilder_H
3 
9 
26 
27 namespace edm {class Event; class EventSetup;}
28 
29 class Trajectory;
34 
37 
39 
40 public:
41 
44 
47 
49  std::vector<Trajectory*> trajectories(const TrajectorySeed&);
50 
53  return CandidateContainer();
54  }
55 
56  virtual void setEvent(const edm::Event&);
57 
59 
60  //FIXME
61  const Propagator* propagatorAlong() const {return &*theService->propagator("SteppingHelixPropagatorAlong");}
62 
63  const Propagator* propagatorOpposite() const {return &*theService->propagator("SteppingHelixPropagatorOpposite");}
64 
66 
68 
70 
71  const CosmicMuonUtilities* utilities() const {return smoother()->utilities();}
72 
74 
76 
77  double t0(const DTRecSegment4D* deseg) const;
78 
80 
81 
82 private:
83 
85 
87 
89 
91 
93 
95  void reverseTrajectory(Trajectory&) const;
96 
98  void flipTrajectory(Trajectory&) const;
99 
102 
104  bool selfDuplicate(const Trajectory&) const;
105 
107  void estimateDirection(Trajectory&) const;
108 
110  void getDirectionByTime(Trajectory&) const;
111 
112  std::vector<TrajectoryMeasurement> findBestMeasurements(const DetLayer*, const TrajectoryStateOnSurface&, const Propagator*, const MeasurementEstimator*);
113 
114  void incrementChamberCounters(const DetLayer* layer, int& dtChambers, int& cscChambers, int& rpcChambers, int& totalChambers);
115 
118 
122 
125 
127 
129 
132 
136 
137  unsigned long long theCacheId_DG;
140 
141 };
142 #endif
void reverseTrajectoryPropagationDirection(Trajectory &) const
reverse the propagation direction of a trajectory
MuonCandidate::CandidateContainer CandidateContainer
const Propagator * propagator() const
double t0(const DTRecSegment4D *deseg) const
std::pair< const Trajectory *, reco::TrackRef > TrackCand
MuonBestMeasurementFinder * bestMeasurementFinder() const
void estimateDirection(Trajectory &) const
check the direction of trajectory by checking eta spread
TrajectoryStateOnSurface intermediateState(const TrajectoryStateOnSurface &) const
edm::Handle< CSCRecHit2DCollection > cschits_
MuonTrajectoryUpdator * backwardUpdator() const
std::vector< Trajectory * > trajectories(const TrajectorySeed &)
build trajectories from seed
edm::Handle< DTRecHitCollection > dthits_
const Propagator * propagatorOpposite() const
PropagationDirection
MuonDetLayerMeasurements * theLayerMeasurements
const CosmicMuonUtilities * utilities() const
CosmicMuonSmoother * smoother() const
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
DirectMuonNavigation * navigation() const
void flipTrajectory(Trajectory &) const
flip a trajectory with refit (the momentum direction is opposite)
MuonTrajectoryUpdator * updator() const
void reverseTrajectory(Trajectory &) const
reverse a trajectory without refit (out the measurements order changed)
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
MuonBestMeasurementFinder * theBestMeasurementFinder
void incrementChamberCounters(const DetLayer *layer, int &dtChambers, int &cscChambers, int &rpcChambers, int &totalChambers)
void getDirectionByTime(Trajectory &) const
check the direction of trajectory by checking the timing
PropagationDirection checkDirectionByT0(const DTRecSegment4D *, const DTRecSegment4D *) const
virtual ~CosmicMuonTrajectoryBuilder()
Destructor.
void selectHits(MuonTransientTrackingRecHit::MuonRecHitContainer &) const
CosmicMuonTrajectoryBuilder(const edm::ParameterSet &, const MuonServiceProxy *service, edm::ConsumesCollector &iC)
Constructor.
const Propagator * propagatorAlong() const
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
virtual CandidateContainer trajectories(const TrackCand &)
dummy implementation, unused in this class
std::vector< TrajectoryMeasurement > findBestMeasurements(const DetLayer *, const TrajectoryStateOnSurface &, const Propagator *, const MeasurementEstimator *)
bool selfDuplicate(const Trajectory &) const
check if the trajectory iterates the same hit more than once
const CosmicMuonUtilities * utilities() const
MuonTransientTrackingRecHit::MuonRecHitContainer unusedHits(const DetLayer *, const TrajectoryMeasurement &) const
void build(const TrajectoryStateOnSurface &, const NavigationDirection &, Trajectory &)
std::vector< MuonRecHitPointer > MuonRecHitContainer
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event