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::components(), GeometricDet::DetUnit, i, and python.multivaluedict::sort().

16  {
18 
19  if (comp.front()->type()==GeometricDet::DetUnit)
20  std::sort(comp.begin(),comp.end(),LessZ());
21  else
22  edm::LogError("CmsTrackerLadderBuilder")<<"ERROR - wrong SubDet to sort..... "<<det->components().front()->type();
23 
24 
25  for(uint32_t i=0; i<comp.size();i++){
26  comp[i]->setGeographicalID(i+1);
27  }
28 
29 
30 }
int i
Definition: DBlmapReader.cc:9
std::vector< GeometricDet const * > GeometricDetContainer
Definition: GeometricDet.h:36
GeometricDetContainer & components()
Definition: GeometricDet.h:163