CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrackFitter.h
Go to the documentation of this file.
1 #ifndef TrackFitter_H
2 #define TrackFitter_H
3 
9 
10 #include <vector>
11 
13 class TrackerGeometry;
14 class MagneticField;
15 
16 class TrackFitter : public PixelFitterBase {
17 public:
18  TrackFitter(const TrackerGeometry* tracker,
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
void getErrTipAndErrZip(float pt, float eta, float &errZip, float &errTip) const
Definition: TrackFitter.cc:157
const TrackerGeometry * theTracker
Definition: TrackFitter.h:34
~TrackFitter() override
Definition: TrackFitter.h:22
float getZip(float d0, float curv, const GlobalPoint &inner, const GlobalPoint &outer) const
Definition: TrackFitter.cc:140
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:110
static constexpr float d0
TrackFitter(const TrackerGeometry *tracker, const MagneticField *field, const TransientTrackingRecHitBuilder *ttrhBuilder)
Definition: TrackFitter.h:18
float getPhi(float xC, float yC, int charge) const
Definition: TrackFitter.cc:128
const TransientTrackingRecHitBuilder * theTTRecHitBuilder
Definition: TrackFitter.h:36
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region) const override
Definition: TrackFitter.cc:41
const MagneticField * theField
Definition: TrackFitter.h:35