CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TSGFromPropagation.h
Go to the documentation of this file.
1 #ifndef RecoMuon_TrackerSeedGenerator_TSGFromPropagation_H
2 #define RecoMuon_TrackerSeedGenerator_TSGFromPropagation_H
3 
21 
22 class LayerMeasurements;
24 class Propagator;
25 class MeasurementTracker;
29 class TrackerTopology;
30 
32 
33 public:
36 
38 
40  virtual ~TSGFromPropagation();
41 
43  void trackerSeeds(const TrackCand&, const TrackingRegion&, const TrackerTopology *, std::vector<TrajectorySeed>&);
44 
46  void init(const MuonServiceProxy*);
47 
49  void setEvent(const edm::Event&);
50 
51 private:
52 
54 
56 
58 
59  const TrajectoryStateUpdator* updator() const {return theUpdator;}
60 
61  const Chi2MeasurementEstimator* estimator() const { return theEstimator; }
62 
64 
67 
69  TrajectorySeed createSeed(const TrajectoryStateOnSurface& tsos, const edm::OwnVector<TrackingRecHit>& container, const DetId& id) const;
70 
72  void validMeasurements(std::vector<TrajectoryMeasurement>&) const;
73 
75  std::vector<TrajectoryMeasurement> findMeasurements_new(const DetLayer*, const TrajectoryStateOnSurface&) const;
76 
78  std::vector<TrajectoryMeasurement> findMeasurements(const DetLayer*, const TrajectoryStateOnSurface&) const;
79 
81  bool passSelection(const TrajectoryStateOnSurface&) const;
82 
83  void getRescalingFactor(const TrackCand& staMuon);
84 
86  void adjust(FreeTrajectoryState &) const;
87 
89  void adjust(TrajectoryStateOnSurface &) const;
90 
91  double dxyDis(const TrajectoryStateOnSurface& tsos) const;
92 
93  double zDis(const TrajectoryStateOnSurface& tsos) const;
94 
97  const TrajectoryMeasurement& rhs) const{
98  return lhs.estimate() < rhs.estimate();
99  }
100  };
101 
102  struct isInvalid {
103  bool operator()(const TrajectoryMeasurement& measurement) {
104  return ( ((measurement).recHit() == 0) || !((measurement).recHit()->isValid()) || !((measurement).updatedState().isValid()) );
105  }
106  };
107 
108  unsigned long long theCacheId_MT;
109  unsigned long long theCacheId_TG;
110 
112 
114 
116 
119 
121 
123 
125 
127 
129 
130  double theMaxChi2;
131 
133 
135 
137 
139 
141 
143 
145 
147 
149 
150  double theSigmaZ;
151 
153 
156 
157 };
158 
159 #endif
TSGFromPropagation(const edm::ParameterSet &pset)
constructor
const MuonServiceProxy * theService
TrajectoryStateTransform * theTSTransformer
bool operator()(const TrajectoryMeasurement &measurement)
TrajectoryStateOnSurface outerTkState(const TrackCand &) const
std::pair< const Trajectory *, reco::TrackRef > TrackCand
double zDis(const TrajectoryStateOnSurface &tsos) const
unsigned long long theCacheId_TG
void init(const MuonServiceProxy *)
initialize
edm::ParameterSet theConfig
const TrajectoryStateUpdator * theUpdator
virtual ~TSGFromPropagation()
destructor
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
const TrajectoryStateUpdator * updator() const
bool operator()(const TrajectoryMeasurement &lhs, const TrajectoryMeasurement &rhs) const
std::string thePropagatorName
Definition: DetId.h:20
void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *, std::vector< TrajectorySeed > &)
generate seed(s) for a track
edm::ESHandle< GeometricSearchTracker > theTracker
const LayerMeasurements * tkLayerMeasurements() const
TrajectorySeed createSeed(const TrajectoryStateOnSurface &, const DetId &) const
create a hitless seed from a trajectory state
const DirectTrackerNavigation * theNavigation
std::string theMeasTrackerName
void setEvent(const edm::Event &)
set an event
unsigned long long theCacheId_MT
edm::InputTag theBeamSpotInputTag
const Chi2MeasurementEstimator * estimator() const
std::vector< TrajectoryMeasurement > findMeasurements_new(const DetLayer *, const TrajectoryStateOnSurface &) const
look for measurements on the first compatible layer (faster way)
const LayerMeasurements * theTkLayerMeasurements
MuonErrorMatrix * theErrorMatrixAdjuster
edm::ESHandle< Propagator > propagator() const
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