CMS 3D CMS Logo

List of all members | Private Member Functions
CmsTrackerOTDiscBuilder Class Reference

#include <CmsTrackerOTDiscBuilder.h>

Inheritance diagram for CmsTrackerOTDiscBuilder:
CmsTrackerLevelBuilder CmsTrackerAbstractConstruction

Private Member Functions

void buildComponent (DDFilteredView &, GeometricDet *, std::string) override
 
void sortNS (DDFilteredView &, GeometricDet *) override
 

Additional Inherited Members

- Public Member Functions inherited from CmsTrackerLevelBuilder
void build (DDFilteredView &, GeometricDet *, std::string) override
 
 ~CmsTrackerLevelBuilder () override
 
- Public Member Functions inherited from CmsTrackerAbstractConstruction
virtual ~CmsTrackerAbstractConstruction ()=default
 
- Protected Attributes inherited from CmsTrackerLevelBuilder
CmsTrackerStringToEnum theCmsTrackerStringToEnum
 

Detailed Description

Class which contructs Phase2 Outer Tracker/Discs.

Definition at line 11 of file CmsTrackerOTDiscBuilder.h.

Member Function Documentation

void CmsTrackerOTDiscBuilder::buildComponent ( DDFilteredView fv,
GeometricDet g,
std::string  s 
)
overrideprivatevirtual

Implements CmsTrackerLevelBuilder.

Definition at line 15 of file CmsTrackerOTDiscBuilder.cc.

References GeometricDet::addComponent(), CmsTrackerLevelBuilder::build(), ExtractStringFromDDD::getString(), and GeometricDet::panel.

16 {
17  CmsTrackerOTRingBuilder theCmsTrackerOTRingBuilder;
19 
21  {
23  theCmsTrackerOTRingBuilder.build( fv, subdet, s );
24  break;
25  default:
26  edm::LogError( "CmsTrackerOTDiscBuilder" ) << " ERROR - I was expecting a Panel, I got a " << ExtractStringFromDDD::getString( s, &fv );
27  }
28  g->addComponent( subdet );
29 }
static std::string getString(std::string const &, DDFilteredView *)
void addComponent(GeometricDet *)
void build(DDFilteredView &, GeometricDet *, std::string) override
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum
void CmsTrackerOTDiscBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
)
overrideprivatevirtual

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 32 of file CmsTrackerOTDiscBuilder.cc.

References GeometricDet::addComponents(), GeometricDet::clearComponents(), AlCaHLTBitMon_QueryRunRegistry::comp, GeometricDet::component(), GeometricDet::components(), GeometricDet::panel, and groupFilesInBlocks::temp.

33 {
34 
35 
37 
38  switch(det->components().front()->type()){
40  // nothing to be done because the rings (here named panels) are already sorted ??
41  break;
42  default:
43  edm::LogError("CmsTrackerOTDiscBuilder")<<"ERROR - wrong SubDet to sort..... "<<det->components().front()->type();
44  }
45 
47  uint32_t totalrings = comp.size();
48 
49 
50  for ( uint32_t rn=0; rn<totalrings; rn++) {
51  rings.emplace_back(det->component(rn));
52  uint32_t blade = rn+1;
53  uint32_t panel = 1;
54  uint32_t temp = (blade<<2) | panel;
55  rings[rn]->setGeographicalID(temp);
56 
57  }
58 
59  det->clearComponents();
60  det->addComponents(rings);
61 
62 }
void clearComponents()
Definition: GeometricDet.h:98
std::vector< GeometricDet * > GeometricDetContainer
Definition: GeometricDet.h:37
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
GeometricDet * component(size_t index)
Definition: GeometricDet.h:114
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36
void addComponents(GeometricDetContainer const &cont)