CMS 3D CMS Logo

SiStripRecHit1D.h
Go to the documentation of this file.
1 #ifndef SiStripRecHit1D_H
2 #define SiStripRecHit1D_H
3 
5 
6 #include "TkCloner.h"
7 
8 class SiStripRecHit1D final : public TrackerSingleRecHit {
9 public:
11 
13 
14  template <typename CluRef>
15  SiStripRecHit1D(const LocalPoint& p, const LocalError& e, GeomDet const& idet, CluRef const& clus)
16  : TrackerSingleRecHit(p, e, idet, clus) {}
17 
18  ClusterRef cluster() const { return cluster_strip(); }
19  void setClusterRef(ClusterRef const& ref) { setClusterStripRef(ref); }
20 
21  SiStripRecHit1D* clone() const override { return new SiStripRecHit1D(*this); }
22 #ifndef __GCCXML__
23  RecHitPointer cloneSH() const override { return std::make_shared<SiStripRecHit1D>(*this); }
24 #endif
25 
26  int dimension() const override { return 1; }
27  void getKfComponents(KfComponentsHolder& holder) const override { getKfComponents1D(holder); }
28 
29  bool canImproveWithTrack() const override { return true; }
30 
31 private:
32  // double dispatch
33  SiStripRecHit1D* clone_(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
34  return cloner(*this, tsos).release();
35  }
36 #ifndef __GCCXML__
37  RecHitPointer cloneSH_(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
38  return cloner.makeShared(*this, tsos);
39  }
40 #endif
41 };
42 
43 #endif
SiStripRecHit1D * clone_(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
void setClusterStripRef(ClusterStripRef const &ref)
SiStripRecHit1D * clone() const override
RecHitPointer cloneSH() const override
void setClusterRef(ClusterRef const &ref)
SiStripRecHit1D(const LocalPoint &p, const LocalError &e, GeomDet const &idet, CluRef const &clus)
RecHitPointer cloneSH_(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
TrackingRecHit::ConstRecHitPointer makeShared(TrackingRecHit::ConstRecHitPointer const &hit, TrajectoryStateOnSurface const &tsos) const
Definition: TkCloner.h:24
std::shared_ptr< TrackingRecHit const > RecHitPointer
bool canImproveWithTrack() const override
ClusterStripRef cluster_strip() const
void getKfComponents1D(KfComponentsHolder &holder) const
OmniClusterRef::ClusterStripRef ClusterRef
void getKfComponents(KfComponentsHolder &holder) const override
ClusterRef cluster() const
int dimension() const override