CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripRecHit1D.h
Go to the documentation of this file.
1 #ifndef SiStripRecHit1D_H
2 #define SiStripRecHit1D_H
3 
4 
5 
7 
9 
10 #include "TkCloner.h"
11 
12 
14 public:
15 
16 
18 
19 
21 
22  template<typename CluRef>
24  GeomDet const & idet,
25  CluRef const& clus) : TrackerSingleRecHit(p,e,idet,clus){}
26 
27 
28  ClusterRef cluster() const { return cluster_strip() ; }
29  void setClusterRef(ClusterRef const & ref) {setClusterStripRef(ref);}
30 
31 
32  virtual SiStripRecHit1D * clone() const GCC11_OVERRIDE {return new SiStripRecHit1D( * this); }
33 #ifndef __GCCXML__
34  virtual RecHitPointer cloneSH() const { return std::make_shared<SiStripRecHit1D>(*this);}
35 #endif
36 
37 
38  virtual int dimension() const GCC11_OVERRIDE {return 1;}
39  virtual void getKfComponents( KfComponentsHolder & holder ) const GCC11_OVERRIDE {getKfComponents1D(holder);}
40 
41  virtual bool canImproveWithTrack() const GCC11_OVERRIDE {return true;}
42 private:
43  // double dispatch
44  virtual SiStripRecHit1D * clone(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const GCC11_OVERRIDE {
45  return cloner(*this,tsos).release();
46  }
47 #ifndef __GCCXML__
48  virtual RecHitPointer cloneSH(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const GCC11_OVERRIDE {
49  return cloner.makeShared(*this,tsos);
50  }
51 #endif
52 
53 
54 };
55 
56 #endif
ClusterRef cluster() const
ClusterStripRef cluster_strip() const
#define GCC11_OVERRIDE
void setClusterStripRef(ClusterStripRef const &ref)
#define GCC11_FINAL
virtual RecHitPointer cloneSH(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const
virtual int dimension() const
virtual void getKfComponents(KfComponentsHolder &holder) const
virtual SiStripRecHit1D * clone() const
void setClusterRef(ClusterRef const &ref)
virtual bool canImproveWithTrack() const
SiStripRecHit1D(const LocalPoint &p, const LocalError &e, GeomDet const &idet, CluRef const &clus)
std::shared_ptr< TrackingRecHit const > RecHitPointer
string const
Definition: compareJSON.py:14
void getKfComponents1D(KfComponentsHolder &holder) const
virtual SiStripRecHit1D * clone(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const
OmniClusterRef::ClusterStripRef ClusterRef
virtual RecHitPointer cloneSH() const