CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KFBasedPixelFitter.h
Go to the documentation of this file.
1 #ifndef KFBasedPixelFitter_H
2 #define KFBasedPixelFitter_H
3 
6 #include <vector>
9 
10 
11 namespace edm {class EventSetup;}
12 namespace reco { class Track; class BeamSpot; }
13 
15 class TrackerGeometry;
16 class MagneticField;
17 class TrackingRegion;
18 class TrackingRecHit;
19 class Propagator;
20 
21 
23 public:
24  KFBasedPixelFitter(const edm::EventSetup *es, const Propagator *propagator, const Propagator *opropagator,
25  const TransientTrackingRecHitBuilder *ttrhBuilder,
26  const TrackerGeometry *tracker, const MagneticField *field,
27  const reco::BeamSpot *beamSpot);
28  virtual ~KFBasedPixelFitter() {}
29 
30  std::unique_ptr<reco::Track> run(const std::vector<const TrackingRecHit *>& hits, const TrackingRegion& region) const override;
31 
32 private:
33 
34  //this two simple classes are copied from Alignment/ReferenceTrajectories in order to avoid dependencies
35  class MyBeamSpotGeomDet final : public GeomDet {
36  public:
38  virtual ~MyBeamSpotGeomDet() { }
40  virtual std::vector< const GeomDet*> components() const { return std::vector< const GeomDet*>(); }
41  };
42  class MyBeamSpotHit final : public TValidTrackingRecHit {
43  public:
44  MyBeamSpotHit (const reco::BeamSpot &beamSpot, const GeomDet * geom);
45  virtual ~MyBeamSpotHit(){}
46  virtual LocalPoint localPosition() const { return localPosition_; }
47  virtual LocalError localPositionError() const { return localError_; }
48  virtual AlgebraicVector parameters() const;
49  virtual AlgebraicSymMatrix parametersError() const;
50  virtual int dimension() const { return 1; }
51  virtual AlgebraicMatrix projectionMatrix() const;
52  virtual std::vector<const TrackingRecHit*> recHits() const { return std::vector<const TrackingRecHit*>(); }
53  virtual std::vector<TrackingRecHit*> recHits() { return std::vector<TrackingRecHit*>(); }
54  virtual const TrackingRecHit * hit() const { return 0; }
55  private:
58  virtual MyBeamSpotHit * clone() const { return new MyBeamSpotHit(*this); }
59  };
60 
68 };
69 #endif
const Propagator * theOPropagator
tuple propagator
MyBeamSpotGeomDet(const ReferenceCountingPointer< BoundPlane > &plane)
const Propagator * thePropagator
KFBasedPixelFitter(const edm::EventSetup *es, const Propagator *propagator, const Propagator *opropagator, const TransientTrackingRecHitBuilder *ttrhBuilder, const TrackerGeometry *tracker, const MagneticField *field, const reco::BeamSpot *beamSpot)
virtual const TrackingRecHit * hit() const
void setDetId(DetId id)
Definition: GeomDet.h:120
const TrackerGeometry * theTracker
virtual LocalPoint localPosition() const
virtual LocalError localPositionError() const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
const MagneticField * theField
CLHEP::HepMatrix AlgebraicMatrix
virtual AlgebraicMatrix projectionMatrix() const
virtual GeomDetEnumerators::SubDetector subDetector() const
Which subdetector.
virtual std::vector< const GeomDet * > components() const
Returns direct components, if any.
MyBeamSpotHit(const reco::BeamSpot &beamSpot, const GeomDet *geom)
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region) const override
const reco::BeamSpot * theBeamSpot
const edm::EventSetup * theES
const TransientTrackingRecHitBuilder * theTTRHBuilder
CLHEP::HepVector AlgebraicVector
virtual AlgebraicVector parameters() const
virtual MyBeamSpotHit * clone() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual AlgebraicSymMatrix parametersError() const
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)