CMS 3D CMS Logo

List of all members | Private Member Functions
CmsTrackerPixelPhase2DiskBuilder Class Reference

#include <CmsTrackerPixelPhase2DiskBuilder.h>

Inheritance diagram for CmsTrackerPixelPhase2DiskBuilder:
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 Pixel Tracker/Discs.

Definition at line 11 of file CmsTrackerPixelPhase2DiskBuilder.h.

Member Function Documentation

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

Implements CmsTrackerLevelBuilder.

Definition at line 15 of file CmsTrackerPixelPhase2DiskBuilder.cc.

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

16 {
17  CmsTrackerPixelPhase2RingBuilder theCmsTrackerPixelPhase2RingBuilder;
19 
21  {
23  theCmsTrackerPixelPhase2RingBuilder.build( fv, subdet, s );
24  break;
25  default:
26  edm::LogError( "CmsTrackerPixelPhase2DiskBuilder" ) << " 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 CmsTrackerPixelPhase2DiskBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
)
overrideprivatevirtual

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 32 of file CmsTrackerPixelPhase2DiskBuilder.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("CmsTrackerPixelPhase2Builder")<<"ERROR - wrong SubDet to sort..... "<<det->components().front()->type();
44  }
45 
47  uint32_t totalrings = comp.size();
48 
49  for ( uint32_t rn=0; rn<totalrings; rn++) {
50  rings.emplace_back(det->component(rn));
51  uint32_t blade = rn+1;
52  uint32_t panel = 1;
53  uint32_t temp = (blade<<2) | panel;
54  rings[rn]->setGeographicalID(temp);
55 
56  }
57 
58  det->clearComponents();
59  det->addComponents(rings);
60 
61 }
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)