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 
SiPixelCluster.h
cms::cuda::assert
assert(be >=bs)
TrackerCleaner::match_rechit_type
bool match_rechit_type(const TrackingRecHit &murechit)
Definition: TrackerCleaner.cc:19
SiStripRecHit2D
Definition: SiStripRecHit2D.h:7
ProjectedSiStripRecHit2D
Definition: ProjectedSiStripRecHit2D.h:8
SiPixelRecHit
Our base class.
Definition: SiPixelRecHit.h:23
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
TrackerCleaner
Definition: TrackerCleaner.h:38
SiPixelRecHit.h
TrackerCleaner.h
StripColCleaner
TrackerCleaner< SiStripCluster > StripColCleaner
Definition: TrackerCleaner.cc:12
ProjectedSiStripRecHit2D.h
SiStripRecHit1D
Definition: SiStripRecHit1D.h:8
TrackingRecHit
Definition: TrackingRecHit.h:21
SiStripRecHit1D.h
SiStripMatchedRecHit2D
Definition: SiStripMatchedRecHit2D.h:8
SiStripMatchedRecHit2D.h
SiStripRecHit2D.h
PixelColCleaner
TrackerCleaner< SiPixelCluster > PixelColCleaner
Definition: TrackerCleaner.cc:11