test
CMS 3D CMS Logo

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

#include <CmsTrackerLadderBuilder.h>

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

Definition at line 11 of file CmsTrackerLadderBuilder.h.

Member Function Documentation

void CmsTrackerLadderBuilder::buildComponent ( DDFilteredView fv,
GeometricDet g,
std::string  s 
)
privatevirtual

Implements CmsTrackerLevelBuilder.

Definition at line 10 of file CmsTrackerLadderBuilder.cc.

References CmsDetConstruction::buildComponent().

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

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 16 of file CmsTrackerLadderBuilder.cc.

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

16  {
18 
19  //sorting for PhaseI & PhaseII pixel ladder modules
20  //sorting also for PhaseII outer tracker rod modules
21  std::sort(comp.begin(),comp.end(),LessZ());
22 
23  for(uint32_t i=0; i<comp.size();i++){
24  det->component(i)->setGeographicalID(i+1);
25  }
26 
27  if (comp.empty() ){
28  edm::LogError("CmsTrackerLadderBuilder") << "Where are the OT Phase2/ pixel barrel modules modules?";
29  }
30 
31 }
int i
Definition: DBlmapReader.cc:9
void setGeographicalID(DetId id)
Definition: GeometricDet.h:80
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:174
GeometricDet * component(size_t index)
Definition: GeometricDet.h:112
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36