CMS 3D CMS Logo

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