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
TSGFromPropagation::theBeamSpotInputTag
edm::InputTag theBeamSpotInputTag
Definition: TSGFromPropagation.h:153
TSGFromPropagation::innerState
TrajectoryStateOnSurface innerState(const TrackCand &) const
Definition: TSGFromPropagation.cc:235
TrackerSeedGenerator::TrackCand
std::pair< const Trajectory *, reco::TrackRef > TrackCand
Definition: TrackerSeedGenerator.h:30
MeasurementTrackerEvent.h
FreeTrajectoryState.h
TSGFromPropagation::theResetMethod
std::string theResetMethod
Definition: TSGFromPropagation.h:138
Chi2MeasurementEstimator
Definition: Chi2MeasurementEstimator.h:15
TSGFromPropagation::findMeasurements
std::vector< TrajectoryMeasurement > findMeasurements(const DetLayer *, const TrajectoryStateOnSurface &) const
look for measurements on the first compatible layer
Definition: TSGFromPropagation.cc:292
TSGFromPropagation::theErrorMatrixAdjuster
MuonErrorMatrix * theErrorMatrixAdjuster
Definition: TSGFromPropagation.h:144
DetLayer
Definition: DetLayer.h:21
TSGFromPropagation::validMeasurements
void validMeasurements(std::vector< TrajectoryMeasurement > &) const
select valid measurements
Definition: TSGFromPropagation.cc:286
TSGFromPropagation::estimator
const Chi2MeasurementEstimator * estimator() const
Definition: TSGFromPropagation.h:60
TSGFromPropagation::passSelection
bool passSelection(const TrajectoryStateOnSurface &) const
check some quantity and beam-spot compatibility and decide to continue
Definition: TSGFromPropagation.cc:319
TSGFromPropagation::theConfig
edm::ParameterSet theConfig
Definition: TSGFromPropagation.h:150
edm::EDGetTokenT< reco::BeamSpot >
TrackerTopology
Definition: TrackerTopology.h:16
TSGFromPropagation::increasingEstimate::operator()
bool operator()(const TrajectoryMeasurement &lhs, const TrajectoryMeasurement &rhs) const
Definition: TSGFromPropagation.h:94
TrackerSeedGenerator.h
TSGFromPropagation::theAdjustAtIp
bool theAdjustAtIp
Definition: TSGFromPropagation.h:146
TSGFromPropagation::theService
const MuonServiceProxy * theService
Definition: TSGFromPropagation.h:120
TrajectoryMeasurement.h
TSGFromPropagation
Definition: TSGFromPropagation.h:31
TSGFromPropagation::theSelectStateFlag
bool theSelectStateFlag
Definition: TSGFromPropagation.h:140
TSGFromPropagation::trackerSeeds
void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *, std::vector< TrajectorySeed > &) override
generate seed(s) for a track
Definition: TSGFromPropagation.cc:64
edm::Handle< MeasurementTrackerEvent >
TSGFromPropagation::getRescalingFactor
void getRescalingFactor(const TrackCand &staMuon)
Definition: TSGFromPropagation.cc:345
TrajectoryStateUpdator.h
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
TSGFromPropagation::isInvalid
Definition: TSGFromPropagation.h:99
TSGFromPropagation::propagator
edm::ESHandle< Propagator > propagator() const
Definition: TSGFromPropagation.h:62
MuonErrorMatrix.h
Propagator
Definition: Propagator.h:44
DetId
Definition: DetId.h:17
MeasurementTracker
Definition: MeasurementTracker.h:21
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
BeamSpot.h
LayerMeasurements.h
TSGFromPropagation::TSGFromPropagation
TSGFromPropagation(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
constructor
Definition: TSGFromPropagation.cc:29
edm::ESHandle< Propagator >
TSGFromPropagation::theSigmaZ
double theSigmaZ
Definition: TSGFromPropagation.h:148
TSGFromPropagation::thePropagatorName
std::string thePropagatorName
Definition: TSGFromPropagation.h:142
TSGFromPropagation::theTracker
edm::ESHandle< GeometricSearchTracker > theTracker
Definition: TSGFromPropagation.h:111
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackerSeedGenerator
Definition: TrackerSeedGenerator.h:24
TSGFromPropagation::theUpdator
const TrajectoryStateUpdator * theUpdator
Definition: TSGFromPropagation.h:122
TSGFromPropagation::setEvent
void setEvent(const edm::Event &) override
set an event
Definition: TSGFromPropagation.cc:202
edm::ParameterSet
Definition: ParameterSet.h:36
TSGFromPropagation::outerTkState
TrajectoryStateOnSurface outerTkState(const TrackCand &) const
Definition: TSGFromPropagation.cc:256
TSGFromPropagation::theMaxChi2
double theMaxChi2
Definition: TSGFromPropagation.h:128
TrajectoryStateTransform
Definition: TrajectoryStateTransform.h:47
TSGFromPropagation::theMeasTrackerName
std::string theMeasTrackerName
Definition: TSGFromPropagation.h:113
TSGFromPropagation::theMeasTracker
edm::ESHandle< MeasurementTracker > theMeasTracker
Definition: TSGFromPropagation.h:114
MuonServiceProxy::propagator
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
Definition: MuonServiceProxy.cc:177
DirectTrackerNavigation
Definition: DirectTrackerNavigation.h:26
TSGFromPropagation::theCategory
std::string theCategory
Definition: TSGFromPropagation.h:109
TSGFromPropagation::isInvalid::operator()
bool operator()(const TrajectoryMeasurement &measurement)
Definition: TSGFromPropagation.h:100
TSGFromPropagation::theMeasurementTrackerEventToken
edm::EDGetTokenT< MeasurementTrackerEvent > theMeasurementTrackerEventToken
Definition: TSGFromPropagation.h:155
TSGFromPropagation::theBeamSpotToken
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
Definition: TSGFromPropagation.h:154
TSGFromPropagation::dxyDis
double dxyDis(const TrajectoryStateOnSurface &tsos) const
Definition: TSGFromPropagation.cc:334
TSGFromPropagation::theUseVertexStateFlag
bool theUseVertexStateFlag
Definition: TSGFromPropagation.h:134
TSGFromPropagation::zDis
double zDis(const TrajectoryStateOnSurface &tsos) const
Definition: TSGFromPropagation.cc:340
TSGFromPropagation::beamSpot
edm::Handle< reco::BeamSpot > beamSpot
Definition: TSGFromPropagation.h:152
TSGFromPropagation::theEstimator
const Chi2MeasurementEstimator * theEstimator
Definition: TSGFromPropagation.h:124
TSGFromPropagation::theMeasurementTrackerEventTag
edm::InputTag theMeasurementTrackerEventTag
Definition: TSGFromPropagation.h:115
TSGFromPropagation::~TSGFromPropagation
~TSGFromPropagation() override
destructor
Definition: TSGFromPropagation.cc:52
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
TrajectoryMeasurement::estimate
float estimate() const
Definition: TrajectoryMeasurement.h:192
TrackInfoProducer_cfi.updatedState
updatedState
Definition: TrackInfoProducer_cfi.py:6
TSGFromPropagation::adjust
void adjust(FreeTrajectoryState &) const
adjust the error matrix of the FTS
Definition: TSGFromPropagation.cc:356
TSGFromPropagation::theMeasTrackerEvent
edm::Handle< MeasurementTrackerEvent > theMeasTrackerEvent
Definition: TSGFromPropagation.h:116
GeometricSearchTracker
Definition: GeometricSearchTracker.h:14
MuonServiceProxy.h
TSGFromPropagation::theUpdateStateFlag
bool theUpdateStateFlag
Definition: TSGFromPropagation.h:136
TrajectorySeed
Definition: TrajectorySeed.h:17
MuonErrorMatrix
Definition: MuonErrorMatrix.h:24
TrackingRegion
Definition: TrackingRegion.h:38
TSGFromPropagation::createSeed
TrajectorySeed createSeed(const TrajectoryStateOnSurface &, const DetId &) const
create a hitless seed from a trajectory state
Definition: TSGFromPropagation.cc:274
TSGFromPropagation::increasingEstimate
Definition: TSGFromPropagation.h:93
ConsumesCollector.h
TSGFromPropagation::theTSTransformer
TrajectoryStateTransform * theTSTransformer
Definition: TSGFromPropagation.h:126
TrajectoryStateUpdator
Definition: TrajectoryStateUpdator.h:14
ParameterSet.h
MuonServiceProxy
Definition: MuonServiceProxy.h:38
TSGFromPropagation::init
void init(const MuonServiceProxy *) override
initialize
Definition: TSGFromPropagation.cc:151
edm::Event
Definition: Event.h:73
TSGFromPropagation::theFixedErrorRescaling
double theFixedErrorRescaling
Definition: TSGFromPropagation.h:132
TrajectoryMeasurement
Definition: TrajectoryMeasurement.h:25
TSGFromPropagation::theFlexErrorRescaling
double theFlexErrorRescaling
Definition: TSGFromPropagation.h:130
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
TSGFromPropagation::updator
const TrajectoryStateUpdator * updator() const
Definition: TSGFromPropagation.h:58
TSGFromPropagation::theNavigation
const DirectTrackerNavigation * theNavigation
Definition: TSGFromPropagation.h:118
TSGFromPropagation::theCacheId_TG
unsigned long long theCacheId_TG
Definition: TSGFromPropagation.h:107
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::OwnVector< TrackingRecHit >
TSGFromPropagation::theCacheId_MT
unsigned long long theCacheId_MT
Definition: TSGFromPropagation.h:106