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  theTracker(tracker), theField(field), theTTRecHitBuilder(ttrhBuilder)
23  {}
24  ~TrackFitter() override { }
25 
26  std::unique_ptr<reco::Track> run(const std::vector<const TrackingRecHit *>& hits, const TrackingRegion& region, const edm::EventSetup& setup) 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 
41 
42 };
43 #endif
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
void getErrTipAndErrZip(float pt, float eta, float &errZip, float &errTip) const
Definition: TrackFitter.cc:173
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region, const edm::EventSetup &setup) const override
Definition: TrackFitter.cc:43
const TrackerGeometry * theTracker
Definition: TrackFitter.h:38
~TrackFitter() override
Definition: TrackFitter.h:24
float getZip(float d0, float curv, const GlobalPoint &inner, const GlobalPoint &outer) const
Definition: TrackFitter.cc:153
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:121
TrackFitter(const TrackerGeometry *tracker, const MagneticField *field, const TransientTrackingRecHitBuilder *ttrhBuilder)
Definition: TrackFitter.h:20
float getPhi(float xC, float yC, int charge) const
Definition: TrackFitter.cc:141
const TransientTrackingRecHitBuilder * theTTRecHitBuilder
Definition: TrackFitter.h:40
const MagneticField * theField
Definition: TrackFitter.h:39