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)
string s
Definition: asciidump.py:422
void CmsTrackerStringBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
)
privatevirtual

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 16 of file CmsTrackerStringBuilder.cc.

References GeometricDet::addComponents(), GeometricDet::clearComponents(), GeometricDet::components(), and i.

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  comp[i]->setGeographicalID(DetId(i+1));
24  }
25  det->clearComponents();
26  det->addComponents(comp);
27  }else{
28  edm::LogError("CmsTrackerStringBuilder")<<"Where are the String's modules?";
29  }
30 }
int i
Definition: DBlmapReader.cc:9
void clearComponents()
Definition: GeometricDet.h:89
std::vector< GeometricDet const * > GeometricDetContainer
Definition: GeometricDet.h:36
Definition: DetId.h:20
GeometricDetContainer & components()
Definition: GeometricDet.h:163
void addComponents(GeometricDetContainer const &cont)