CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastTSGFromPropagation.h
Go to the documentation of this file.
1 #ifndef FastSimulation_Muons_FastTSGFromPropagation_H
2 #define FastSimulation_Muons_FastTSGFromPropagation_H
3 
23 
29 
33 
34 
35 class LayerMeasurements;
37 class Propagator;
38 class MeasurementTracker;
42 class SimTrack;
43 class TrackerGeometry;
44 class TrackerTopology;
45 
47 
48 public:
51 
53 
55  virtual ~FastTSGFromPropagation();
56 
58  void trackerSeeds(const TrackCand&, const TrackingRegion&,
59  const TrackerTopology *tTopo, std::vector<TrajectorySeed>&);
60 
62  void init(const MuonServiceProxy*);
63 
65  void setEvent(const edm::Event&);
66 
67 private:
69  void stateOnDet(const TrajectoryStateOnSurface& ts,
70  unsigned int detid,
71  PTrajectoryStateOnDet& pts) const;
72 
74 
76 
78 
79  const TrajectoryStateUpdator* updator() const {return theUpdator;}
80 
81  const Chi2MeasurementEstimator* estimator() const { return theEstimator; }
82 
84 
87 
89  TrajectorySeed createSeed(const TrajectoryStateOnSurface& tsos, const edm::OwnVector<TrackingRecHit>& container, const DetId& id) const;
90 
92  void validMeasurements(std::vector<TrajectoryMeasurement>&) const;
93 
95  std::vector<TrajectoryMeasurement> findMeasurements_new(const DetLayer*, const TrajectoryStateOnSurface&) const;
96 
98  std::vector<TrajectoryMeasurement> findMeasurements(const DetLayer*, const TrajectoryStateOnSurface&) const;
99 
101  bool passSelection(const TrajectoryStateOnSurface&) const;
102 
103  void getRescalingFactor(const TrackCand& staMuon);
104 
106  void adjust(FreeTrajectoryState &) const;
107 
109  void adjust(TrajectoryStateOnSurface &) const;
110 
111  double dxyDis(const TrajectoryStateOnSurface& tsos) const;
112 
113  double zDis(const TrajectoryStateOnSurface& tsos) const;
114 
117  const TrajectoryMeasurement& rhs) const{
118  return lhs.estimate() < rhs.estimate();
119  }
120  };
121 
122  struct isInvalid {
123  bool operator()(const TrajectoryMeasurement& measurement) {
124  return ( ((measurement).recHit() == 0) || !((measurement).recHit()->isValid()) || !((measurement).updatedState().isValid()) );
125  }
126  };
127 
128  unsigned long long theCacheId_MT;
129  unsigned long long theCacheId_TG;
130 
132 
134 
136 
138 
141 
143 
145 
147 
149 
150  double theMaxChi2;
151 
153 
155 
157 
159 
162 
164 
166 
168 
170 
172 
173  double theSigmaZ;
174 
178 
184 
185 };
186 
187 #endif
std::vector< TrajectoryMeasurement > findMeasurements(const DetLayer *, const TrajectoryStateOnSurface &) const
look for measurements on the first compatible layer
edm::Handle< MeasurementTrackerEvent > theMeasTrackerEvent
edm::ESHandle< MeasurementTracker > theMeasTracker
FastTSGFromPropagation(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
constructor
edm::Handle< reco::BeamSpot > theBeamSpot
const Chi2MeasurementEstimator * theEstimator
void adjust(FreeTrajectoryState &) const
adjust the error matrix of the FTS
unsigned long long theCacheId_MT
bool operator()(const TrajectoryMeasurement &lhs, const TrajectoryMeasurement &rhs) const
std::pair< const Trajectory *, reco::TrackRef > TrackCand
const LayerMeasurements * tkLayerMeasurements() const
edm::Handle< edm::SimTrackContainer > theSimTracks
const DirectTrackerNavigation * theNavigation
virtual ~FastTSGFromPropagation()
destructor
edm::ESHandle< GeometricSearchTracker > theTracker
void validMeasurements(std::vector< TrajectoryMeasurement > &) const
select valid measurements
const MuonServiceProxy * theService
TrajectoryStateTransform * theTSTransformer
bool operator()(const TrajectoryMeasurement &measurement)
const Chi2MeasurementEstimator * estimator() const
void getRescalingFactor(const TrackCand &staMuon)
static const double pts[33]
Definition: Constants.h:30
edm::InputTag theMeasurementTrackerEventTag
bool passSelection(const TrajectoryStateOnSurface &) const
check some quantity and beam-spot compatibility and decide to continue
const TrajectoryStateUpdator * theUpdator
std::vector< TrajectoryMeasurement > findMeasurements_new(const DetLayer *, const TrajectoryStateOnSurface &) const
look for measurements on the first compatible layer (faster way)
TrajectoryStateOnSurface outerTkState(const TrackCand &) const
TrajectoryStateOnSurface innerState(const TrackCand &) const
LayerMeasurements theTkLayerMeasurements
MuonErrorMatrix * theErrorMatrixAdjuster
edm::Handle< SiTrackerGSMatchedRecHit2DCollection > theGSRecHits
Definition: DetId.h:18
const TrackerGeometry * theGeometry
void init(const MuonServiceProxy *)
initialize
double zDis(const TrajectoryStateOnSurface &tsos) const
const TrajectoryStateUpdator * updator() const
edm::ESHandle< Propagator > propagator() const
TrajectorySeed createSeed(const TrajectoryStateOnSurface &, const DetId &) const
create a hitless seed from a trajectory state
void stateOnDet(const TrajectoryStateOnSurface &ts, unsigned int detid, PTrajectoryStateOnDet &pts) const
A mere copy (without memory leak) of an existing tracking method.
edm::InputTag theSimTrackCollectionLabel
double dxyDis(const TrajectoryStateOnSurface &tsos) const
void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *tTopo, std::vector< TrajectorySeed > &)
generate seed(s) for a track
edm::ESHandle< TransientTrackingRecHitBuilder > theTTRHBuilder
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
void setEvent(const edm::Event &)
set an event
unsigned long long theCacheId_TG