test
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 
13 class SiStripRecHit1D final : public TrackerSingleRecHit {
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 override {return new SiStripRecHit1D( * this); }
33 #ifndef __GCCXML__
34  virtual RecHitPointer cloneSH() const override { return std::make_shared<SiStripRecHit1D>(*this);}
35 #endif
36 
37 
38  virtual int dimension() const override {return 1;}
39  virtual void getKfComponents( KfComponentsHolder & holder ) const override {getKfComponents1D(holder);}
40 
41  virtual bool canImproveWithTrack() const override {return true;}
42 private:
43  // double dispatch
44  virtual SiStripRecHit1D * clone(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
45  return cloner(*this,tsos).release();
46  }
47 #ifndef __GCCXML__
48  virtual RecHitPointer cloneSH(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
49  return cloner.makeShared(*this,tsos);
50  }
51 #endif
52 
53 
54 };
55 
56 #endif
ClusterRef cluster() const
ClusterStripRef cluster_strip() const
void setClusterStripRef(ClusterStripRef const &ref)
virtual void getKfComponents(KfComponentsHolder &holder) const override
virtual RecHitPointer cloneSH(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
void setClusterRef(ClusterRef const &ref)
SiStripRecHit1D(const LocalPoint &p, const LocalError &e, GeomDet const &idet, CluRef const &clus)
virtual SiStripRecHit1D * clone(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
virtual int dimension() const override
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual SiStripRecHit1D * clone() const override
TrackingRecHit *operator()[[cms TrackingRecHit::ConstRecHitPointer makeShared(TrackingRecHit::ConstRecHitPointer const &hit, TrajectoryStateOnSurface const &tsos) const
Definition: TkCloner.h:22
void getKfComponents1D(KfComponentsHolder &holder) const
virtual bool canImproveWithTrack() const override
OmniClusterRef::ClusterStripRef ClusterRef
virtual RecHitPointer cloneSH() const override