#include <CmsTrackerRodBuilder.h>
Private Member Functions | |
virtual void | buildComponent (DDFilteredView &, GeometricDet *, std::string) |
virtual void | sortNS (DDFilteredView &, GeometricDet *) |
Class which constructs TOB rods
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().
{ CmsDetConstruction theCmsDetConstruction; theCmsDetConstruction.buildComponent(fv,g,s); }
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.
{ GeometricDet::GeometricDetContainer & comp = det->components(); std::stable_sort(comp.begin(),comp.end(),LessModZ()); for(uint32_t i=0; i<comp.size();i++){ comp[i]->setGeographicalID(i+1); } if (comp.empty() ){ edm::LogError("CmsTrackerRodBuilder")<<"Where are the Rod's modules?"; } }