CMS 3D CMS Logo

CmsTrackerRodBuilder Class Reference

Class which constructs TOB rods. More...

#include <Geometry/TrackerNumberingBuilder/plugins/CmsTrackerRodBuilder.h>

Inheritance diagram for CmsTrackerRodBuilder:

CmsTrackerLevelBuilder CmsTrackerAbstractConstruction

List of all members.

Private Member Functions

virtual void buildComponent (DDFilteredView &, GeometricDet *, std::string)
virtual void sortNS (DDFilteredView &, GeometricDet *)


Detailed Description

Class which constructs TOB rods.

Definition at line 10 of file CmsTrackerRodBuilder.h.


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:25 2009 for CMSSW by  doxygen 1.5.4