CMS 3D CMS Logo

TkCloner.h
Go to the documentation of this file.
1 #ifndef TKClonerRecHit_H
2 #define TKClonerRecHit_H
3 
4 #include <memory>
7 
8 class SiPixelRecHit;
9 class SiStripRecHit2D;
10 class SiStripRecHit1D;
14 
15 class TkCloner {
16 public:
18  return hit.clone(*this, tsos);
19  }
20 
21 #ifndef __GCCXML__
23  return hit->canImproveWithTrack() ? hit->cloneSH(*this, tsos) : hit;
24  // return hit->cloneSH(*this, tsos);
25  }
26 #endif
27 
28  virtual std::unique_ptr<SiPixelRecHit> operator()(SiPixelRecHit const & hit, TrajectoryStateOnSurface const& tsos) const=0;
29  virtual std::unique_ptr<SiStripRecHit2D> operator()(SiStripRecHit2D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
30  virtual std::unique_ptr<SiStripRecHit1D> operator()(SiStripRecHit1D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
31  virtual std::unique_ptr<SiStripMatchedRecHit2D> operator()(SiStripMatchedRecHit2D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
32  virtual std::unique_ptr<ProjectedSiStripRecHit2D> operator()(ProjectedSiStripRecHit2D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
33  virtual std::unique_ptr<Phase2TrackerRecHit1D> operator()(Phase2TrackerRecHit1D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
34 
35 #ifndef __GCCXML__
42 #endif
43 
44 };
45 #endif
TrackingRecHit *virtual operator()[[cms std::unique_ptr< SiStripRecHit2D > operator()(SiStripRecHit2D const &hit, TrajectoryStateOnSurface const &tsos) const =0
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
virtual TrackingRecHit * clone() const =0
#define CMS_THREAD_SAFE
virtual TrackingRecHit::ConstRecHitPointer makeShared(SiPixelRecHit const &hit, TrajectoryStateOnSurface const &tsos) const =0
Our base class.
Definition: SiPixelRecHit.h:23