Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:09

0001 #include "Geometry/TrackerNumberingBuilder/plugins/CmsTrackerOTRingBuilder.h"
0002 #include "DetectorDescription/Core/interface/DDFilteredView.h"
0003 #include "DetectorDescription/DDCMS/interface/DDFilteredView.h"
0004 #include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
0005 #include "Geometry/TrackerNumberingBuilder/plugins/ExtractStringFromDDD.h"
0006 #include "Geometry/TrackerNumberingBuilder/plugins/CmsDetConstruction.h"
0007 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0008 #include "DataFormats/DetId/interface/DetId.h"
0009 #include "Geometry/TrackerNumberingBuilder/interface/trackerStablePhiSort.h"
0010 
0011 #include <vector>
0012 
0013 template <class FilteredView>
0014 void CmsTrackerOTRingBuilder<FilteredView>::buildComponent(FilteredView& fv, GeometricDet* g, const std::string& s) {
0015   CmsDetConstruction<FilteredView> theCmsDetConstruction;
0016   theCmsDetConstruction.buildComponent(fv, g, s);
0017 }
0018 
0019 template <class FilteredView>
0020 void CmsTrackerOTRingBuilder<FilteredView>::sortNS(FilteredView& fv, GeometricDet* det) {
0021   GeometricDet::ConstGeometricDetContainer& comp = det->components();
0022 
0023   //increasing phi taking into account the sub-modules
0024   trackerStablePhiSort(comp.begin(), comp.end(), CmsTrackerLevelBuilderHelper::getPhiGluedModule);
0025 
0026   for (uint32_t i = 0; i < comp.size(); i++) {
0027     det->component(i)->setGeographicalID(i + 1);
0028   }
0029 }
0030 
0031 template class CmsTrackerOTRingBuilder<DDFilteredView>;
0032 template class CmsTrackerOTRingBuilder<cms::DDFilteredView>;