Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "Geometry/TrackerNumberingBuilder/plugins/CmsTrackerPixelPhase2RingBuilder.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 CmsTrackerPixelPhase2RingBuilder<FilteredView>::buildComponent(FilteredView& fv,
0015                                                                     GeometricDet* g,
0016                                                                     const std::string& s) {
0017   CmsDetConstruction<FilteredView> theCmsDetConstruction;
0018   theCmsDetConstruction.buildComponent(fv, g, s);
0019 }
0020 
0021 template <class FilteredView>
0022 void CmsTrackerPixelPhase2RingBuilder<FilteredView>::sortNS(FilteredView& fv, GeometricDet* det) {
0023   GeometricDet::ConstGeometricDetContainer& comp = det->components();
0024 
0025   //increasing phi taking into account the sub-modules
0026 
0027   trackerStablePhiSort(comp.begin(), comp.end(), CmsTrackerLevelBuilderHelper::getPhi);
0028 
0029   for (uint32_t i = 0; i < comp.size(); i++) {
0030     det->component(i)->setGeographicalID(i + 1);
0031   }
0032 }
0033 
0034 template class CmsTrackerPixelPhase2RingBuilder<DDFilteredView>;
0035 template class CmsTrackerPixelPhase2RingBuilder<cms::DDFilteredView>;