CMS 3D CMS Logo

TrackFitter.h
Go to the documentation of this file.
1 #ifndef TrackFitter_H
2 #define TrackFitter_H
3 
10 
11 #include <vector>
12 
14 class TrackerGeometry;
15 class MagneticField;
16 
17 class TrackFitter : public PixelFitterBase {
18 public:
20  const MagneticField* field,
21  const TransientTrackingRecHitBuilder* ttrhBuilder)
22  : theTracker(tracker), theField(field), theTTRecHitBuilder(ttrhBuilder) {}
23  ~TrackFitter() override {}
24 
25  std::unique_ptr<reco::Track> run(const std::vector<const TrackingRecHit*>& hits,
26  const TrackingRegion& region,
27  const edm::EventSetup& setup) const override;
28 
29 private:
31  const GlobalPoint& inner, const GlobalPoint& outer, float radius, float phi, float d0, float& zip) const;
32  float getPhi(float xC, float yC, int charge) const;
33  float getZip(float d0, float curv, const GlobalPoint& inner, const GlobalPoint& outer) const;
34  void getErrTipAndErrZip(float pt, float eta, float& errZip, float& errTip) const;
35 
39 };
40 #endif
void getErrTipAndErrZip(float pt, float eta, float &errZip, float &errTip) const
Definition: TrackFitter.cc:158
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region, const edm::EventSetup &setup) const override
Definition: TrackFitter.cc:41
const TrackerGeometry * theTracker
Definition: TrackFitter.h:36
~TrackFitter() override
Definition: TrackFitter.h:23
float getZip(float d0, float curv, const GlobalPoint &inner, const GlobalPoint &outer) const
Definition: TrackFitter.cc:141
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
float getCotThetaAndUpdateZip(const GlobalPoint &inner, const GlobalPoint &outer, float radius, float phi, float d0, float &zip) const
Definition: TrackFitter.cc:111
TrackFitter(const TrackerGeometry *tracker, const MagneticField *field, const TransientTrackingRecHitBuilder *ttrhBuilder)
Definition: TrackFitter.h:19
float getPhi(float xC, float yC, int charge) const
Definition: TrackFitter.cc:129
const TransientTrackingRecHitBuilder * theTTRecHitBuilder
Definition: TrackFitter.h:38
const MagneticField * theField
Definition: TrackFitter.h:37