CMS 3D CMS Logo

CmsTrackerPixelPhase2EndcapBuilder.cc
Go to the documentation of this file.
11 #include <vector>
12 
13 #include <bitset>
14 
15 template <class FilteredView>
17  GeometricDet* g,
18  const std::string& s) {
19  CmsTrackerPhase2TPDiskBuilder<FilteredView> theCmsTrackerPhase2DiskBuilder;
20  CmsTrackerPixelPhase2DiskBuilder<FilteredView> theCmsTrackerPixelPhase2DiskBuilder;
21  CmsTrackerOTDiscBuilder<FilteredView> theCmsTrackerOTDiscBuilder;
22 
23  GeometricDet* subdet = new GeometricDet(&fv,
29  theCmsTrackerPhase2DiskBuilder.build(fv, subdet, s);
30  break;
32  theCmsTrackerPhase2DiskBuilder.build(fv, subdet, s);
33  break;
35  theCmsTrackerPixelPhase2DiskBuilder.build(fv, subdet, s);
36  break;
38  theCmsTrackerOTDiscBuilder.build(fv, subdet, s);
39  break;
40 
41  default:
42  edm::LogError("CmsTrackerPixelPhase2EndcapBuilder")
43  << " ERROR - I was expecting a Disk... I got a " << ExtractStringFromDDD<FilteredView>::getString(s, &fv);
44  }
45 
46  g->addComponent(subdet);
47 }
48 
49 template <class FilteredView>
52 
53  std::sort(comp.begin(), comp.end(), CmsTrackerLevelBuilderHelper::isLessModZ);
54 
55  for (uint32_t i = 0; i < comp.size(); i++) {
57  i + 1); // Every subdetector: Inner pixel first, OT later, then sort by disk number
58  }
59 }
60 
type
Definition: HCALResponse.h:21
void buildComponent(FilteredView &, GeometricDet *, const std::string &) override
void addComponent(GeometricDet *)
void sortNS(FilteredView &, GeometricDet *) override
void setGeographicalID(DetId id)
Definition: GeometricDet.h:97
static bool isLessModZ(const GeometricDet *a, const GeometricDet *b)
void build(FilteredView &, GeometricDet *, const std::string &) override
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:139
GeometricDet * component(size_t index)
Definition: GeometricDet.h:114
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:33
static std::string getString(std::string const &, DDFilteredView *)