CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TRecHit5DParamConstraint.h
Go to the documentation of this file.
1 #ifndef RECOTRACKER_TRANSIENTRACKINGRECHIT_TRecHit5DParamConstraint_H
2 #define RECOTRACKER_TRANSIENTRACKINGRECHIT_TRecHit5DParamConstraint_H
3 
6 
7 class GeomDetUnit;
8 
10 {
11 
12 private:
13 
15 
17 
18 public:
19 
21 
22  virtual int dimension() const { return 5; }
23 
26  return projectionMatrix;
27  }
28 
30 
32 
33  virtual LocalPoint localPosition() const { return tsos_.localPosition(); }
34 
36 
37  virtual int charge() const { return tsos_.charge(); }
38 
39  virtual bool canImproveWithTrack() const { return false; }
40 
41  virtual const TrackingRecHit* hit() const { return 0; }
42 
43  virtual std::vector<const TrackingRecHit*> recHits() const { return std::vector<const TrackingRecHit*>(); }
44 
45  virtual std::vector<TrackingRecHit*> recHits() { return std::vector<TrackingRecHit*>(); }
46 
47  virtual const GeomDetUnit* detUnit() const { return 0; }
48 
49  virtual const GeomDet* det() const { return 0; }
50 
51  virtual const Surface* surface() const { return &tsos_.surface(); }
52 
54  //return new TRecHit5DParamConstraint( this->trajectoryState() );
55  return new TRecHit5DParamConstraint( tsos );
56  }
57 
59  return RecHitPointer( new TRecHit5DParamConstraint( tsos ) );
60  }
61 
62 private:
63 
65 
66  virtual TRecHit5DParamConstraint* clone() const {
67  return new TRecHit5DParamConstraint( this->trajectoryState() );
68  }
69 
70  const TrajectoryStateOnSurface& trajectoryState() const { return tsos_; }
71 
72 };
73 
74 #endif
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:49
virtual AlgebraicSymMatrix parametersError() const
const LocalTrajectoryParameters & localParameters() const
TRecHit5DParamConstraint(const TrajectoryStateOnSurface &tsos)
LocalError positionError() const
virtual LocalPoint localPosition() const
TRecHit5DParamConstraint(const TRecHit5DParamConstraint &other)
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
AlgebraicVector5 vector() const
CLHEP::HepMatrix AlgebraicMatrix
#define GCC11_FINAL
static TransientTrackingRecHit::RecHitPointer build(const TrajectoryStateOnSurface &tsos)
virtual const GeomDet * det() const
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
const TrajectoryStateOnSurface & trajectoryState() const
virtual AlgebraicMatrix projectionMatrix() const
CLHEP::HepVector AlgebraicVector
virtual bool canImproveWithTrack() const
virtual TRecHit5DParamConstraint * clone() const
virtual const GeomDetUnit * detUnit() const
virtual const TrackingRecHit * hit() const
virtual AlgebraicVector parameters() const
const Surface & surface() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual TransientTrackingRecHit::RecHitPointer clone(const TrajectoryStateOnSurface &tsos) const
const TrajectoryStateOnSurface tsos_
virtual LocalError localPositionError() const
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)
CLHEP::HepVector asHepVector(const ROOT::Math::SVector< double, N > &v)
Definition: Migration.h:43
virtual const Surface * surface() const