CMS 3D CMS Logo

InvalidTrackingRecHit.h
Go to the documentation of this file.
1 #ifndef InvalidTrackingRecHit_H
2 #define InvalidTrackingRecHit_H
3 
7 
9 public:
11 
12  InvalidTrackingRecHit(GeomDet const & idet, Type type ) : TrackingRecHit(idet, type) {}
13  explicit InvalidTrackingRecHit(Type type) : TrackingRecHit(DetId(0), type) {}
14 
16 
18 
19  virtual InvalidTrackingRecHit * clone() const override {return new InvalidTrackingRecHit(*this);}
20 #ifndef __GCCXML__
21  virtual RecHitPointer cloneSH() const override { return RecHitPointer(clone());}
22 #endif
23 
24 
25  virtual AlgebraicVector parameters() const override;
26 
27  virtual AlgebraicSymMatrix parametersError() const override;
28 
29  virtual AlgebraicMatrix projectionMatrix() const override;
30 
31  virtual int dimension() const override { return 0;}
32 
33  virtual LocalPoint localPosition() const override;
34 
35  virtual LocalError localPositionError() const override;
36 
37  virtual std::vector<const TrackingRecHit*> recHits() const override;
38 
39  virtual std::vector<TrackingRecHit*> recHits() override;
40 
41  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const override;
42 
43 private:
44 
45  void throwError() const;
46 
47 };
48 
50 public:
51 
53  InvalidTrackingRecHitNoDet(Surface const & surface, Type type) : InvalidTrackingRecHit(type), m_surface(&surface){}
54 
55  virtual InvalidTrackingRecHitNoDet * clone() const override {return new InvalidTrackingRecHitNoDet(*this);}
56 
57  const Surface* surface() const override { return m_surface; }
58 
59  private:
60  Surface const * m_surface;
61 
62 };
63 
64 #endif
SharedInputType
definition of equality via shared input
type
Definition: HCALResponse.h:21
virtual LocalError localPositionError() const override
virtual const Surface * surface() const
virtual RecHitPointer cloneSH() const override
InvalidTrackingRecHit(GeomDet const &idet, Type type)
virtual InvalidTrackingRecHit * clone() const override
virtual InvalidTrackingRecHitNoDet * clone() const override
CLHEP::HepMatrix AlgebraicMatrix
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual LocalPoint localPosition() const override
Definition: DetId.h:18
CLHEP::HepVector AlgebraicVector
virtual int dimension() const override
virtual AlgebraicSymMatrix parametersError() const override
const Surface * surface() const override
InvalidTrackingRecHitNoDet(Surface const &surface, Type type)
virtual std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual AlgebraicVector parameters() const override
TrackingRecHit::Type Type
virtual AlgebraicMatrix projectionMatrix() const override