#include <Geometry/TrackerNumberingBuilder/plugins/CmsTrackerRodBuilder.h>
Private Member Functions | |
virtual void | buildComponent (DDFilteredView &, GeometricDet *, std::string) |
virtual void | sortNS (DDFilteredView &, GeometricDet *) |
Definition at line 10 of file CmsTrackerRodBuilder.h.
void CmsTrackerRodBuilder::buildComponent | ( | DDFilteredView & | fv, | |
GeometricDet * | g, | |||
std::string | s | |||
) | [private, virtual] |
Implements CmsTrackerLevelBuilder.
Definition at line 11 of file CmsTrackerRodBuilder.cc.
References CmsDetConstruction::buildComponent().
00011 { 00012 CmsDetConstruction theCmsDetConstruction; 00013 theCmsDetConstruction.buildComponent(fv,g,s); 00014 }
void CmsTrackerRodBuilder::sortNS | ( | DDFilteredView & | fv, | |
GeometricDet * | det | |||
) | [private, virtual] |
Reimplemented from CmsTrackerLevelBuilder.
Definition at line 16 of file CmsTrackerRodBuilder.cc.
References GeometricDet::components(), and i.
00016 { 00017 GeometricDet::GeometricDetContainer & comp = det->components(); 00018 00019 std::stable_sort(comp.begin(),comp.end(),LessModZ()); 00020 00021 for(uint32_t i=0; i<comp.size();i++){ 00022 comp[i]->setGeographicalID(i+1); 00023 } 00024 00025 if (comp.empty() ){ 00026 edm::LogError("CmsTrackerRodBuilder")<<"Where are the Rod's modules?"; 00027 } 00028 }