CMS 3D CMS Logo

CmsTrackerPixelPhase2EndcapBuilder.cc
Go to the documentation of this file.
10 #include <vector>
11 
12 #include <bitset>
13 
15 {}
16 
17 void
19 {
20  CmsTrackerPhase2TPDiskBuilder theCmsTrackerPhase2DiskBuilder;
21  CmsTrackerPixelPhase2DiskBuilder theCmsTrackerPixelPhase2DiskBuilder;
22  CmsTrackerOTDiscBuilder theCmsTrackerOTDiscBuilder;
23 
26  {
28  theCmsTrackerPhase2DiskBuilder.build(fv,subdet,s);
29  break;
31  theCmsTrackerPhase2DiskBuilder.build(fv,subdet,s);
32  break;
34  theCmsTrackerPixelPhase2DiskBuilder.build(fv,subdet,s);
35  break;
37  theCmsTrackerOTDiscBuilder.build(fv,subdet,s);
38  break;
39 
40  default:
41  edm::LogError("CmsTrackerPixelPhase2EndcapBuilder")<<" ERROR - I was expecting a Disk... I got a "<<ExtractStringFromDDD::getString(s,&fv);
42  }
43 
44  g->addComponent(subdet);
45 
46 }
47 
48 void
50 {
52 
53  std::sort( comp.begin(), comp.end(), isLessModZ);
54 
55  for( uint32_t i = 0; i < comp.size(); i++ )
56  {
57  det->component(i)->setGeographicalID(i+1); // Every subdetector: Inner pixel first, OT later, then sort by disk number
58  }
59 }
60 
static std::string getString(std::string const &, DDFilteredView *)
void addComponent(GeometricDet *)
void build(DDFilteredView &, GeometricDet *, std::string) override
void setGeographicalID(DetId id)
Definition: GeometricDet.h:82
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
static bool isLessModZ(const GeometricDet *a, const GeometricDet *b)
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
void sortNS(DDFilteredView &, GeometricDet *) override
GeometricDet * component(size_t index)
Definition: GeometricDet.h:114
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36
void buildComponent(DDFilteredView &, GeometricDet *, std::string) override
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum