CMS 3D CMS Logo

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

#include <CmsTrackerStringBuilder.h>

Inheritance diagram for CmsTrackerStringBuilder:
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 TIB strings

Definition at line 10 of file CmsTrackerStringBuilder.h.

Member Function Documentation

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

Implements CmsTrackerLevelBuilder.

Definition at line 11 of file CmsTrackerStringBuilder.cc.

References CmsDetConstruction::buildComponent().

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

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 16 of file CmsTrackerStringBuilder.cc.

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

16  {
18 
19  std::stable_sort(comp.begin(),comp.end(),LessModZ());
20 
21  if(comp.size()){
22  for(uint32_t i=0; i<comp.size();i++){
23  det->component(i)->setGeographicalID(DetId(i+1));
24  }
25  }else{
26  edm::LogError("CmsTrackerStringBuilder")<<"Where are the String's modules?";
27  }
28 }
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
Definition: DetId.h:18