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 
18 {
19 public:
21  const MagneticField *field, const TransientTrackingRecHitBuilder *ttrhBuilder):
22  theES(es), theTracker(tracker), theField(field), theTTRecHitBuilder(ttrhBuilder)
23  {}
24  virtual ~TrackFitter() { }
25 
26  std::unique_ptr<reco::Track> run(const std::vector<const TrackingRecHit *>& hits, const TrackingRegion& region) const override;
27 
28 private:
30  (const GlobalPoint& inner, const GlobalPoint& outer,
31  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,
34  const GlobalPoint& inner, const GlobalPoint& outer) const;
35  void getErrTipAndErrZip(float pt, float eta,
36  float & errZip, float & errTip) const;
37 
42 
43 };
44 #endif
void getErrTipAndErrZip(float pt, float eta, float &errZip, float &errTip) const
Definition: TrackFitter.cc:182
const TrackerGeometry * theTracker
Definition: TrackFitter.h:39
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region) const override
Definition: TrackFitter.cc:53
float getZip(float d0, float curv, const GlobalPoint &inner, const GlobalPoint &outer) const
Definition: TrackFitter.cc:162
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:130
TrackFitter(const edm::EventSetup *es, const TrackerGeometry *tracker, const MagneticField *field, const TransientTrackingRecHitBuilder *ttrhBuilder)
Definition: TrackFitter.h:20
const edm::EventSetup * theES
Definition: TrackFitter.h:38
virtual ~TrackFitter()
Definition: TrackFitter.h:24
float getPhi(float xC, float yC, int charge) const
Definition: TrackFitter.cc:150
const TransientTrackingRecHitBuilder * theTTRecHitBuilder
Definition: TrackFitter.h:41
const MagneticField * theField
Definition: TrackFitter.h:40