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 
6 
7 class SiPixelRecHit;
8 class SiStripRecHit2D;
9 class SiStripRecHit1D;
12 
13 class TkCloner {
14 public:
16  return hit.clone(*this, tsos);
17  }
18 
19 #ifdef NO_DICT
21  return hit->canImproveWithTrack() ? hit->cloneSH(*this, tsos) : hit;
22  // return hit->cloneSH(*this, tsos);
23  }
24 #endif
25 
26  virtual SiPixelRecHit * operator()(SiPixelRecHit const & hit, TrajectoryStateOnSurface const& tsos) const=0;
27  virtual SiStripRecHit2D * operator()(SiStripRecHit2D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
28  virtual SiStripRecHit1D * operator()(SiStripRecHit1D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
29  virtual SiStripMatchedRecHit2D * operator()(SiStripMatchedRecHit2D const & hit, TrajectoryStateOnSurface const& tsos) const=0;
31 
32 #ifdef NO_DICT
38 #endif
39 
40 };
41 #endif
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
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:20
virtual SiPixelRecHit * operator()(SiPixelRecHit const &hit, TrajectoryStateOnSurface const &tsos) const =0
#define CMS_THREAD_SAFE
Our base class.
Definition: SiPixelRecHit.h:23