CMS 3D CMS Logo

Private Member Functions

CmsTrackerLadderBuilder Class Reference

#include <CmsTrackerLadderBuilder.h>

Inheritance diagram for CmsTrackerLadderBuilder:
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 builds Pixel Ladders

Definition at line 11 of file CmsTrackerLadderBuilder.h.


Member Function Documentation

void CmsTrackerLadderBuilder::buildComponent ( DDFilteredView fv,
GeometricDet g,
std::string  s 
) [private, virtual]

Implements CmsTrackerLevelBuilder.

Definition at line 10 of file CmsTrackerLadderBuilder.cc.

References CmsDetConstruction::buildComponent().

                                                                                            {

  CmsDetConstruction theCmsDetConstruction;
  theCmsDetConstruction.buildComponent(fv,g,s);  
}
void CmsTrackerLadderBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
) [private, virtual]

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 16 of file CmsTrackerLadderBuilder.cc.

References GeometricDet::components(), GeometricDet::DetUnit, i, and python::multivaluedict::sort().

                                                                         {
  GeometricDet::GeometricDetContainer & comp = det->components();

  if (comp.front()->type()==GeometricDet::DetUnit) 
    std::sort(comp.begin(),comp.end(),LessZ());
  else
   edm::LogError("CmsTrackerLadderBuilder")<<"ERROR - wrong SubDet to sort..... "<<det->components().front()->type(); 
  
 
  for(uint32_t i=0; i<comp.size();i++){
    comp[i]->setGeographicalID(i+1);
  } 
 

}