CMS 3D CMS Logo

TSGFromPropagation.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackerSeedGenerator_TSGFromPropagation_H
2 #define RecoMuon_TrackerSeedGenerator_TSGFromPropagation_H
3 
22 
24 class Propagator;
25 class MeasurementTracker;
29 class TrackerTopology;
30 
32 public:
35 
37 
39  ~TSGFromPropagation() override;
40 
42  void trackerSeeds(const TrackCand&,
43  const TrackingRegion&,
44  const TrackerTopology*,
45  std::vector<TrajectorySeed>&) override;
46 
48  void init(const MuonServiceProxy*) override;
49 
51  void setEvent(const edm::Event&) override;
52 
53 private:
55 
57 
58  const TrajectoryStateUpdator* updator() const { return theUpdator; }
59 
60  const Chi2MeasurementEstimator* estimator() const { return theEstimator; }
61 
63 
66 
69  const edm::OwnVector<TrackingRecHit>& container,
70  const DetId& id) const;
71 
73  void validMeasurements(std::vector<TrajectoryMeasurement>&) const;
74 
76  std::vector<TrajectoryMeasurement> findMeasurements(const DetLayer*, const TrajectoryStateOnSurface&) const;
77 
79  bool passSelection(const TrajectoryStateOnSurface&) const;
80 
81  void getRescalingFactor(const TrackCand& staMuon);
82 
84  void adjust(FreeTrajectoryState&) const;
85 
87  void adjust(TrajectoryStateOnSurface&) const;
88 
89  double dxyDis(const TrajectoryStateOnSurface& tsos) const;
90 
91  double zDis(const TrajectoryStateOnSurface& tsos) const;
92 
94  bool operator()(const TrajectoryMeasurement& lhs, const TrajectoryMeasurement& rhs) const {
95  return lhs.estimate() < rhs.estimate();
96  }
97  };
98 
99  struct isInvalid {
100  bool operator()(const TrajectoryMeasurement& measurement) {
101  return (((measurement).recHit() == nullptr) || !((measurement).recHit()->isValid()) ||
102  !((measurement).updatedState().isValid()));
103  }
104  };
105 
106  unsigned long long theCacheId_MT;
107  unsigned long long theCacheId_TG;
108 
110 
112 
117 
119 
121 
123 
125 
127 
128  double theMaxChi2;
129 
131 
133 
135 
137 
139 
141 
143 
145 
147 
148  double theSigmaZ;
149 
151 
156 };
157 
158 #endif
edm::Handle< MeasurementTrackerEvent > theMeasTrackerEvent
void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *, std::vector< TrajectorySeed > &) override
generate seed(s) for a track
const MuonServiceProxy * theService
TrajectoryStateTransform * theTSTransformer
bool operator()(const TrajectoryMeasurement &measurement)
TrajectoryStateOnSurface outerTkState(const TrackCand &) const
void init(const MuonServiceProxy *) override
initialize
double zDis(const TrajectoryStateOnSurface &tsos) const
unsigned long long theCacheId_TG
TSGFromPropagation(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
constructor
std::pair< const Trajectory *, reco::TrackRef > TrackCand
edm::ParameterSet theConfig
const TrajectoryStateUpdator * theUpdator
void setEvent(const edm::Event &) override
set an event
TrajectoryStateOnSurface innerState(const TrackCand &) const
edm::ESHandle< MeasurementTracker > theMeasTracker
std::vector< TrajectoryMeasurement > findMeasurements(const DetLayer *, const TrajectoryStateOnSurface &) const
look for measurements on the first compatible layer
void getRescalingFactor(const TrackCand &staMuon)
bool passSelection(const TrajectoryStateOnSurface &) const
check some quantity and beam-spot compatibility and decide to continue
void validMeasurements(std::vector< TrajectoryMeasurement > &) const
select valid measurements
double dxyDis(const TrajectoryStateOnSurface &tsos) const
edm::EDGetTokenT< MeasurementTrackerEvent > theMeasurementTrackerEventToken
const TrajectoryStateUpdator * updator() const
bool operator()(const TrajectoryMeasurement &lhs, const TrajectoryMeasurement &rhs) const
edm::InputTag theMeasurementTrackerEventTag
std::string thePropagatorName
Definition: DetId.h:17
edm::ESHandle< GeometricSearchTracker > theTracker
TrajectorySeed createSeed(const TrajectoryStateOnSurface &, const DetId &) const
create a hitless seed from a trajectory state
const DirectTrackerNavigation * theNavigation
std::string theMeasTrackerName
unsigned long long theCacheId_MT
edm::InputTag theBeamSpotInputTag
const Chi2MeasurementEstimator * estimator() const
MuonErrorMatrix * theErrorMatrixAdjuster
edm::ESHandle< Propagator > propagator() const
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
void adjust(FreeTrajectoryState &) const
adjust the error matrix of the FTS
const Chi2MeasurementEstimator * theEstimator
edm::Handle< reco::BeamSpot > beamSpot
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
~TSGFromPropagation() override
destructor