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  AlgebraicVector parameters() const override;
25 
26  AlgebraicSymMatrix parametersError() const override;
27 
28  AlgebraicMatrix projectionMatrix() const override;
29 
30  int dimension() const override { return 0; }
31 
32  LocalPoint localPosition() const override;
33 
34  LocalError localPositionError() const override;
35 
36  std::vector<const TrackingRecHit*> recHits() const override;
37 
38  std::vector<TrackingRecHit*> recHits() override;
39 
40  bool sharesInput(const TrackingRecHit* other, SharedInputType what) const override;
41 
42 private:
43  void throwError() const;
44 };
45 
47 public:
49  InvalidTrackingRecHitNoDet(Surface const& surface, Type type) : InvalidTrackingRecHit(type), m_surface(&surface) {}
50 
51  InvalidTrackingRecHitNoDet* clone() const override { return new InvalidTrackingRecHitNoDet(*this); }
52 
53  const Surface* surface() const override { return m_surface; }
54 
55 private:
57 };
58 
59 #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:17
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