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 
17  ~InvalidTrackingRecHit() override {}
18 
19  InvalidTrackingRecHit * clone() const override {return new InvalidTrackingRecHit(*this);}
20 #ifndef __GCCXML__
21  RecHitPointer cloneSH() const override { return RecHitPointer(clone());}
22 #endif
23 
24 
25  AlgebraicVector parameters() const override;
26 
27  AlgebraicSymMatrix parametersError() const override;
28 
29  AlgebraicMatrix projectionMatrix() const override;
30 
31  int dimension() const override { return 0;}
32 
33  LocalPoint localPosition() const override;
34 
35  LocalError localPositionError() const override;
36 
37  std::vector<const TrackingRecHit*> recHits() const override;
38 
39  std::vector<TrackingRecHit*> recHits() override;
40 
41  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  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
LocalError localPositionError() const override
virtual const Surface * surface() const
int dimension() const override
InvalidTrackingRecHit(GeomDet const &idet, Type type)
InvalidTrackingRecHit * clone() const override
CLHEP::HepMatrix AlgebraicMatrix
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
RecHitPointer cloneSH() const override
std::shared_ptr< TrackingRecHit const > RecHitPointer
LocalPoint localPosition() const override
Definition: DetId.h:18
CLHEP::HepVector AlgebraicVector
AlgebraicSymMatrix parametersError() const override
const Surface * surface() const override
InvalidTrackingRecHitNoDet(Surface const &surface, Type type)
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicVector parameters() const override
InvalidTrackingRecHitNoDet * clone() const override
TrackingRecHit::Type Type
AlgebraicMatrix projectionMatrix() const override