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 CmsTrackerBuilder::CmsTrackerBuilder( unsigned int totalBlade )
13  : m_totalBlade( totalBlade )
14 {}
15 
16 void
18 {
19  CmsTrackerSubStrctBuilder theCmsTrackerSubStrctBuilder( m_totalBlade );
20 
23  {
25  theCmsTrackerSubStrctBuilder.build( fv, subdet, s );
26  break;
28  theCmsTrackerSubStrctBuilder.build( fv, subdet, s );
29  break;
30  case GeometricDet::TIB:
31  theCmsTrackerSubStrctBuilder.build( fv, subdet, s );
32  break;
33  case GeometricDet::TOB:
34  theCmsTrackerSubStrctBuilder.build( fv, subdet, s );
35  break;
36  case GeometricDet::TEC:
37  theCmsTrackerSubStrctBuilder.build( fv, subdet, s );
38  break;
39  case GeometricDet::TID:
40  theCmsTrackerSubStrctBuilder.build( fv, subdet, s );
41  break;
42  default:
43  edm::LogError( "CmsTrackerBuilder" ) << " ERROR - I was expecting a SubDet, I got a " << ExtractStringFromDDD::getString( s, &fv );
44  }
45 
46  g->addComponent( subdet );
47 }
48 
49 void
51 {
53  std::stable_sort( comp.begin(), comp.end(), subDetByType());
54 
55  for( uint32_t i = 0; i < comp.size(); i++ )
56  {
57  uint32_t temp= comp[i]->type();
58  det->component(i)->setGeographicalID(temp);
59  }
60 }
61 
62 
63 
64 
static std::string getString(std::string const &, DDFilteredView *)
int i
Definition: DBlmapReader.cc:9
CmsTrackerBuilder(unsigned int totalBlade)
void addComponent(GeometricDet *)
void setGeographicalID(DetId id)
Definition: GeometricDet.h:75
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 build(DDFilteredView &, GeometricDet *, std::string)
virtual void buildComponent(DDFilteredView &, GeometricDet *, std::string)
GeometricDet * component(size_t index)
Definition: GeometricDet.h:107
unsigned int m_totalBlade
virtual void sortNS(DDFilteredView &, GeometricDet *)
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum