CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CmsTrackerPixelPhase2EndcapBuilder.cc
Go to the documentation of this file.
12 #include <vector>
13 
14 #include <bitset>
15 
16 template <class FilteredView>
18  GeometricDet* g,
19  const std::string& s) {
20  CmsTrackerPhase2TPDiskBuilder<FilteredView> theCmsTrackerPhase2DiskBuilder;
21  CmsTrackerPixelPhase2DiskBuilder<FilteredView> theCmsTrackerPixelPhase2DiskBuilder;
22  CmsTrackerPixelPhase2DoubleDiskBuilder<FilteredView> theCmsTrackerPixelPhase2DoubleDiskBuilder;
23  CmsTrackerOTDiscBuilder<FilteredView> theCmsTrackerOTDiscBuilder;
24 
25  GeometricDet* subdet = new GeometricDet(&fv,
31  theCmsTrackerPhase2DiskBuilder.build(fv, subdet, s);
32  break;
34  theCmsTrackerPhase2DiskBuilder.build(fv, subdet, s);
35  break;
37  theCmsTrackerPixelPhase2DiskBuilder.build(fv, subdet, s);
38  break;
40  theCmsTrackerPixelPhase2DoubleDiskBuilder.build(fv, subdet, s);
41  break;
43  theCmsTrackerOTDiscBuilder.build(fv, subdet, s);
44  break;
45 
46  default:
47  edm::LogError("CmsTrackerPixelPhase2EndcapBuilder")
48  << " ERROR - I was expecting a Disk... I got a " << ExtractStringFromDDD<FilteredView>::getString(s, &fv);
49  }
50 
51  g->addComponent(subdet);
52 }
53 
54 template <class FilteredView>
57 
58  std::sort(comp.begin(), comp.end(), CmsTrackerLevelBuilderHelper::isLessModZ);
59 
60  for (uint32_t i = 0; i < comp.size(); i++) {
62  i + 1); // Every subdetector: Inner pixel first, OT later, then sort by disk number
63  }
64 }
65 
void buildComponent(FilteredView &, GeometricDet *, const std::string &) override
static std::string getString(const std::string &, FilteredView *)
void addComponent(GeometricDet *)
void sortNS(FilteredView &, GeometricDet *) override
void setGeographicalID(DetId id)
Definition: GeometricDet.h:99
Log< level::Error, false > LogError
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:152
GeometricDet * component(size_t index)
Definition: GeometricDet.h:148
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:34