CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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) {}
14 
16 
18 
20 #ifdef NO_DICT
21  virtual RecHitPointer cloneSH() const { return RecHitPointer(clone());}
22 #endif
23 
24 
25  virtual AlgebraicVector parameters() const;
26 
27  virtual AlgebraicSymMatrix parametersError() const;
28 
29  virtual AlgebraicMatrix projectionMatrix() const;
30 
31  virtual int dimension() const { return 0;}
32 
33  virtual LocalPoint localPosition() const;
34 
35  virtual LocalError localPositionError() const;
36 
37  virtual std::vector<const TrackingRecHit*> recHits() const;
38 
39  virtual std::vector<TrackingRecHit*> recHits();
40 
41  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const;
42 
43 private:
44 
45  void throwError() const;
46 
47 };
48 
49 class InvalidTrackingRecHitNoDet GCC11_FINAL : public InvalidTrackingRecHit {
50 public:
51 
53  InvalidTrackingRecHitNoDet(Surface const & surface, Type type) : InvalidTrackingRecHit(type), m_surface(&surface){}
54 
55  virtual InvalidTrackingRecHitNoDet * clone() const GCC11_OVERRIDE {return new InvalidTrackingRecHitNoDet(*this);}
56 
57  const Surface* surface() const GCC11_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
#define GCC11_OVERRIDE
virtual RecHitPointer cloneSH() const
virtual AlgebraicVector parameters() const
InvalidTrackingRecHit(GeomDet const &idet, Type type)
InvalidTrackingRecHitNoDet(Surface const &surface, Type type)
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
Surface const * m_surface
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
virtual InvalidTrackingRecHitNoDet * clone() const GCC11_OVERRIDE
const Surface * surface() const GCC11_OVERRIDE
CLHEP::HepMatrix AlgebraicMatrix
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual AlgebraicMatrix projectionMatrix() const
virtual int dimension() const
Definition: DetId.h:18
CLHEP::HepVector AlgebraicVector
virtual LocalPoint localPosition() const
string const
Definition: compareJSON.py:14
virtual LocalError localPositionError() const
virtual InvalidTrackingRecHit * clone() const GCC11_OVERRIDE
CLHEP::HepSymMatrix AlgebraicSymMatrix
TrackingRecHit::Type Type
virtual AlgebraicSymMatrix parametersError() const
Unlimited (trivial) bounds.