CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TSiPixelRecHit.h
Go to the documentation of this file.
1 
2 #ifndef RECOTRACKER_TRANSIENTRACKINGRECHIT_TSiPixelRecHit_H
3 #define RECOTRACKER_TRANSIENTRACKINGRECHIT_TSiPixelRecHit_H
4 
11 
12 // class GeomDetUnit;
13 
15 public:
16 
18 
19 
20  virtual ~TSiPixelRecHit() {}
21 
22  virtual AlgebraicVector parameters() const {return theHitData.parameters();}
23 
26  // return theHitData->parametersError();
27  }
28 
30  virtual int dimension() const {return theHitData.dimension();}
31 
32  virtual LocalPoint localPosition() const {return theHitData.localPosition();}
34 
35  virtual void getKfComponents( KfComponentsHolder & holder ) const {
37  }
38 
39  virtual const TrackingRecHit * hit() const {return &theHitData;};
40 
41  virtual std::vector<const TrackingRecHit*> recHits() const {
42  return hit()->recHits();
43  }
44  virtual std::vector<TrackingRecHit*> recHits() {
45  return theHitData.recHits();
46  }
47 
48  virtual bool canImproveWithTrack() const {return true;}
49 
50  //RC virtual TSiPixelRecHit* clone (const TrajectoryStateOnSurface& ts) const;
51  virtual RecHitPointer clone (const TrajectoryStateOnSurface& ts) const;
52 
53  virtual const GeomDetUnit* detUnit() const;
54 
55  // Extension of the TransientTrackingRecHit interface
56 
57  const SiPixelRecHit* specificHit() const {return &theHitData;};
58  const PixelClusterParameterEstimator* cpe() const {return theCPE;}
59 
60  static RecHitPointer build( const GeomDet * geom, const SiPixelRecHit* rh,
62  bool computeCoarseLocalPosition=false) {
63  return RecHitPointer( new TSiPixelRecHit( geom, rh, cpe, computeCoarseLocalPosition));
64  }
65 
66  static RecHitPointer build( const LocalPoint& pos, const LocalError& err,
67  const GeomDet* det,
68  const clusterRef & cluster,
70  return RecHitPointer( new TSiPixelRecHit( pos, err, det, cluster, cpe));
71  }
72 
73 
75  virtual float clusterProbability() const {
77  }
78 
79 
80 
81 private:
85 
86 
89  TSiPixelRecHit(const GeomDet * geom, const SiPixelRecHit* rh,
91  bool computeCoarseLocalPosition);
92 
93 
94 
97  TSiPixelRecHit( const LocalPoint& pos, const LocalError& err,
98  const GeomDet* det,
99  const clusterRef & clust,
101 
102 
103  virtual TSiPixelRecHit * clone() const {
104  return new TSiPixelRecHit(*this);
105  }
106 
107 };
108 
109 
110 
111 #endif
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
virtual bool canImproveWithTrack() const
virtual const TrackingRecHit * hit() const
unsigned int theClusterProbComputationFlag
float clusterProbability(unsigned int flags=0) const
virtual int dimension() const
virtual AlgebraicVector parameters() const
static void getKfComponents(KfComponentsHolder &holder, const TrackingRecHit &hit2dLocalPos, const GeomDet &det)
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
const SiPixelRecHit * specificHit() const
const PixelClusterParameterEstimator * theCPE
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)
SiPixelRecHit theHitData
TSiPixelRecHit(const GeomDet *geom, const SiPixelRecHit *rh, const PixelClusterParameterEstimator *cpe, bool computeCoarseLocalPosition)
virtual LocalError localPositionError() const
static RecHitPointer build(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const clusterRef &cluster, const PixelClusterParameterEstimator *cpe)
CLHEP::HepMatrix AlgebraicMatrix
#define GCC11_FINAL
virtual LocalPoint localPosition() const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
virtual AlgebraicMatrix projectionMatrix() const
const PixelClusterParameterEstimator * cpe() const
virtual AlgebraicVector parameters() const
virtual void getKfComponents(KfComponentsHolder &holder) const
static RecHitPointer build(const GeomDet *geom, const SiPixelRecHit *rh, const PixelClusterParameterEstimator *cpe, bool computeCoarseLocalPosition=false)
CLHEP::HepVector AlgebraicVector
virtual LocalPoint localPosition() const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
virtual const GeomDetUnit * detUnit() const
SiPixelRecHit::ClusterRef clusterRef
virtual TSiPixelRecHit * clone() const
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual float clusterProbability() const
Probability of the compatibility of the track with the pixel cluster shape.
virtual AlgebraicSymMatrix parametersError() const
virtual AlgebraicMatrix projectionMatrix() const
virtual LocalError localPositionError() const
virtual int dimension() const
Definition: SiPixelRecHit.h:43
virtual ~TSiPixelRecHit()
Our base class.
Definition: SiPixelRecHit.h:22
static AlgebraicSymMatrix parError(const LocalError &le, const GeomDet &det)