CMS 3D CMS Logo

CmsMTDEndcapBuilder.cc
Go to the documentation of this file.
8 #include <vector>
9 
10 #include <bitset>
11 
13 {}
14 
15 void
17 {
18  CmsMTDDiscBuilder theCmsMTDDiscBuilder;
19 
21  std::string subdet_name = subdet->name().fullname();
23  {
25  theCmsMTDDiscBuilder.build(fv,subdet,s);
26  break;
27  default:
28  throw cms::Exception("CmsMTDEndcapBuilder")<<" ERROR - I was expecting a Disk... I got a "<< fv.logicalPart().name().fullname();
29  }
30 
31  g->addComponent(subdet);
32 }
33 
34 
36 void
38 {
40 
41  std::stable_sort( comp.begin(), comp.end(), LessModZ());
42 
43  for( uint32_t i = 0; i < comp.size(); i++ )
44  {
45  const uint32_t side = det->component(i)->translation().z() > 0 ? 1 : 0;
46  det->component(i)->setGeographicalID(ETLDetId(side,0,0,0));
47  }
48 }
49 
GeometricTimingDet::GeometricTimingEnumType type(std::string const &) const
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
const N & name() const
Definition: DDBase.h:74
CmsMTDStringToEnum theCmsMTDStringToEnum
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
ConstGeometricTimingDetContainer & components()
DDTranslation const & translation() const
void addComponent(GeometricTimingDet *)
const std::string fullname() const
Definition: DDName.h:43
GeometricTimingDet * component(size_t index)
void setGeographicalID(DetId id)
void build(DDFilteredView &, GeometricTimingDet *, std::string) override
void buildComponent(DDFilteredView &, GeometricTimingDet *, std::string) override
DDName const & name() const
Detector identifier class for the Endcap Timing Layer.
Definition: ETLDetId.h:15
void sortNS(DDFilteredView &, GeometricTimingDet *) override
std::vector< GeometricTimingDet const * > ConstGeometricTimingDetContainer