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 
25  std::string subdet_name = subdet->name();
27  {
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")<<" ERROR - I was expecting a Disk... I got a "<<ExtractStringFromDDD::getString(s,&fv);
43  }
44 
45  g->addComponent(subdet);
46 
47 }
48 
49 void
51 {
53 
54  std::sort( comp.begin(), comp.end(), LessModZ());
55 
56  for( uint32_t i = 0; i < comp.size(); i++ )
57  {
58  det->component(i)->setGeographicalID(i+1); // Every subdetector: Inner pixel first, OT later, then sort by disk number
59  }
60 }
61 
virtual void buildComponent(DDFilteredView &, GeometricDet *, std::string)
static std::string getString(std::string const &, DDFilteredView *)
void addComponent(GeometricDet *)
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
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
virtual void build(DDFilteredView &, GeometricDet *, std::string)
DDName const & name() const
Definition: GeometricDet.h:146
GeometricDet * component(size_t index)
Definition: GeometricDet.h:114
virtual void sortNS(DDFilteredView &, GeometricDet *)
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum