CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
CmsTrackerPixelPhase2EndcapBuilder Class Reference

#include <CmsTrackerPixelPhase2EndcapBuilder.h>

Inheritance diagram for CmsTrackerPixelPhase2EndcapBuilder:
CmsTrackerLevelBuilder CmsTrackerAbstractConstruction

Public Member Functions

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

Private Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from CmsTrackerLevelBuilder
CmsTrackerStringToEnum theCmsTrackerStringToEnum
 

Detailed Description

Class which builds the pixel phase 2 endcap

Definition at line 11 of file CmsTrackerPixelPhase2EndcapBuilder.h.

Constructor & Destructor Documentation

CmsTrackerPixelPhase2EndcapBuilder::CmsTrackerPixelPhase2EndcapBuilder ( )

Definition at line 14 of file CmsTrackerPixelPhase2EndcapBuilder.cc.

15 {}

Member Function Documentation

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

Implements CmsTrackerLevelBuilder.

Definition at line 18 of file CmsTrackerPixelPhase2EndcapBuilder.cc.

References GeometricDet::addComponent(), CmsTrackerLevelBuilder::build(), ExtractStringFromDDD::getString(), GeometricDet::OTPhase2Wheel, GeometricDet::PixelPhase2FullDisk, GeometricDet::PixelPhase2ReducedDisk, GeometricDet::PixelPhase2TDRDisk, CmsTrackerLevelBuilder::theCmsTrackerStringToEnum, and CmsTrackerStringToEnum::type().

19 {
20  CmsTrackerPhase2TPDiskBuilder theCmsTrackerPhase2DiskBuilder;
21  CmsTrackerPixelPhase2DiskBuilder theCmsTrackerPixelPhase2DiskBuilder;
22  CmsTrackerOTDiscBuilder theCmsTrackerOTDiscBuilder;
23 
26  {
28  theCmsTrackerPhase2DiskBuilder.build(fv,subdet,s);
29  break;
31  theCmsTrackerPhase2DiskBuilder.build(fv,subdet,s);
32  break;
34  theCmsTrackerPixelPhase2DiskBuilder.build(fv,subdet,s);
35  break;
37  theCmsTrackerOTDiscBuilder.build(fv,subdet,s);
38  break;
39 
40  default:
41  edm::LogError("CmsTrackerPixelPhase2EndcapBuilder")<<" ERROR - I was expecting a Disk... I got a "<<ExtractStringFromDDD::getString(s,&fv);
42  }
43 
44  g->addComponent(subdet);
45 
46 }
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 CmsTrackerPixelPhase2EndcapBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
)
overrideprivatevirtual

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 49 of file CmsTrackerPixelPhase2EndcapBuilder.cc.

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

50 {
52 
53  std::sort( comp.begin(), comp.end(), LessModZ());
54 
55  for( uint32_t i = 0; i < comp.size(); i++ )
56  {
57  det->component(i)->setGeographicalID(i+1); // Every subdetector: Inner pixel first, OT later, then sort by disk number
58  }
59 }
void setGeographicalID(DetId id)
Definition: GeometricDet.h:82
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
GeometricDet * component(size_t index)
Definition: GeometricDet.h:114
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36