CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
virtual void build (DDFilteredView &, GeometricDet *, std::string)
 
virtual ~CmsTrackerLevelBuilder ()
 

Private Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from CmsTrackerLevelBuilder
CmsTrackerStringToEnum theCmsTrackerStringToEnum
 

Detailed Description

Class which builds the pixel phase 1 endcap

Definition at line 11 of file CmsTrackerPixelPhase2EndcapBuilder.h.

Constructor & Destructor Documentation

CmsTrackerPixelPhase2EndcapBuilder::CmsTrackerPixelPhase2EndcapBuilder ( )

Definition at line 13 of file CmsTrackerPixelPhase2EndcapBuilder.cc.

14 {}

Member Function Documentation

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

Implements CmsTrackerLevelBuilder.

Definition at line 17 of file CmsTrackerPixelPhase2EndcapBuilder.cc.

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

18 {
19  CmsTrackerPhase1DiskBuilder theCmsTrackerPhase1DiskBuilder;
20  CmsTrackerOTDiscBuilder theCmsTrackerOTDiscBuilder;
21 
23  std::string subdet_name = subdet->name();
25  {
27  theCmsTrackerPhase1DiskBuilder.build(fv,subdet,s);
28  break;
30  theCmsTrackerPhase1DiskBuilder.build(fv,subdet,s);
31  break;
33  theCmsTrackerOTDiscBuilder.build(fv,subdet,s);
34  break;
35 
36  default:
37  edm::LogError("CmsTrackerPixelPhase2EndcapBuilder")<<" ERROR - I was expecting a Disk... I got a "<<ExtractStringFromDDD::getString(s,&fv);
38  }
39 
40  g->addComponent(subdet);
41 
42 }
static std::string getString(std::string const &, DDFilteredView *)
void addComponent(GeometricDet *)
virtual void build(DDFilteredView &, GeometricDet *, std::string)
DDName const & name() const
Definition: GeometricDet.h:144
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum
void CmsTrackerPixelPhase2EndcapBuilder::sortNS ( DDFilteredView fv,
GeometricDet det 
)
privatevirtual

Reimplemented from CmsTrackerLevelBuilder.

Definition at line 45 of file CmsTrackerPixelPhase2EndcapBuilder.cc.

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

46 {
48 
49  std::sort( comp.begin(), comp.end(), LessModZ());
50 
51  for( uint32_t i = 0; i < comp.size(); i++ )
52  {
53  det->component(i)->setGeographicalID(i+1); // Every subdetector: Inner pixel first, OT later, then sort by disk number
54  }
55 }
int i
Definition: DBlmapReader.cc:9
void setGeographicalID(DetId id)
Definition: GeometricDet.h:80
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:174
GeometricDet * component(size_t index)
Definition: GeometricDet.h:112
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36