CMS 3D CMS Logo

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

#include <CmsTrackerBuilder.h>

Inheritance diagram for CmsTrackerBuilder:
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

Abstract Class to construct a Level in the hierarchy

Definition at line 10 of file CmsTrackerBuilder.h.

Member Function Documentation

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

Implements CmsTrackerLevelBuilder.

Definition at line 13 of file CmsTrackerBuilder.cc.

References GeometricDet::addComponent(), CmsTrackerLevelBuilder::build(), ExtractStringFromDDD::getString(), GeometricDet::PixelBarrel, GeometricDet::PixelEndCap, GeometricDet::TEC, CmsTrackerLevelBuilder::theCmsTrackerStringToEnum, GeometricDet::TIB, GeometricDet::TID, GeometricDet::TOB, and CmsTrackerStringToEnum::type().

13  {
14 
15  CmsTrackerSubStrctBuilder theCmsTrackerSubStrctBuilder;
16 
20  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
21  break;
23  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
24  break;
25  case GeometricDet::TIB:
26  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
27  break;
28  case GeometricDet::TOB:
29  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
30  break;
31  case GeometricDet::TEC:
32  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
33  break;
34  case GeometricDet::TID:
35  theCmsTrackerSubStrctBuilder.build(fv,subdet,s);
36  break;
37  default:
38  edm::LogError("CmsTrackerBuilder")<<" ERROR - I was expecting a SubDet, I got a "<<ExtractStringFromDDD::getString(s,&fv);
39  ;
40  }
41 
42  g->addComponent(subdet);
43 
44 }
static std::string getString(std::string const &, DDFilteredView *)
void addComponent(GeometricDet *)
virtual void build(DDFilteredView &, GeometricDet *, std::string)
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum
void CmsTrackerBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
)
privatevirtual

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 46 of file CmsTrackerBuilder.cc.

References GeometricDet::components(), i, and groupFilesInBlocks::temp.

46  {
47 
49  std::stable_sort(comp.begin(),comp.end(),subDetByType());
50 
51  for(uint32_t i=0; i<comp.size(); i++){
52  uint32_t temp= comp[i]->type();
53  comp[i]->setGeographicalID(temp);
54  }
55 
56 }
int i
Definition: DBlmapReader.cc:9
std::vector< GeometricDet const * > GeometricDetContainer
Definition: GeometricDet.h:36
GeometricDetContainer & components()
Definition: GeometricDet.h:163