CMS 3D CMS Logo

DDHGCalHEFileAlgo.cc
Go to the documentation of this file.
1 // File: DDHGCalHEFileAlgo.cc
3 // Description: Geometry factory class for HGCal (Mix)
5 
23 
24 #include <cmath>
25 #include <memory>
26 #include <string>
27 #include <unordered_set>
28 #include <vector>
29 
30 //#define EDM_ML_DEBUG
31 using namespace cms_units::operators;
32 
33 class DDHGCalHEFileAlgo : public DDAlgorithm {
34 public:
36 
37  void initialize(const DDNumericArguments& nArgs,
38  const DDVectorArguments& vArgs,
39  const DDMapArguments& mArgs,
40  const DDStringArguments& sArgs,
41  const DDStringVectorArguments& vsArgs) override;
42  void execute(DDCompactView& cpv) override;
43 
44 protected:
45  void constructLayers(const DDLogicalPart&, DDCompactView& cpv);
46  void positionMix(const DDLogicalPart& glog,
47  const std::string& name,
48  int copy,
49  double thick,
50  const DDMaterial& matter,
51  double rin,
52  double rmid,
53  double routF,
54  double zz,
55  DDCompactView& cpv);
56  void positionSensitive(
57  const DDLogicalPart& glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView& cpv);
58 
59 private:
61 
62  static constexpr double tol1_ = 0.01;
63  static constexpr double tol2_ = 0.00001;
64 
65  std::vector<std::string> wafers_; // Wafers
66  std::vector<std::string> materials_; // Materials
67  std::vector<std::string> names_; // Names
68  std::vector<double> thick_; // Thickness of the material
69  std::vector<int> copyNumber_; // Initial copy numbers
70  std::vector<int> layers_; // Number of layers in a section
71  std::vector<double> layerThick_; // Thickness of each section
72  std::vector<double> rMixLayer_; // Partition between Si/Sci part
73  std::vector<int> layerType_; // Type of the layer
74  std::vector<int> layerSense_; // Content of a layer (sensitive?)
75  int firstLayer_; // Copy # of the first sensitive layer
76  int absorbMode_; // Absorber mode
77  int sensitiveMode_; // Sensitive mode
78  std::vector<std::string> materialsTop_; // Materials of top layers
79  std::vector<std::string> namesTop_; // Names of top layers
80  std::vector<double> layerThickTop_; // Thickness of the top sections
81  std::vector<int> layerTypeTop_; // Type of the Top layer
82  std::vector<int> copyNumberTop_; // Initial copy numbers (top section)
83  std::vector<std::string> materialsBot_; // Materials of bottom layers
84  std::vector<std::string> namesBot_; // Names of bottom layers
85  std::vector<double> layerThickBot_; // Thickness of the bottom sections
86  std::vector<int> layerTypeBot_; // Type of the bottom layers
87  std::vector<int> copyNumberBot_; // Initial copy numbers (bot section)
88  std::vector<int> layerSenseBot_; // Content of bottom layer (sensitive?)
89  std::vector<int> layerCenter_; // Centering of the wafers
90 
91  double zMinBlock_; // Starting z-value of the block
92  std::vector<double> rad100to200_; // Parameters for 120-200mum trans.
93  std::vector<double> rad200to300_; // Parameters for 200-300mum trans.
94  double zMinRadPar_; // Minimum z for radius parametriz.
95  std::vector<int> waferIndex_; // Wafer index for the types
96  std::vector<int> waferTypes_; // Wafer types
97  int choiceType_; // Type of parametrization to be used
98  int nCutRadPar_; // Cut off threshold for corners
99  double fracAreaMin_; // Minimum fractional conatined area
100  double waferSize_; // Width of the wafer
101  double waferSepar_; // Sensor separation
102  int sectors_; // Sectors
103  std::vector<double> slopeB_; // Slope at the lower R
104  std::vector<double> zFrontB_; // Starting Z values for the slopes
105  std::vector<double> rMinFront_; // Corresponding rMin's
106  std::vector<double> slopeT_; // Slopes at the larger R
107  std::vector<double> zFrontT_; // Starting Z values for the slopes
108  std::vector<double> rMaxFront_; // Corresponding rMax's
109  std::string nameSpace_; // Namespace of this and ALL sub-parts
110  std::unordered_set<int> copies_; // List of copy #'s
111  double alpha_, cosAlpha_;
112 };
113 
115 #ifdef EDM_ML_DEBUG
116  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Creating an instance";
117 #endif
118 }
119 
121  const DDVectorArguments& vArgs,
122  const DDMapArguments&,
123  const DDStringArguments& sArgs,
124  const DDStringVectorArguments& vsArgs) {
125  wafers_ = vsArgs["WaferNames"];
126 #ifdef EDM_ML_DEBUG
127  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << wafers_.size() << " wafers";
128  for (unsigned int i = 0; i < wafers_.size(); ++i)
129  edm::LogVerbatim("HGCalGeom") << "Wafer[" << i << "] " << wafers_[i];
130 #endif
131  materials_ = vsArgs["MaterialNames"];
132  names_ = vsArgs["VolumeNames"];
133  thick_ = vArgs["Thickness"];
134  copyNumber_.resize(materials_.size(), 1);
135 #ifdef EDM_ML_DEBUG
136  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << materials_.size() << " types of volumes";
137  for (unsigned int i = 0; i < names_.size(); ++i)
138  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness " << thick_[i]
139  << " filled with " << materials_[i] << " first copy number " << copyNumber_[i];
140 #endif
141  layers_ = dbl_to_int(vArgs["Layers"]);
142  layerThick_ = vArgs["LayerThick"];
143  rMixLayer_ = vArgs["LayerRmix"];
144 #ifdef EDM_ML_DEBUG
145  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
146  for (unsigned int i = 0; i < layers_.size(); ++i)
147  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << layerThick_[i] << " Rmid " << rMixLayer_[i]
148  << " with " << layers_[i] << " layers";
149 #endif
150  layerType_ = dbl_to_int(vArgs["LayerType"]);
151  layerSense_ = dbl_to_int(vArgs["LayerSense"]);
152  firstLayer_ = (int)(nArgs["FirstLayer"]);
153  absorbMode_ = (int)(nArgs["AbsorberMode"]);
154  sensitiveMode_ = (int)(nArgs["SensitiveMode"]);
155 #ifdef EDM_ML_DEBUG
156  edm::LogVerbatim("HGCalGeom") << "First Layer " << firstLayer_ << " and "
157  << "Absober:Sensitive mode " << absorbMode_ << ":" << sensitiveMode_;
158 #endif
159  layerCenter_ = dbl_to_int(vArgs["LayerCenter"]);
160 #ifdef EDM_ML_DEBUG
161  for (unsigned int i = 0; i < layerCenter_.size(); ++i)
162  edm::LogVerbatim("HGCalGeom") << "LayerCenter [" << i << "] " << layerCenter_[i];
163 #endif
164  if (firstLayer_ > 0) {
165  for (unsigned int i = 0; i < layerType_.size(); ++i) {
166  if (layerSense_[i] > 0) {
167  int ii = layerType_[i];
168  copyNumber_[ii] = firstLayer_;
169 #ifdef EDM_ML_DEBUG
170  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
171  << materials_[ii] << " changed to " << copyNumber_[ii];
172 #endif
173  break;
174  }
175  }
176  } else {
177  firstLayer_ = 1;
178  }
179 #ifdef EDM_ML_DEBUG
180  edm::LogVerbatim("HGCalGeom") << "There are " << layerType_.size() << " layers";
181  for (unsigned int i = 0; i < layerType_.size(); ++i)
182  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerType_[i] << " sensitive class "
183  << layerSense_[i];
184 #endif
185  materialsTop_ = vsArgs["TopMaterialNames"];
186  namesTop_ = vsArgs["TopVolumeNames"];
187  layerThickTop_ = vArgs["TopLayerThickness"];
188  layerTypeTop_ = dbl_to_int(vArgs["TopLayerType"]);
189  copyNumberTop_.resize(materialsTop_.size(), 1);
190 #ifdef EDM_ML_DEBUG
191  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << materialsTop_.size() << " types of volumes in the top part";
192  for (unsigned int i = 0; i < materialsTop_.size(); ++i)
193  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << namesTop_[i] << " of thickness " << layerThickTop_[i]
194  << " filled with " << materialsTop_[i] << " first copy number " << copyNumberTop_[i];
195  edm::LogVerbatim("HGCalGeom") << "There are " << layerTypeTop_.size() << " layers in the top part";
196  for (unsigned int i = 0; i < layerTypeTop_.size(); ++i)
197  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerTypeTop_[i];
198 #endif
199  materialsBot_ = vsArgs["BottomMaterialNames"];
200  namesBot_ = vsArgs["BottomVolumeNames"];
201  layerTypeBot_ = dbl_to_int(vArgs["BottomLayerType"]);
202  layerSenseBot_ = dbl_to_int(vArgs["BottomLayerSense"]);
203  layerThickBot_ = vArgs["BottomLayerThickness"];
204  copyNumberBot_.resize(materialsBot_.size(), 1);
205 #ifdef EDM_ML_DEBUG
206  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << materialsBot_.size()
207  << " types of volumes in the bottom part";
208  for (unsigned int i = 0; i < materialsBot_.size(); ++i)
209  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << namesBot_[i] << " of thickness " << layerThickBot_[i]
210  << " filled with " << materialsBot_[i] << " first copy number " << copyNumberBot_[i];
211  edm::LogVerbatim("HGCalGeom") << "There are " << layerTypeBot_.size() << " layers in the bottom part";
212  for (unsigned int i = 0; i < layerTypeBot_.size(); ++i)
213  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerTypeBot_[i]
214  << " sensitive class " << layerSenseBot_[i];
215 #endif
216  zMinBlock_ = nArgs["zMinBlock"];
217  rad100to200_ = vArgs["rad100to200"];
218  rad200to300_ = vArgs["rad200to300"];
219  zMinRadPar_ = nArgs["zMinForRadPar"];
220  choiceType_ = (int)(nArgs["choiceType"]);
221  nCutRadPar_ = (int)(nArgs["nCornerCut"]);
222  fracAreaMin_ = nArgs["fracAreaMin"];
223  waferSize_ = nArgs["waferSize"];
224  waferSepar_ = nArgs["SensorSeparation"];
225  sectors_ = (int)(nArgs["Sectors"]);
226  alpha_ = (1._pi) / sectors_;
227  cosAlpha_ = cos(alpha_);
228 #ifdef EDM_ML_DEBUG
229  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: zStart " << zMinBlock_
230  << " radius for wafer type separation uses " << rad100to200_.size()
231  << " parameters; zmin " << zMinRadPar_ << " cutoff " << choiceType_ << ":"
232  << nCutRadPar_ << ":" << fracAreaMin_ << " wafer width " << waferSize_
233  << " separations " << waferSepar_ << " sectors " << sectors_ << ":"
234  << convertRadToDeg(alpha_) << ":" << cosAlpha_;
235  for (unsigned int k = 0; k < rad100to200_.size(); ++k)
236  edm::LogVerbatim("HGCalGeom") << "[" << k << "] 100-200 " << rad100to200_[k] << " 200-300 " << rad200to300_[k];
237 #endif
238  waferIndex_ = dbl_to_int(vArgs["WaferIndex"]);
239  waferTypes_ = dbl_to_int(vArgs["WaferTypes"]);
240 #ifdef EDM_ML_DEBUG
241  edm::LogVerbatim("HGCalGeom") << "waferTypes with " << waferTypes_.size() << " entries";
242  for (unsigned int k = 0; k < waferTypes_.size(); ++k)
243  edm::LogVerbatim("HGCalGeom") << "[" << k << "] " << waferIndex_[k] << " ("
244  << HGCalWaferIndex::waferLayer(waferIndex_[k]) << ", "
245  << HGCalWaferIndex::waferU(waferIndex_[k]) << ", "
246  << HGCalWaferIndex::waferV(waferIndex_[k]) << ") : " << waferTypes_[k];
247 #endif
248  slopeB_ = vArgs["SlopeBottom"];
249  zFrontB_ = vArgs["ZFrontBottom"];
250  rMinFront_ = vArgs["RMinFront"];
251  slopeT_ = vArgs["SlopeTop"];
252  zFrontT_ = vArgs["ZFrontTop"];
253  rMaxFront_ = vArgs["RMaxFront"];
254 #ifdef EDM_ML_DEBUG
255  for (unsigned int i = 0; i < slopeB_.size(); ++i)
256  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] Zmin " << zFrontB_[i] << " Rmin " << rMinFront_[i]
257  << " Slope " << slopeB_[i];
258  for (unsigned int i = 0; i < slopeT_.size(); ++i)
259  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] Zmin " << zFrontT_[i] << " Rmax " << rMaxFront_[i]
260  << " Slope " << slopeT_[i];
261 #endif
262  nameSpace_ = DDCurrentNamespace::ns();
263 #ifdef EDM_ML_DEBUG
264  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: NameSpace " << nameSpace_;
265 #endif
266 }
267 
269 // DDHGCalHEFileAlgo methods...
271 
273 #ifdef EDM_ML_DEBUG
274  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalHEFileAlgo...";
275  copies_.clear();
276 #endif
277  constructLayers(parent(), cpv);
278 #ifdef EDM_ML_DEBUG
279  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << copies_.size() << " different wafer copy numbers";
280  int k(0);
281  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
282  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
283  }
284  copies_.clear();
285  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalHEFileAlgo construction...";
286 #endif
287 }
288 
290 #ifdef EDM_ML_DEBUG
291  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: \t\tInside Layers";
292 #endif
293  double zi(zMinBlock_);
294  int laymin(0);
295  for (unsigned int i = 0; i < layers_.size(); i++) {
296  double zo = zi + layerThick_[i];
297  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
298  int laymax = laymin + layers_[i];
299  double zz = zi;
300  double thickTot(0);
301  for (int ly = laymin; ly < laymax; ++ly) {
302  int ii = layerType_[ly];
303  int copy = copyNumber_[ii];
304  double hthick = 0.5 * thick_[ii];
305  double rinB = HGCalGeomTools::radius(zo, zFrontB_, rMinFront_, slopeB_);
306  zz += hthick;
307  thickTot += thick_[ii];
308 
309  std::string name = names_[ii] + std::to_string(copy);
310 #ifdef EDM_ML_DEBUG
311  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Layer " << ly << ":" << ii << " Front " << zi << ", "
312  << routF << " Back " << zo << ", " << rinB << " superlayer thickness "
313  << layerThick_[i];
314 #endif
315  DDName matName(DDSplit(materials_[ii]).first, DDSplit(materials_[ii]).second);
316  DDMaterial matter(matName);
317  DDLogicalPart glog;
318  if (layerSense_[ly] < 1) {
319  std::vector<double> pgonZ, pgonRin, pgonRout;
320  if (layerSense_[ly] == 0 || absorbMode_ == 0) {
321  double rmax =
322  (std::min(routF, HGCalGeomTools::radius(zz + hthick, zFrontT_, rMaxFront_, slopeT_)) * cosAlpha_) - tol1_;
323  pgonZ.emplace_back(-hthick);
324  pgonZ.emplace_back(hthick);
325  pgonRin.emplace_back(rinB);
326  pgonRin.emplace_back(rinB);
327  pgonRout.emplace_back(rmax);
328  pgonRout.emplace_back(rmax);
329  } else {
330  HGCalGeomTools::radius(zz - hthick,
331  zz + hthick,
332  zFrontB_,
333  rMinFront_,
334  slopeB_,
335  zFrontT_,
336  rMaxFront_,
337  slopeT_,
338  -layerSense_[ly],
339  pgonZ,
340  pgonRin,
341  pgonRout);
342  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
343  pgonZ[isec] -= zz;
344  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1_;
345  }
346  }
347  DDSolid solid =
348  DDSolidFactory::polyhedra(DDName(name, nameSpace_), sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
349  glog = DDLogicalPart(solid.ddname(), matter, solid);
350 #ifdef EDM_ML_DEBUG
351  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " polyhedra of " << sectors_
352  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
353  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size() << " sections";
354  for (unsigned int k = 0; k < pgonZ.size(); ++k)
355  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << pgonZ[k] << " R " << pgonRin[k] << ":" << pgonRout[k];
356 #endif
357  } else {
358  double rins = (sensitiveMode_ < 1) ? rinB : HGCalGeomTools::radius(zz + hthick, zFrontB_, rMinFront_, slopeB_);
359  double routs =
360  (sensitiveMode_ < 1) ? routF : HGCalGeomTools::radius(zz - hthick, zFrontT_, rMaxFront_, slopeT_);
361  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rins, routs, 0.0, 2._pi);
362  glog = DDLogicalPart(solid.ddname(), matter, solid);
363 #ifdef EDM_ML_DEBUG
364  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matName
365  << " of dimensions " << rinB << ":" << rins << ", " << routF << ":" << routs
366  << ", " << hthick << ", 0.0, 360.0 and positioned in: " << glog.name()
367  << " number " << copy;
368 #endif
369  positionMix(glog, name, copy, thick_[ii], matter, rins, rMixLayer_[i], routs, zz, cpv);
370  }
371  DDTranslation r1(0, 0, zz);
372  DDRotation rot;
373  cpv.position(glog, module, copy, r1, rot);
374  ++copyNumber_[ii];
375 #ifdef EDM_ML_DEBUG
376  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog.name() << " number " << copy << " positioned in "
377  << module.name() << " at " << r1 << " with " << rot;
378 #endif
379  zz += hthick;
380  } // End of loop over layers in a block
381  zi = zo;
382  laymin = laymax;
383  // Make consistency check of all the partitions of the block
384  if (std::abs(thickTot - layerThick_[i]) >= tol2_) {
385  if (thickTot > layerThick_[i]) {
386  edm::LogError("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " is smaller than " << thickTot
387  << ": thickness of all its components **** ERROR ****";
388  } else {
389  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " does not match with "
390  << thickTot << " of the components";
391  }
392  }
393  } // End of loop over blocks
394 }
395 
397  const std::string& nameM,
398  int copyM,
399  double thick,
400  const DDMaterial& matter,
401  double rin,
402  double rmid,
403  double rout,
404  double zz,
405  DDCompactView& cpv) {
406  DDLogicalPart glog1;
407  DDTranslation tran;
408  DDRotation rot;
409  for (unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
410  int ii = layerTypeTop_[ly];
411  copyNumberTop_[ii] = copyM;
412  }
413  for (unsigned int ly = 0; ly < layerTypeBot_.size(); ++ly) {
414  int ii = layerTypeBot_[ly];
415  copyNumberBot_[ii] = copyM;
416  }
417  double hthick = 0.5 * thick;
418  // Make the top part first
419  std::string name = nameM + "Top";
420  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rmid, rout, 0.0, 2._pi);
421  glog1 = DDLogicalPart(solid.ddname(), matter, solid);
422 #ifdef EDM_ML_DEBUG
423  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matter.name()
424  << " of dimensions " << rmid << ", " << rout << ", " << hthick << ", 0.0, 360.0";
425 #endif
426  cpv.position(glog1, glog, 1, tran, rot);
427 #ifdef EDM_ML_DEBUG
428  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
429  << " at " << tran << " with " << rot;
430 #endif
431  double thickTot(0), zpos(-hthick);
432  for (unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
433  int ii = layerTypeTop_[ly];
434  int copy = copyNumberTop_[ii];
435  double hthickl = 0.5 * layerThickTop_[ii];
436  thickTot += layerThickTop_[ii];
437  name = namesTop_[ii] + std::to_string(copy);
438 #ifdef EDM_ML_DEBUG
439  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Layer " << ly << ":" << ii << " R " << rmid << ":" << rout
440  << " Thick " << layerThickTop_[ii];
441 #endif
442  DDName matName(DDSplit(materialsTop_[ii]).first, DDSplit(materialsTop_[ii]).second);
443  DDMaterial matter1(matName);
444  solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthickl, rmid, rout, 0.0, 2._pi);
445  DDLogicalPart glog2 = DDLogicalPart(solid.ddname(), matter1, solid);
446 #ifdef EDM_ML_DEBUG
447  double eta1 = -log(tan(0.5 * atan(rmid / zz)));
448  double eta2 = -log(tan(0.5 * atan(rout / zz)));
449  edm::LogVerbatim("HGCalGeom") << name << " z|rin|rout " << zz << ":" << rmid << ":" << rout << " eta " << eta1
450  << ":" << eta2;
451  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matName
452  << " of dimensions " << rmid << ", " << rout << ", " << hthickl << ", 0.0, 360.0";
453 #endif
454  zpos += hthickl;
455  DDTranslation r1(0, 0, zpos);
456  cpv.position(glog2, glog1, copy, r1, rot);
457 #ifdef EDM_ML_DEBUG
458  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Position " << glog2.name() << " number " << copy << " in "
459  << glog1.name() << " at " << r1 << " with " << rot;
460 #endif
461  ++copyNumberTop_[ii];
462  zpos += hthickl;
463  }
464  if (std::abs(thickTot - thick) >= tol2_) {
465  if (thickTot > thick) {
466  edm::LogError("HGCalGeom") << "Thickness of the partition " << thick << " is smaller than " << thickTot
467  << ": thickness of all its components in the top part **** ERROR ****";
468  } else {
469  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << thick << " does not match with " << thickTot
470  << " of the components in top part";
471  }
472  }
473 
474  // Make the bottom part next
475  name = nameM + "Bottom";
476  solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rin, rmid, 0.0, 2._pi);
477  glog1 = DDLogicalPart(solid.ddname(), matter, solid);
478 #ifdef EDM_ML_DEBUG
479  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matter.name()
480  << " of dimensions " << rin << ", " << rmid << ", " << hthick << ", 0.0, 360.0";
481 #endif
482  cpv.position(glog1, glog, 1, tran, rot);
483 #ifdef EDM_ML_DEBUG
484  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
485  << " at " << tran << " with " << rot;
486 #endif
487  thickTot = 0;
488  zpos = -hthick;
489  for (unsigned int ly = 0; ly < layerTypeBot_.size(); ++ly) {
490  int ii = layerTypeBot_[ly];
491  int copy = copyNumberBot_[ii];
492  double hthickl = 0.5 * layerThickBot_[ii];
493  thickTot += layerThickBot_[ii];
494  name = namesBot_[ii] + std::to_string(copy);
495 #ifdef EDM_ML_DEBUG
496  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Layer " << ly << ":" << ii << " R " << rin << ":" << rmid
497  << " Thick " << layerThickBot_[ii];
498 #endif
499  DDName matName(DDSplit(materialsBot_[ii]).first, DDSplit(materialsBot_[ii]).second);
500  DDMaterial matter1(matName);
501  solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthickl, rin, rmid, 0.0, 2._pi);
502  DDLogicalPart glog2 = DDLogicalPart(solid.ddname(), matter1, solid);
503 #ifdef EDM_ML_DEBUG
504  double eta1 = -log(tan(0.5 * atan(rin / zz)));
505  double eta2 = -log(tan(0.5 * atan(rmid / zz)));
506  edm::LogVerbatim("HGCalGeom") << name << " z|rin|rout " << zz << ":" << rin << ":" << rmid << " eta " << eta1 << ":"
507  << eta2;
508  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matName
509  << " of dimensions " << rin << ", " << rmid << ", " << hthickl << ", 0.0, 360.0";
510 #endif
511  zpos += hthickl;
512  DDTranslation r1(0, 0, zpos);
513  cpv.position(glog2, glog1, copy, r1, rot);
514 #ifdef EDM_ML_DEBUG
515  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Position " << glog2.name() << " number " << copy << " in "
516  << glog1.name() << " at " << r1 << " with " << rot;
517 #endif
518  if (layerSenseBot_[ly] != 0) {
519 #ifdef EDM_ML_DEBUG
520  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: z " << (zz + zpos) << " Center " << copy << ":"
521  << (copy - firstLayer_) << ":" << layerCenter_[copy - firstLayer_];
522 #endif
523  positionSensitive(glog2, rin, rmid, zz + zpos, layerSenseBot_[ly], (copy - firstLayer_), cpv);
524  }
525  zpos += hthickl;
526  ++copyNumberBot_[ii];
527  }
528  if (std::abs(thickTot - thick) >= tol2_) {
529  if (thickTot > thick) {
530  edm::LogError("HGCalGeom") << "Thickness of the partition " << thick << " is smaller than " << thickTot
531  << ": thickness of all its components in the top part **** ERROR ****";
532  } else {
533  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << thick << " does not match with " << thickTot
534  << " of the components in top part";
535  }
536  }
537 }
538 
540  const DDLogicalPart& glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView& cpv) {
541  static const double sqrt3 = std::sqrt(3.0);
542  int layercenter = layerCenter_[layer];
543  double r = 0.5 * (waferSize_ + waferSepar_);
544  double R = 2.0 * r / sqrt3;
545  double dy = 0.75 * R;
546  int N = (int)(0.5 * rout / r) + 2;
547  const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
548 #ifdef EDM_ML_DEBUG
549  int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0), nin(0);
550  std::vector<int> ntype(6, 0);
551  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog.ddname() << " rin:rout " << rin << ":" << rout
552  << " zpos " << zpos << " N " << N << " for maximum u, v Offset; Shift " << xyoff.first
553  << ":" << xyoff.second << " WaferSize " << (waferSize_ + waferSepar_);
554 #endif
555  for (int u = -N; u <= N; ++u) {
556  for (int v = -N; v <= N; ++v) {
557 #ifdef EDM_ML_DEBUG
558  int iu = std::abs(u);
559  int iv = std::abs(v);
560 #endif
561  int nr = 2 * v;
562  int nc = -2 * u + v;
563  double xpos = xyoff.first + nc * r;
564  double ypos = xyoff.second + nr * dy;
565  const auto& corner = HGCalGeomTools::waferCorner(xpos, ypos, r, R, rin, rout, false);
566 #ifdef EDM_ML_DEBUG
567  ++ntot;
568 #endif
569  int indx = HGCalWaferIndex::waferIndex((layer + firstLayer_), u, v, false);
570  int type = HGCalWaferType::getType(indx, waferIndex_, waferTypes_);
571  if (corner.first > 0 && type >= 0) {
572  int copy = HGCalTypes::packTypeUV(type, u, v);
573 #ifdef EDM_ML_DEBUG
574  edm::LogVerbatim("HGCalGeom") << " DDHGCalHEFileAlgo: " << wafers_[type] << " number " << copy << " type "
575  << type << " layer:u:v:indx " << (layer + firstLayer_) << ":" << u << ":" << v
576  << ":" << indx;
577  if (iu > ium)
578  ium = iu;
579  if (iv > ivm)
580  ivm = iv;
581  kount++;
582  if (copies_.count(copy) == 0)
583  copies_.insert(copy);
584 #endif
585  if (corner.first == (int)(HGCalParameters::k_CornerSize)) {
586 #ifdef EDM_ML_DEBUG
587  if (iu > iumAll)
588  iumAll = iu;
589  if (iv > ivmAll)
590  ivmAll = iv;
591  ++nin;
592 #endif
593  DDTranslation tran(xpos, ypos, 0.0);
595  if (layertype > 1)
596  type += 3;
597  DDName name = DDName(DDSplit(wafers_[type]).first, DDSplit(wafers_[type]).second);
598  cpv.position(name, glog.ddname(), copy, tran, rotation);
599 #ifdef EDM_ML_DEBUG
600  ++ntype[type];
601  edm::LogVerbatim("HGCalGeom") << " DDHGCalHEFileAlgo: " << name << " number " << copy << " type " << layertype
602  << ":" << type << " positioned in " << glog.ddname() << " at " << tran
603  << " with " << rotation;
604 #endif
605  }
606  }
607  }
608  }
609 #ifdef EDM_ML_DEBUG
610  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Maximum # of u " << ium << ":" << iumAll << " # of v " << ivm
611  << ":" << ivmAll << " and " << nin << ":" << kount << ":" << ntot << " wafers ("
612  << ntype[0] << ":" << ntype[1] << ":" << ntype[2] << ":" << ntype[3] << ":" << ntype[4]
613  << ":" << ntype[5] << ") for " << glog.ddname() << " R " << rin << ":" << rout;
614 #endif
615 }
616 
617 DEFINE_EDM_PLUGIN(DDAlgorithmFactory, DDHGCalHEFileAlgo, "hgcal:DDHGCalHEFileAlgo");
DDHGCalHEFileAlgo::firstLayer_
int firstLayer_
Definition: DDHGCalHEFileAlgo.cc:75
PluginFactory.h
HGCalWaferIndex::waferV
static int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:42
HGCalGeomTools::waferCorner
static std::pair< int32_t, int32_t > waferCorner(double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug=false)
Definition: HGCalGeomTools.cc:223
DDCurrentNamespace.h
DDHGCalHEFileAlgo::positionMix
void positionMix(const DDLogicalPart &glog, const std::string &name, int copy, double thick, const DDMaterial &matter, double rin, double rmid, double routF, double zz, DDCompactView &cpv)
Definition: DDHGCalHEFileAlgo.cc:396
mps_fire.i
i
Definition: mps_fire.py:428
cms_units::operators
Definition: CMSUnits.h:13
geometryCSVtoXML.zz
zz
Definition: geometryCSVtoXML.py:19
DDHGCalHEFileAlgo::namesBot_
std::vector< std::string > namesBot_
Definition: DDHGCalHEFileAlgo.cc:84
MessageLogger.h
DDHGCalHEFileAlgo::layerTypeTop_
std::vector< int > layerTypeTop_
Definition: DDHGCalHEFileAlgo.cc:81
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
DDHGCalHEFileAlgo::copyNumber_
std::vector< int > copyNumber_
Definition: DDHGCalHEFileAlgo.cc:69
DDHGCalHEFileAlgo::waferTypes_
std::vector< int > waferTypes_
Definition: DDHGCalHEFileAlgo.cc:96
DDHGCalHEFileAlgo::rMaxFront_
std::vector< double > rMaxFront_
Definition: DDHGCalHEFileAlgo.cc:108
DDHGCalHEFileAlgo::waferSepar_
double waferSepar_
Definition: DDHGCalHEFileAlgo.cc:101
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
min
T min(T a, T b)
Definition: MathUtil.h:58
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
DDSplit.h
DDHGCalHEFileAlgo::layers_
std::vector< int > layers_
Definition: DDHGCalHEFileAlgo.cc:70
HGCalParameters::k_CornerSize
static constexpr uint32_t k_CornerSize
Definition: HGCalParameters.h:38
distTCMET_cfi.corner
corner
Definition: distTCMET_cfi.py:38
nin
int nin
Definition: CascadeWrapper.h:114
DDHGCalHEFileAlgo
Definition: DDHGCalHEFileAlgo.cc:33
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
DDHGCalHEFileAlgo::geomTools_
HGCalGeomTools geomTools_
Definition: DDHGCalHEFileAlgo.cc:60
DDHGCalHEFileAlgo::slopeT_
std::vector< double > slopeT_
Definition: DDHGCalHEFileAlgo.cc:106
DDHGCalHEFileAlgo::rad100to200_
std::vector< double > rad100to200_
Definition: DDHGCalHEFileAlgo.cc:92
DDHGCalHEFileAlgo::sectors_
int sectors_
Definition: DDHGCalHEFileAlgo.cc:102
findQualityFiles.v
v
Definition: findQualityFiles.py:179
dbl_to_int
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
Definition: DDutils.h:7
DDHGCalHEFileAlgo::zFrontB_
std::vector< double > zFrontB_
Definition: DDHGCalHEFileAlgo.cc:104
DDHGCalHEFileAlgo::wafers_
std::vector< std::string > wafers_
Definition: DDHGCalHEFileAlgo.cc:65
DDHGCalHEFileAlgo::fracAreaMin_
double fracAreaMin_
Definition: DDHGCalHEFileAlgo.cc:99
dqmdumpme.first
first
Definition: dqmdumpme.py:55
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
DDHGCalHEFileAlgo::choiceType_
int choiceType_
Definition: DDHGCalHEFileAlgo.cc:97
DDHGCalHEFileAlgo::rad200to300_
std::vector< double > rad200to300_
Definition: DDHGCalHEFileAlgo.cc:93
DDHGCalHEFileAlgo::DDHGCalHEFileAlgo
DDHGCalHEFileAlgo()
Definition: DDHGCalHEFileAlgo.cc:114
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
HGCalWaferIndex.h
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
DDSolidFactory::polyhedra
static DDSolid polyhedra(const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polyhedra (refere to Geant3 or Geant4 documentation)
Definition: DDSolid.cc:551
DDHGCalHEFileAlgo::materialsTop_
std::vector< std::string > materialsTop_
Definition: DDHGCalHEFileAlgo.cc:78
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9542
DDBase::name
const N & name() const
Definition: DDBase.h:59
HGCalWaferType.h
N
#define N
Definition: blowfish.cc:9
DDHGCalHEFileAlgo::layerType_
std::vector< int > layerType_
Definition: DDHGCalHEFileAlgo.cc:73
DDSolidFactory::tubs
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
Definition: DDSolid.cc:653
DDSolid.h
HGCalWaferType::getType
int getType(double xpos, double ypos, double zpos)
Definition: HGCalWaferType.cc:35
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
HGCalWaferIndex::waferU
static int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:37
DDHGCalHEFileAlgo::rMinFront_
std::vector< double > rMinFront_
Definition: DDHGCalHEFileAlgo.cc:105
HGCalTypes::packTypeUV
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
DDHGCalHEFileAlgo::waferSize_
double waferSize_
Definition: DDHGCalHEFileAlgo.cc:100
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDHGCalHEFileAlgo::copyNumberTop_
std::vector< int > copyNumberTop_
Definition: DDHGCalHEFileAlgo.cc:82
DDHGCalHEFileAlgo::namesTop_
std::vector< std::string > namesTop_
Definition: DDHGCalHEFileAlgo.cc:79
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9541
DDHGCalHEFileAlgo::thick_
std::vector< double > thick_
Definition: DDHGCalHEFileAlgo.cc:68
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
EgHLTOffHistBins_cfi.nr
nr
Definition: EgHLTOffHistBins_cfi.py:4
DDHGCalHEFileAlgo::nCutRadPar_
int nCutRadPar_
Definition: DDHGCalHEFileAlgo.cc:98
DDBase::ddname
const N & ddname() const
Definition: DDBase.h:61
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
DDHGCalHEFileAlgo::layerTypeBot_
std::vector< int > layerTypeBot_
Definition: DDHGCalHEFileAlgo.cc:86
edmplugin::PluginFactory
Definition: PluginFactory.h:34
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDTypes.h
DDMaterial.h
funct::tan
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
createfilelist.int
int
Definition: createfilelist.py:10
DDutils.h
DDHGCalHEFileAlgo::constructLayers
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Definition: DDHGCalHEFileAlgo.cc:289
DDHGCalHEFileAlgo::layerThickTop_
std::vector< double > layerThickTop_
Definition: DDHGCalHEFileAlgo.cc:80
HGCalGeomTools
Definition: HGCalGeomTools.h:8
DDHGCalHEFileAlgo::nameSpace_
std::string nameSpace_
Definition: DDHGCalHEFileAlgo.cc:109
PVValHelper::dy
Definition: PVValidationHelpers.h:49
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
DDLogicalPart.h
DDHGCalHEFileAlgo::copies_
std::unordered_set< int > copies_
Definition: DDHGCalHEFileAlgo.cc:110
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
DDHGCalHEFileAlgo::initialize
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Definition: DDHGCalHEFileAlgo.cc:120
DDHGCalHEFileAlgo::waferIndex_
std::vector< int > waferIndex_
Definition: DDHGCalHEFileAlgo.cc:95
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DDHGCalHEFileAlgo::names_
std::vector< std::string > names_
Definition: DDHGCalHEFileAlgo.cc:67
ReadMapType< double >
HGCalGeomTools.h
HGCalGeomTools::radius
static void radius(double zf, double zb, std::vector< double > const &zFront1, std::vector< double > const &rFront1, std::vector< double > const &slope1, std::vector< double > const &zFront2, std::vector< double > const &rFront2, std::vector< double > const &slope2, int flag, std::vector< double > &zz, std::vector< double > &rin, std::vector< double > &rout)
Definition: HGCalGeomTools.cc:11
DDAlgorithm.h
DDHGCalHEFileAlgo::absorbMode_
int absorbMode_
Definition: DDHGCalHEFileAlgo.cc:76
DDHGCalHEFileAlgo::cosAlpha_
double cosAlpha_
Definition: DDHGCalHEFileAlgo.cc:111
DDHGCalGeom::constructLayers
void constructLayers(const cms::DDNamespace &ns, const std::vector< std::string > &wafers, const std::vector< std::string > &covers, const std::vector< int > &layerType, const std::vector< int > &layerSense, const std::vector< int > &maxModule, const std::vector< std::string > &names, const std::vector< std::string > &materials, std::vector< int > &copyNumber, const std::vector< double > &layerThick, const double &absorbW, const double &absorbH, const double &waferTot, const double &rMax, const double &rMaxFine, std::unordered_set< int > &copies, int firstLayer, int lastLayer, double zFront, double totalWidth, bool ignoreCenter, dd4hep::Volume &module)
Definition: DDHGCalTBModuleX.cc:22
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
DDHGCalHEFileAlgo::layerThickBot_
std::vector< double > layerThickBot_
Definition: DDHGCalHEFileAlgo.cc:85
DDHGCalHEFileAlgo::zFrontT_
std::vector< double > zFrontT_
Definition: DDHGCalHEFileAlgo.cc:107
DDHGCalHEFileAlgo::materialsBot_
std::vector< std::string > materialsBot_
Definition: DDHGCalHEFileAlgo.cc:83
DDCurrentNamespace::ns
static std::string & ns()
Definition: DDCurrentNamespace.cc:3
DDHGCalHEFileAlgo::zMinRadPar_
double zMinRadPar_
Definition: DDHGCalHEFileAlgo.cc:94
DDHGCalHEFileAlgo::materials_
std::vector< std::string > materials_
Definition: DDHGCalHEFileAlgo.cc:66
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HGCalWaferIndex::waferIndex
static int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
Definition: HGCalWaferIndex.cc:17
DDSolid
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
DDHGCalHEFileAlgo::layerSenseBot_
std::vector< int > layerSenseBot_
Definition: DDHGCalHEFileAlgo.cc:88
DDRotation
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
CMSUnits.h
DDHGCalHEFileAlgo::rMixLayer_
std::vector< double > rMixLayer_
Definition: DDHGCalHEFileAlgo.cc:72
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
DDHGCalHEFileAlgo::layerThick_
std::vector< double > layerThick_
Definition: DDHGCalHEFileAlgo.cc:71
DDHGCalHEFileAlgo::positionSensitive
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
Definition: DDHGCalHEFileAlgo.cc:539
initialize
static AlgebraicMatrix initialize()
Definition: BeamSpotTransientTrackingRecHit.cc:24
DDHGCalHEFileAlgo::layerSense_
std::vector< int > layerSense_
Definition: DDHGCalHEFileAlgo.cc:74
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
DDHGCalHEFileAlgo::copyNumberBot_
std::vector< int > copyNumberBot_
Definition: DDHGCalHEFileAlgo.cc:87
DDHGCalHEFileAlgo::layerCenter_
std::vector< int > layerCenter_
Definition: DDHGCalHEFileAlgo.cc:89
DDHGCalHEFileAlgo::slopeB_
std::vector< double > slopeB_
Definition: DDHGCalHEFileAlgo.cc:103
HGCalTypes.h
DDHGCalHEFileAlgo::sensitiveMode_
int sensitiveMode_
Definition: DDHGCalHEFileAlgo.cc:77
DDAlgorithmFactory.h
edm::Log
Definition: MessageLogger.h:70
dttmaxenums::R
Definition: DTTMax.h:29
HGCalParameters.h
class-composition.parent
parent
Definition: class-composition.py:88
DDHGCalHEFileAlgo::execute
void execute(DDCompactView &cpv) override
Definition: DDHGCalHEFileAlgo.cc:272
cuy.ii
ii
Definition: cuy.py:590
DDHGCalHEFileAlgo::zMinBlock_
double zMinBlock_
Definition: DDHGCalHEFileAlgo.cc:91
HGCalWaferIndex::waferLayer
static int32_t waferLayer(const int32_t index)
Definition: HGCalWaferIndex.cc:35
DDSplit
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
Definition: DDSplit.cc:3
DDCompactView::position
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string &copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
Definition: DDCompactView.cc:76