CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Geometry/TrackerNumberingBuilder/plugins/CmsTrackerLevelBuilder.cc

Go to the documentation of this file.
00001 #include "Geometry/TrackerNumberingBuilder/plugins/CmsTrackerLevelBuilder.h"
00002 #include "DetectorDescription/Core/interface/DDFilteredView.h"
00003 #include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
00004 #include "Geometry/TrackerNumberingBuilder/plugins/ExtractStringFromDDD.h"
00005 
00006 
00007 void CmsTrackerLevelBuilder::build (
00008                                     DDFilteredView& fv, 
00009                                     GeometricDet* tracker,
00010                                     std::string attribute){
00011 
00012  bool doLayers = fv.firstChild(); // descend to the first Layer  
00013 
00014   while (doLayers) {
00015     buildComponent(fv,tracker,attribute);      
00016     doLayers = fv.nextSibling(); // go to next layer
00017   }
00018 
00019   fv.parent();
00020 
00021  sortNS(fv,tracker);
00022 }