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 namespace edm {class ParameterSet; class Event; class EventSetup;}
11 namespace reco { class Track; class BeamSpot; }
12 
14 class TrackerGeometry;
15 class MagneticField;
16 class TrackingRegion;
17 class TrackingRecHit;
18 
19 
21 public:
23  virtual ~KFBasedPixelFitter() {}
24  virtual reco::Track* run(
25  const edm::Event& ev,
26  const edm::EventSetup& es,
27  const std::vector<const TrackingRecHit *>& hits,
28  const TrackingRegion& region) const;
29 private:
30 
31  //this two simple classes are copied from Alignment/ReferenceTrajectories in order to avoid dependencies
32  class MyBeamSpotGeomDet : public GeomDet {
33  public:
35  virtual ~MyBeamSpotGeomDet() { }
37  virtual std::vector< const GeomDet*> components() const { return std::vector< const GeomDet*>(); }
38  };
40  public:
42  virtual ~MyBeamSpotHit(){}
43  virtual LocalPoint localPosition() const { return localPosition_; }
44  virtual LocalError localPositionError() const { return localError_; }
45  virtual AlgebraicVector parameters() const;
46  virtual AlgebraicSymMatrix parametersError() const;
47  virtual int dimension() const { return 1; }
48  virtual AlgebraicMatrix projectionMatrix() const;
49  virtual std::vector<const TrackingRecHit*> recHits() const { return std::vector<const TrackingRecHit*>(); }
50  virtual std::vector<TrackingRecHit*> recHits() { return std::vector<TrackingRecHit*>(); }
51  virtual const TrackingRecHit * hit() const { return 0; }
52  private:
55  virtual MyBeamSpotHit * clone() const { return new MyBeamSpotHit(*this); }
56  };
57 
58 
59  std::string thePropagatorLabel;
63  std::string theTTRHBuilderName;
64 
65 
66 };
67 #endif
MyBeamSpotGeomDet(const ReferenceCountingPointer< BoundPlane > &plane)
std::string thePropagatorLabel
virtual const TrackingRecHit * hit() const
void setDetId(DetId id)
Definition: GeomDet.h:97
virtual LocalPoint localPosition() const
virtual LocalError localPositionError() const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
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.
edm::InputTag theBeamSpot
MyBeamSpotHit(const reco::BeamSpot &beamSpot, const GeomDet *geom)
CLHEP::HepVector AlgebraicVector
virtual AlgebraicVector parameters() const
virtual MyBeamSpotHit * clone() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual reco::Track * run(const edm::Event &ev, const edm::EventSetup &es, const std::vector< const TrackingRecHit * > &hits, const TrackingRegion &region) const
std::string thePropagatorOppositeLabel
std::string theTTRHBuilderName
virtual AlgebraicSymMatrix parametersError() const
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)