CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Private Member Functions
CmsTrackerRodBuilder Class Reference

#include <CmsTrackerRodBuilder.h>

Inheritance diagram for CmsTrackerRodBuilder:
CmsTrackerLevelBuilder CmsTrackerAbstractConstruction

Private Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from CmsTrackerLevelBuilder
virtual void build (DDFilteredView &, GeometricDet *, std::string)
 
virtual ~CmsTrackerLevelBuilder ()
 
- Protected Attributes inherited from CmsTrackerLevelBuilder
CmsTrackerStringToEnum theCmsTrackerStringToEnum
 

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 
)
privatevirtual

Implements CmsTrackerLevelBuilder.

Definition at line 11 of file CmsTrackerRodBuilder.cc.

References CmsDetConstruction::buildComponent().

11  {
12  CmsDetConstruction theCmsDetConstruction;
13  theCmsDetConstruction.buildComponent(fv,g,s);
14 }
void buildComponent(DDFilteredView &, GeometricDet *, std::string)
void CmsTrackerRodBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
)
privatevirtual

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 16 of file CmsTrackerRodBuilder.cc.

References AlCaHLTBitMon_QueryRunRegistry::comp, GeometricDet::components(), and i.

16  {
18 
19  std::stable_sort(comp.begin(),comp.end(),LessModZ());
20 
21  for(uint32_t i=0; i<comp.size();i++){
22  comp[i]->setGeographicalID(i+1);
23  }
24 
25  if (comp.empty() ){
26  edm::LogError("CmsTrackerRodBuilder")<<"Where are the Rod's modules?";
27  }
28 }
int i
Definition: DBlmapReader.cc:9
std::vector< GeometricDet const * > GeometricDetContainer
Definition: GeometricDet.h:36
GeometricDetContainer & components()
Definition: GeometricDet.h:163