CMS 3D CMS Logo

Phase2TrackerRecHit1D.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_TRACKERRECHIT2D_PHASE2TRACKERRECHIT1D_H
2 #define DATAFORMATS_TRACKERRECHIT2D_PHASE2TRACKERRECHIT1D_H
3 
5 
7 
8 #include "TkCloner.h"
9 
10 
12 
13 public:
14 
16 
18 
20 
22  GeomDet const & idet,
23  CluRef const& clus) : TrackerSingleRecHit(pos,err,idet,clus){}
24 
25  virtual Phase2TrackerRecHit1D * clone() const override { return new Phase2TrackerRecHit1D( * this); }
26  virtual RecHitPointer cloneSH() const override { return std::make_shared<Phase2TrackerRecHit1D>(*this);}
27 
28  CluRef cluster() const { return cluster_phase2OT(); }
29  void setClusterRef(CluRef const & ref) {setClusterPhase2Ref(ref);}
30 
31  virtual bool isPhase2() const override { return true; }
32  //FIXME::check dimension of this!!
33  virtual int dimension() const override {return 2;}
34  virtual void getKfComponents( KfComponentsHolder & holder ) const override { getKfComponents2D(holder); }
35 
36  virtual bool canImproveWithTrack() const override {return true;}
37 
38 private:
39  // double dispatch
40  virtual Phase2TrackerRecHit1D * clone(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
41  return cloner(*this,tsos).release();
42  }
43  virtual RecHitPointer cloneSH(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
44  return cloner.makeShared(*this,tsos);
45  }
46 };
47 
49 
50 #endif
virtual bool isPhase2() const override
virtual Phase2TrackerRecHit1D * clone() const override
virtual bool canImproveWithTrack() const override
virtual RecHitPointer cloneSH(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
Phase2TrackerRecHit1D(const LocalPoint &pos, const LocalError &err, GeomDet const &idet, CluRef const &clus)
virtual RecHitPointer cloneSH() const override
edmNew::DetSetVector< Phase2TrackerRecHit1D > Phase2TrackerRecHit1DCollectionNew
ClusterPhase2Ref cluster_phase2OT() const
void getKfComponents2D(KfComponentsHolder &holder) const
virtual void getKfComponents(KfComponentsHolder &holder) const override
void setClusterRef(CluRef const &ref)
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual Phase2TrackerRecHit1D * clone(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
virtual TrackingRecHit::ConstRecHitPointer makeShared(SiPixelRecHit const &hit, TrajectoryStateOnSurface const &tsos) const =0
void setClusterPhase2Ref(ClusterPhase2Ref const &ref)
OmniClusterRef::Phase2Cluster1DRef CluRef
virtual int dimension() const override