CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsTrackerPanelBuilder.cc
Go to the documentation of this file.
8 #include <vector>
9 
10 
12 
13  CmsDetConstruction theCmsDetConstruction;
16  theCmsDetConstruction.buildComponent(fv,g,s);
17  break;
18  default:
19  edm::LogError("CmsTrackerPanelBuilder")<<" ERROR - I was expecting a Plaq, I got a "<<ExtractStringFromDDD::getString(s,&fv);
20  ;
21  }
22 }
23 
26 
27  if (comp.front()->type()==GeometricDet::DetUnit)
28  std::sort(comp.begin(),comp.end(),LessR());
29  else
30  edm::LogError("CmsTrackerPanelBuilder")<<"ERROR - wrong SubDet to sort..... "<<det->components().front()->type();
31 
32  for(uint32_t i=0; i<comp.size();i++){
33  det->component(i)->setGeographicalID(i+1);
34  }
35 
36 }
virtual void buildComponent(DDFilteredView &, GeometricDet *, std::string)
static std::string getString(std::string const &, DDFilteredView *)
int i
Definition: DBlmapReader.cc:9
void setGeographicalID(DetId id)
Definition: GeometricDet.h:75
void buildComponent(DDFilteredView &, GeometricDet *, std::string)
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:169
virtual void sortNS(DDFilteredView &, GeometricDet *)
GeometricDet * component(size_t index)
Definition: GeometricDet.h:107
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum