CMS 3D CMS Logo

CmsTrackerPixelPhase1EndcapBuilder.cc
Go to the documentation of this file.
8 #include <vector>
9 
10 #include <bitset>
11 
13 {}
14 
15 void
17 {
18  CmsTrackerPhase1DiskBuilder theCmsTrackerPhase1DiskBuilder;
19 
21  const std::string & subdet_name = subdet->name().name();
23  {
25  LogDebug("DiskNames") << "The name of the components is: " << subdet_name;
26  theCmsTrackerPhase1DiskBuilder.build(fv,subdet,s);
27  break;
28 
29  default:
30  edm::LogError("CmsTrackerPixelPhase1EndcapBuilder")<<" ERROR - I was expecting a Disk... I got a "<<ExtractStringFromDDD::getString(s,&fv);
31  }
32 
33  g->addComponent(subdet);
34 
35 }
36 
37 void
39 {
41 
42  switch( comp.front()->type())
43  {
45  std::sort( comp.begin(), comp.end(), isLessModZ);
46  break;
47  default:
48  edm::LogError( "CmsTrackerPixelPhase1EndcapBuilder" ) << "ERROR - wrong SubDet to sort..... " << det->components().front()->type();
49  }
50 
51  for( uint32_t i = 0; i < comp.size(); i++ )
52  {
53  det->component(i)->setGeographicalID(i+1); // Every subdetector: Disk Number
54  }
55 }
56 
#define LogDebug(id)
void addComponent(GeometricDet *)
void build(DDFilteredView &, GeometricDet *, std::string) override
void buildComponent(DDFilteredView &, GeometricDet *, std::string) override
void setGeographicalID(DetId id)
Definition: GeometricDet.h:82
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
static bool isLessModZ(const GeometricDet *a, const GeometricDet *b)
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
DDName const & name() const
Definition: GeometricDet.h:146
static std::string getString(std::string const &, DDFilteredView *)
GeometricDet * component(size_t index)
Definition: GeometricDet.h:114
void sortNS(DDFilteredView &, GeometricDet *) override
std::vector< GeometricDet const * > ConstGeometricDetContainer
Definition: GeometricDet.h:36
const std::string & name() const
Returns the name.
Definition: DDName.cc:53
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum