CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkCloner.h
Go to the documentation of this file.
1 #ifndef TKClonerRecHit_H
2 #define TKClonerRecHit_H
3 
4 #include <memory>
8 
9 class SiPixelRecHit;
10 class SiStripRecHit2D;
11 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 
34 #ifndef __GCCXML__
40 #endif
41 
42 };
43 #endif
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
virtual std::unique_ptr< SiPixelRecHit > operator()(SiPixelRecHit const &hit, TrajectoryStateOnSurface const &tsos) const =0
#define CMS_THREAD_SAFE
virtual TrackingRecHit * clone() const =0
virtual bool canImproveWithTrack() const
TrackingRecHit *operator()[[cms TrackingRecHit::ConstRecHitPointer makeShared(TrackingRecHit::ConstRecHitPointer const &hit, TrajectoryStateOnSurface const &tsos) const
Definition: TkCloner.h:22
Our base class.
Definition: SiPixelRecHit.h:23