CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TSiStripRecHit1D.h
Go to the documentation of this file.
1 #ifndef RECOTRACKER_TRANSIENTRACKINGRECHIT_TSiStripRecHit1D_H
2 #define RECOTRACKER_TRANSIENTRACKINGRECHIT_TSiStripRecHit1D_H
3 
9 
10 class TSiStripRecHit1D GCC11_FINAL : public TransientTrackingRecHit{
11 public:
12 
13  typedef SiStripRecHit1D::ClusterRef SiStripClusterRef;
14 
16 
17  virtual ~TSiStripRecHit1D() {}
18 
19 
20  virtual void getKfComponents( KfComponentsHolder & holder ) const {
21  HelpertRecHit2DLocalPos().getKfComponents(holder, theHitData, *det());
22  }
23 
24 
25  virtual AlgebraicVector parameters() const {return theHitData.parameters();}
26 
27 
29  return HelpertRecHit2DLocalPos().parError( theHitData.localPositionError(), *det());
30  // return theHitData->parametersError();
31  }
32 
33 
34  virtual AlgebraicMatrix projectionMatrix() const {return theHitData.projectionMatrix();}
35  virtual int dimension() const {return theHitData.dimension();}
36 
37  virtual LocalPoint localPosition() const {return theHitData.localPosition();}
38  virtual LocalError localPositionError() const {return theHitData.localPositionError();}
39 
40  virtual const TrackingRecHit * hit() const {return &theHitData;};
41 
42  virtual std::vector<const TrackingRecHit*> recHits() const {
43  return hit()->recHits();
44  }
45  virtual std::vector<TrackingRecHit*> recHits() {
46  return theHitData.recHits();
47  }
48 
49  virtual const GeomDetUnit* detUnit() const;
50 
51  virtual bool canImproveWithTrack() const {return true;}
52 
53  //RC virtual TSiStripRecHit2DLocalPos* clone(const TrajectoryStateOnSurface& ts) const;
54  virtual RecHitPointer clone(const TrajectoryStateOnSurface& ts) const;
55 
56  // Extension of the TransientTrackingRecHit interface
57 
58  const SiStripRecHit1D* specificHit() const {return &theHitData;};
59  const StripClusterParameterEstimator* cpe() const {return theCPE;}
60 
61  static RecHitPointer build( const GeomDet * geom, const SiStripRecHit1D* rh,
63  bool computeCoarseLocalPosition=false) {
64  return RecHitPointer( new TSiStripRecHit1D( geom, rh, cpe,computeCoarseLocalPosition));
65  }
66 
67  static RecHitPointer build( const LocalPoint& pos, const LocalError& err,
68  const GeomDet* det,
69  const OmniClusterRef & clust,
70  const StripClusterParameterEstimator* cpe) {
71  return RecHitPointer( new TSiStripRecHit1D( pos, err, det, clust, cpe));
72  }
73 
74  static RecHitPointer build( const LocalPoint& pos, const LocalError& err,
75  const GeomDet* det,
76  const SiStripClusterRef & clust,
77  const StripClusterParameterEstimator* cpe) {
78  return RecHitPointer( new TSiStripRecHit1D( pos, err, det, OmniClusterRef(clust), cpe));
79  }
80 
81  static RecHitPointer build( const LocalPoint& pos, const LocalError& err,
82  const GeomDet* det,
83  const SiStripRegionalClusterRef & clust,
84  const StripClusterParameterEstimator* cpe) {
85  return RecHitPointer( new TSiStripRecHit1D( pos, err, det, OmniClusterRef(clust), cpe));
86  }
87 
88 
89 
90 private:
91 
92  const StripClusterParameterEstimator* theCPE;
93  SiStripRecHit1D theHitData;
94 
95  TSiStripRecHit1D (const GeomDet * geom, const SiStripRecHit1D* rh,
97  bool computeCoarseLocalPosition);
98 
101  const GeomDet* det,
102  const OmniClusterRef & clust,
103  const StripClusterParameterEstimator* cpe) :
105  theCPE(cpe), theHitData(pos, err, det->geographicalId(), clust){}
106 
107 
108 
109 
110  virtual TSiStripRecHit1D* clone() const {
111  return new TSiStripRecHit1D(*this);
112  }
113 
114 };
115 
116 #endif
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
virtual ~TSiStripRecHit1D()
virtual TSiStripRecHit1D * clone() const
virtual TransientTrackingRecHit * clone() const =0
static void getKfComponents(KfComponentsHolder &holder, const TrackingRecHit &hit2dLocalPos, const GeomDet &det)
virtual const TrackingRecHit * hit() const =0
const SiStripRecHit1D * specificHit() const
TSiStripRecHit1D(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const OmniClusterRef &clust, const StripClusterParameterEstimator *cpe)
Creates the TrackingRecHit internally, avoids redundent cloning.
CLHEP::HepMatrix AlgebraicMatrix
SiStripRecHit1D theHitData
virtual const TrackingRecHit * hit() const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
virtual LocalPoint localPosition() const
virtual void getKfComponents(KfComponentsHolder &holder) const
edm::LazyGetter< SiStripCluster >::value_ref SiStripRegionalClusterRef
virtual int dimension() const
static RecHitPointer build(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const SiStripClusterRef &clust, const StripClusterParameterEstimator *cpe)
CLHEP::HepVector AlgebraicVector
virtual LocalError localPositionError() const
static RecHitPointer build(const GeomDet *geom, const SiStripRecHit1D *rh, const StripClusterParameterEstimator *cpe, bool computeCoarseLocalPosition=false)
virtual AlgebraicMatrix projectionMatrix() const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
SiStripRecHit1D::ClusterRef SiStripClusterRef
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)
virtual const GeomDetUnit * detUnit() const
const StripClusterParameterEstimator * cpe() const
virtual bool canImproveWithTrack() const
static RecHitPointer build(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const SiStripRegionalClusterRef &clust, const StripClusterParameterEstimator *cpe)
static RecHitPointer build(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const OmniClusterRef &clust, const StripClusterParameterEstimator *cpe)
virtual AlgebraicVector parameters() const
virtual AlgebraicSymMatrix parametersError() const
static AlgebraicSymMatrix parError(const LocalError &le, const GeomDet &det)
Our base class.
Definition: SiPixelRecHit.h:22