CMS 3D CMS Logo

GenericProjectedRecHit2D.h
Go to the documentation of this file.
1 #ifndef RECOTRACKER_TRANSIENTRACKINGRECHIT_GenericProjectedRecHit2D_H
2 #define RECOTRACKER_TRANSIENTRACKINGRECHIT_GenericProjectedRecHit2D_H
3 
7 
9 public:
11  const LocalError& err,
12  const GeomDet* det,
13  const GeomDet* originaldet,
16 
19  }
20 
21  //virtual ~GenericProjectedRecHit2D(){delete theOriginalTransientHit;}
22 
23  AlgebraicVector parameters() const override;
24 
25  LocalPoint localPosition() const override { return theLp; }
26 
27  LocalError localPositionError() const override { return theLe; }
28 
30 
31  virtual DetId geographicalId() const { return det() ? det()->geographicalId() : DetId(); }
32 
33  int dimension() const override { return theDimension; }
34 
35  //this hit lays on the original surface, NOT on the projection surface
36  const TrackingRecHit* hit() const override { return theOriginalTransientHit->hit(); }
37 
38  TrackingRecHit* cloneHit() const override { return theOriginalTransientHit->cloneHit(); }
39 
40  virtual bool isValid() const { return true; }
41 
42  std::vector<const TrackingRecHit*> recHits() const override {
43  //return theOriginalTransientHit->hit()->recHits();
44  return std::vector<const TrackingRecHit*>();
45  }
46 
47  std::vector<TrackingRecHit*> recHits() override {
48  //should it do something different?
49  return std::vector<TrackingRecHit*>();
50  }
51 
53 
54  bool canImproveWithTrack() const override { return true; }
55 
56  const GeomDet* originalDet() const { return theOriginalDet; }
57 
58  static RecHitPointer build(const LocalPoint& pos,
59  const LocalError& err,
60  const GeomDet* det,
61  const GeomDet* originaldet,
63  const TrackingRecHitPropagator* propagator) {
64  return RecHitPointer(new GenericProjectedRecHit2D(pos, err, det, originaldet, originalHit, propagator));
65  }
66 
68 
69 private:
76  //const TrackingRecHit* theOriginalHit;
78 
79  GenericProjectedRecHit2D* clone() const override { return new GenericProjectedRecHit2D(*this); }
80 };
81 
82 #endif
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
LocalError localPositionError() const override
std::vector< TrackingRecHit * > recHits() override
Non-const access to component RecHits (if any)
const TrackingRecHitPropagator * thePropagator
static AlgebraicSymMatrix parError(const LocalError &le, const GeomDet &det)
GenericProjectedRecHit2D * clone() const override
bool canImproveWithTrack() const override
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
CLHEP::HepMatrix AlgebraicMatrix
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const GeomDet * det() const
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
LocalPoint localPosition() const override
std::shared_ptr< TrackingRecHit const > RecHitPointer
AlgebraicMatrix projectionMatrix() const override
const TrackingRecHitPropagator * propagator() const
Definition: DetId.h:17
CLHEP::HepVector AlgebraicVector
AlgebraicSymMatrix parametersError() const override
virtual DetId geographicalId() const
const GeomDet * originalDet() const
static RecHitPointer build(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicVector parameters() const override
const TrackingRecHit * hit() const override
GenericProjectedRecHit2D(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)
TrackingRecHit * cloneHit() const override