test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsTrackerPixelPhase2EndcapBuilder.cc
Go to the documentation of this file.
9 #include <vector>
10 
11 #include <bitset>
12 
14 {}
15 
16 void
18 {
19  CmsTrackerPhase1DiskBuilder theCmsTrackerPhase1DiskBuilder;
20  CmsTrackerOTDiscBuilder theCmsTrackerOTDiscBuilder;
21 
23  std::string subdet_name = subdet->name();
25  {
27  theCmsTrackerPhase1DiskBuilder.build(fv,subdet,s);
28  break;
30  theCmsTrackerPhase1DiskBuilder.build(fv,subdet,s);
31  break;
33  theCmsTrackerOTDiscBuilder.build(fv,subdet,s);
34  break;
35 
36  default:
37  edm::LogError("CmsTrackerPixelPhase2EndcapBuilder")<<" ERROR - I was expecting a Disk... I got a "<<ExtractStringFromDDD::getString(s,&fv);
38  }
39 
40  g->addComponent(subdet);
41 
42 }
43 
44 void
46 {
48 
49  std::sort( comp.begin(), comp.end(), LessModZ());
50 
51  for( uint32_t i = 0; i < comp.size(); i++ )
52  {
53  det->component(i)->setGeographicalID(i+1); // Every subdetector: Inner pixel first, OT later, then sort by disk number
54  }
55 }
56 
virtual void buildComponent(DDFilteredView &, GeometricDet *, std::string)
static std::string getString(std::string const &, DDFilteredView *)
int i
Definition: DBlmapReader.cc:9
void addComponent(GeometricDet *)
void setGeographicalID(DetId id)
Definition: GeometricDet.h:80
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:174
virtual void build(DDFilteredView &, GeometricDet *, std::string)
DDName const & name() const
Definition: GeometricDet.h:144
GeometricDet * component(size_t index)
Definition: GeometricDet.h:112
virtual void sortNS(DDFilteredView &, GeometricDet *)
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum