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 
11 public:
13 
15 
16  ~Phase2TrackerRecHit1D() override {}
17 
18  Phase2TrackerRecHit1D(const LocalPoint& pos, const LocalError& err, GeomDet const& idet, CluRef const& clus)
19  : TrackerSingleRecHit(pos, err, idet, clus) {}
20 
21  Phase2TrackerRecHit1D* clone() const override { return new Phase2TrackerRecHit1D(*this); }
22  RecHitPointer cloneSH() const override { return std::make_shared<Phase2TrackerRecHit1D>(*this); }
23 
24  CluRef cluster() const { return cluster_phase2OT(); }
25  void setClusterRef(CluRef const& ref) { setClusterPhase2Ref(ref); }
26 
27  bool isPhase2() const override { return true; }
28  //FIXME::check dimension of this!!
29  int dimension() const override { return 2; }
30  void getKfComponents(KfComponentsHolder& holder) const override { getKfComponents2D(holder); }
31 
32  bool canImproveWithTrack() const override { return true; }
33 
34 private:
35  // double dispatch
36  Phase2TrackerRecHit1D* clone_(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
37  return cloner(*this, tsos).release();
38  }
39  RecHitPointer cloneSH_(TkCloner const& cloner, TrajectoryStateOnSurface const& tsos) const override {
40  return cloner.makeShared(*this, tsos);
41  }
42 };
43 
45 
46 #endif
Phase2TrackerRecHit1D(const LocalPoint &pos, const LocalError &err, GeomDet const &idet, CluRef const &clus)
Phase2TrackerRecHit1D * clone() const override
RecHitPointer cloneSH() const override
int dimension() const override
ClusterPhase2Ref cluster_phase2OT() const
edmNew::DetSetVector< Phase2TrackerRecHit1D > Phase2TrackerRecHit1DCollectionNew
bool isPhase2() const override
void setClusterRef(CluRef const &ref)
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
void getKfComponents(KfComponentsHolder &holder) const override
void setClusterPhase2Ref(ClusterPhase2Ref const &ref)
OmniClusterRef::Phase2Cluster1DRef CluRef
void getKfComponents2D(KfComponentsHolder &holder) const
RecHitPointer cloneSH_(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
Phase2TrackerRecHit1D * clone_(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override