CMS 3D CMS Logo

TrackerCleaner.cc
Go to the documentation of this file.
2 
7 
10 
11 
12 
13 
16 
17 
18 //-------------------------------------------------------------------------------
19 // define 'buildRecHit' functions used for different types of recHits
20 //-------------------------------------------------------------------------------
21 
22 
23 template <typename T>
25 
26  assert(0); // CV: make sure general function never gets called;
27  // always use template specializations
28  return false;
29 
30  }
31 
32 
33 template <>
35 
36  const std::type_info &hit_type = typeid(murechit);
37  if (hit_type == typeid(SiStripRecHit2D)) return true;
38  else if (hit_type == typeid(SiStripRecHit1D)) return true;
39  else if (hit_type == typeid(SiStripMatchedRecHit2D)) return true;
40  else if (hit_type == typeid(ProjectedSiStripRecHit2D)) return true;
41 
42 
43 
44  return false;
45 
46  }
47 
48  template <>
50 
51 
52  const std::type_info &hit_type = typeid(murechit);
53  if (hit_type == typeid(SiPixelRecHit)) return true;
54 
55  return false;
56 
57  }
58 
59 
62 
63 
64 
TrackerCleaner< SiPixelCluster > PixelColCleaner
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
TrackerCleaner< SiStripCluster > StripColCleaner
bool match_rechit_type(const TrackingRecHit &murechit)
Our base class.
Definition: SiPixelRecHit.h:23