CMS 3D CMS Logo

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