CMS 3D CMS Logo

CosmicMuonSmoother.h
Go to the documentation of this file.
1 #ifndef CosmicMuonProducer_CosmicMuonSmoother_H
2 #define CosmicMuonProducer_CosmicMuonSmoother_H
3 
10 
18 
19 class Propagator;
20 class KFUpdator;
21 class MuonServiceProxy;
23 
24 namespace edm {class ParameterSet; class Event; class EventSetup;}
25 
26 class Trajectory;
28 
33 
34 
36 public:
37 
38 
40  ~CosmicMuonSmoother() override;
41 
42  Trajectory trajectory(const Trajectory&) const override;
43 
44  TrajectoryContainer trajectories(const Trajectory& traj) const override {
46  }
47 
48  CosmicMuonSmoother* clone() const override {
49  return new CosmicMuonSmoother(*this);
50  }
51 
54  const ConstRecHitContainer& hits,
55  const TrajectoryStateOnSurface& firstPredTsos) const;
56 
57 
58  const Propagator* propagatorAlong() const {return &*theService->propagator(thePropagatorAlongName);}
59 
60  const Propagator* propagatorOpposite() const {return &*theService->propagator(thePropagatorOppositeName);}
61 
62  const KFUpdator* updator() const {return theUpdator;}
63 
64  const CosmicMuonUtilities* utilities() const {return theUtilities; }
65 
66  const Chi2MeasurementEstimator* estimator() const {return theEstimator;}
67 
68  std::vector<Trajectory> fit(const Trajectory&) const;
69  std::vector<Trajectory> fit(const TrajectorySeed& seed,
70  const ConstRecHitContainer& hits,
71  const TrajectoryStateOnSurface& firstPredTsos) const;
72 
73 
74  void setHitCloner(TkCloner const * hc) override {}
75 
76 private:
77  std::vector<Trajectory> smooth(const std::vector<Trajectory>& ) const;
78  std::vector<Trajectory> smooth(const Trajectory&) const;
79 
80  TrajectoryStateOnSurface initialState(const Trajectory&) const;
81 
82  void sortHitsAlongMom(ConstRecHitContainer& hits, const TrajectoryStateOnSurface&) const;
83 
87 
89 
94 
95 };
96 #endif
const MuonServiceProxy * theService
const Propagator * propagatorOpposite() const
const Propagator * propagatorAlong() const
virtual TrajectoryContainer trajectories(const Trajectory &traj) const
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
const Chi2MeasurementEstimator * theEstimator
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
void setHitCloner(TkCloner const *hc) override
const CosmicMuonUtilities * theUtilities
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
std::string thePropagatorAlongName
const KFUpdator * theUpdator
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
const KFUpdator * updator() const
HLT enums.
susybsm::HSCParticleCollection hc
Definition: classes.h:25
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
std::vector< Trajectory > TrajectoryContainer
CosmicMuonSmoother * clone() const override
const CosmicMuonUtilities * utilities() const
const Chi2MeasurementEstimator * estimator() const
std::vector< MuonRecHitPointer > MuonRecHitContainer
TrajectoryContainer trajectories(const Trajectory &traj) const override
std::string thePropagatorOppositeName