CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsTrackerBuilder.cc
Go to the documentation of this file.
7 
9 
10 #include <bitset>
11 
12 
14 
15  CmsTrackerSubStrctBuilder theCmsTrackerSubStrctBuilder;
16 
20  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
21  break;
23  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
24  break;
25  case GeometricDet::TIB:
26  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
27  break;
28  case GeometricDet::TOB:
29  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
30  break;
31  case GeometricDet::TEC:
32  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
33  break;
34  case GeometricDet::TID:
35  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
36  break;
37  default:
38  edm::LogError("CmsTrackerBuilder")<<" ERROR - I was expecting a SubDet, I got a "<<ExtractStringFromDDD::getString(s,&fv);
39  ;
40  }
41 
42  g->addComponent(subdet);
43 
44 }
45 
47 
49  std::stable_sort(comp.begin(),comp.end(),subDetByType());
50 
51  for(uint32_t i=0; i<comp.size(); i++){
52  uint32_t temp= comp[i]->type();
53  comp[i]->setGeographicalID(temp);
54  }
55 
56 }
57 
58 
59 
60 
static std::string getString(std::string const &, DDFilteredView *)
int i
Definition: DBlmapReader.cc:9
void addComponent(GeometricDet *)
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
std::vector< GeometricDet const * > GeometricDetContainer
Definition: GeometricDet.h:36
virtual void build(DDFilteredView &, GeometricDet *, std::string)
virtual void buildComponent(DDFilteredView &, GeometricDet *, std::string)
virtual void sortNS(DDFilteredView &, GeometricDet *)
GeometricDetContainer & components()
Definition: GeometricDet.h:163
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum