CMS 3D CMS Logo

DDHGCalSiliconModule.cc
Go to the documentation of this file.
1 // File: DDHGCalSiliconModule.cc
3 // Description: Geometry factory class for HGCal (EE and HESil) using
4 // information from the file for dd4hep
6 #include <cmath>
7 #include <memory>
8 #include <sstream>
9 #include <string>
10 #include <unordered_set>
11 #include <vector>
12 
19 #include "DD4hep/DetFactoryHelper.h"
24 
25 //#define EDM_ML_DEBUG
26 using namespace angle_units::operators;
27 
29  HGCalSiliconModule() { throw cms::Exception("HGCalGeom") << "Wrong initialization to HGCalSiliconModule"; }
31  cms::DDNamespace ns(ctxt, e, true);
33 
34 #ifdef EDM_ML_DEBUG
35  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Creating an instance";
36 #endif
37  static constexpr double tol1 = 0.01 * dd4hep::mm;
38  static constexpr double tol2 = 0.00001 * dd4hep::mm;
39 
40  dd4hep::Volume mother = ns.volume(args.parentName());
41  waferTypes_ = args.value<int>("WaferTypes");
42  facingTypes_ = args.value<int>("FacingTypes");
43  partialTypes_ = args.value<int>("PartialTypes");
44  orientationTypes_ = args.value<int>("OrientationTypes");
45 #ifdef EDM_ML_DEBUG
46  edm::LogVerbatim("HGCalGeom") << "Number of types of wafers: " << waferTypes_ << " facings: " << facingTypes_
47  << " partials: " << partialTypes_ << " Orientations: " << orientationTypes_;
48 #endif
49  firstLayer_ = args.value<int>("FirstLayer");
50  absorbMode_ = args.value<int>("AbsorberMode");
51  sensitiveMode_ = args.value<int>("SensitiveMode");
52 #ifdef EDM_ML_DEBUG
53  edm::LogVerbatim("HGCalGeom") << "First Layer " << firstLayer_ << " and "
54  << "Absober:Sensitive mode " << absorbMode_ << ":" << sensitiveMode_;
55 #endif
56  zMinBlock_ = args.value<double>("zMinBlock");
57  waferSize_ = args.value<double>("waferSize");
58  waferSepar_ = args.value<double>("SensorSeparation");
59  sectors_ = args.value<int>("Sectors");
60  alpha_ = (1._pi) / sectors_;
61  cosAlpha_ = cos(alpha_);
62  rotstr_ = args.value<std::string>("LayerRotation");
63 #ifdef EDM_ML_DEBUG
64  edm::LogVerbatim("HGCalGeom") << "zStart " << cms::convert2mm(zMinBlock_) << " wafer width "
65  << cms::convert2mm(waferSize_) << " separations " << cms::convert2mm(waferSepar_)
66  << " sectors " << sectors_ << ":" << convertRadToDeg(alpha_) << ":" << cosAlpha_
67  << " rotation matrix " << rotstr_;
68 #endif
69  waferFull_ = args.value<std::vector<std::string>>("WaferNamesFull");
70  waferPart_ = args.value<std::vector<std::string>>("WaferNamesPartial");
71 #ifdef EDM_ML_DEBUG
72  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << waferFull_.size() << " full and " << waferPart_.size()
73  << " partial modules\nDDHGCalSiliconModule:Full Modules:";
74  unsigned int i1max = static_cast<unsigned int>(waferFull_.size());
75  for (unsigned int i1 = 0; i1 < i1max; i1 += 2) {
76  std::ostringstream st1;
77  unsigned int i2 = std::min((i1 + 2), i1max);
78  for (unsigned int i = i1; i < i2; ++i)
79  st1 << " [" << i << "] " << waferFull_[i];
80  edm::LogVerbatim("HGCalGeom") << st1.str() << std::endl;
81  }
82  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Partial Modules:";
83  i1max = static_cast<unsigned int>(waferPart_.size());
84  for (unsigned int i1 = 0; i1 < i1max; i1 += 2) {
85  std::ostringstream st1;
86  unsigned int i2 = std::min((i1 + 2), i1max);
87  for (unsigned int i = i1; i < i2; ++i)
88  st1 << " [" << i << "] " << waferPart_[i];
89  edm::LogVerbatim("HGCalGeom") << st1.str() << std::endl;
90  }
91 #endif
92  materials_ = args.value<std::vector<std::string>>("MaterialNames");
93  names_ = args.value<std::vector<std::string>>("VolumeNames");
94  thick_ = args.value<std::vector<double>>("Thickness");
95  copyNumber_.resize(materials_.size(), 1);
96 #ifdef EDM_ML_DEBUG
97  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << materials_.size() << " types of volumes";
98  for (unsigned int i = 0; i < names_.size(); ++i)
99  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness "
100  << cms::convert2mm(thick_[i]) << " filled with " << materials_[i]
101  << " first copy number " << copyNumber_[i];
102 #endif
103  layers_ = args.value<std::vector<int>>("Layers");
104  layerThick_ = args.value<std::vector<double>>("LayerThick");
105 #ifdef EDM_ML_DEBUG
106  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
107  for (unsigned int i = 0; i < layers_.size(); ++i)
108  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << cms::convert2mm(layerThick_[i])
109  << " with " << layers_[i] << " layers";
110 #endif
111  layerType_ = args.value<std::vector<int>>("LayerType");
112  layerSense_ = args.value<std::vector<int>>("LayerSense");
113  layerOrient_ = args.value<std::vector<int>>("LayerTypes");
114  for (unsigned int k = 0; k < layerOrient_.size(); ++k)
115  layerOrient_[k] = HGCalTypes::layerType(layerOrient_[k]);
116 #ifdef EDM_ML_DEBUG
117  for (unsigned int i = 0; i < layerOrient_.size(); ++i)
118  edm::LogVerbatim("HGCalGeom") << "LayerTypes [" << i << "] " << layerOrient_[i];
119 #endif
120  if (firstLayer_ > 0) {
121  for (unsigned int i = 0; i < layerType_.size(); ++i) {
122  if (layerSense_[i] > 0) {
123  int ii = layerType_[i];
124  copyNumber_[ii] = (layerSense_[i] == 1) ? firstLayer_ : (firstLayer_ + 1);
125 #ifdef EDM_ML_DEBUG
126  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
127  << materials_[ii] << " changed to " << copyNumber_[ii];
128 #endif
129  }
130  }
131  } else {
132  firstLayer_ = 1;
133  }
134 #ifdef EDM_ML_DEBUG
135  edm::LogVerbatim("HGCalGeom") << "There are " << layerType_.size() << " layers";
136  for (unsigned int i = 0; i < layerType_.size(); ++i)
137  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerType_[i] << " sensitive class "
138  << layerSense_[i];
139 #endif
140  slopeB_ = args.value<std::vector<double>>("SlopeBottom");
141  zFrontB_ = args.value<std::vector<double>>("ZFrontBottom");
142  rMinFront_ = args.value<std::vector<double>>("RMinFront");
143  slopeT_ = args.value<std::vector<double>>("SlopeTop");
144  zFrontT_ = args.value<std::vector<double>>("ZFrontTop");
145  rMaxFront_ = args.value<std::vector<double>>("RMaxFront");
146 #ifdef EDM_ML_DEBUG
147  for (unsigned int i = 0; i < slopeB_.size(); ++i)
148  edm::LogVerbatim("HGCalGeom") << "Bottom Block [" << i << "] Zmin " << cms::convert2mm(zFrontB_[i]) << " Rmin "
149  << cms::convert2mm(rMinFront_[i]) << " Slope " << slopeB_[i];
150  for (unsigned int i = 0; i < slopeT_.size(); ++i)
151  edm::LogVerbatim("HGCalGeom") << "Top Block [" << i << "] Zmin " << cms::convert2mm(zFrontT_[i]) << " Rmax "
152  << cms::convert2mm(rMaxFront_[i]) << " Slope " << slopeT_[i];
153 #endif
154  waferIndex_ = args.value<std::vector<int>>("WaferIndex");
155  waferProperty_ = args.value<std::vector<int>>("WaferProperties");
156  waferLayerStart_ = args.value<std::vector<int>>("WaferLayerStart");
157 #ifdef EDM_ML_DEBUG
158  edm::LogVerbatim("HGCalGeom") << "waferProperties with " << waferIndex_.size() << " entries in "
159  << waferLayerStart_.size() << " layers";
160  for (unsigned int k = 0; k < waferLayerStart_.size(); ++k)
161  edm::LogVerbatim("HGCalGeom") << "LayerStart[" << k << "] " << waferLayerStart_[k];
162  for (unsigned int k = 0; k < waferIndex_.size(); ++k)
163  edm::LogVerbatim("HGCalGeom") << "Wafer[" << k << "] " << waferIndex_[k] << " ("
164  << HGCalWaferIndex::waferLayer(waferIndex_[k]) << ", "
165  << HGCalWaferIndex::waferU(waferIndex_[k]) << ", "
166  << HGCalWaferIndex::waferV(waferIndex_[k]) << ") : ("
167  << HGCalProperty::waferThick(waferProperty_[k]) << ":"
168  << HGCalProperty::waferPartial(waferProperty_[k]) << ":"
169  << HGCalProperty::waferOrient(waferProperty_[k]) << ")";
170  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: NameSpace " << ns.name();
171 #endif
172 
173 #ifdef EDM_ML_DEBUG
174  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalSiliconModule...";
175  copies_.clear();
176 #endif
177 
178  double zi(zMinBlock_);
179  int laymin(0);
180  for (unsigned int i = 0; i < layers_.size(); ++i) {
181  double zo = zi + layerThick_[i];
182  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
183  int laymax = laymin + layers_[i];
184  double zz = zi;
185  double thickTot(0);
186  for (int ly = laymin; ly < laymax; ++ly) {
187  int ii = layerType_[ly];
188  int copy = copyNumber_[ii];
189  double hthick = 0.5 * thick_[ii];
190  double rinB = HGCalGeomTools::radius(zo - tol1, zFrontB_, rMinFront_, slopeB_);
191  zz += hthick;
192  thickTot += thick_[ii];
193 
194  std::string name = names_[ii] + std::to_string(copy);
195 #ifdef EDM_ML_DEBUG
196  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Layer " << ly << ":" << ii << " Front "
197  << cms::convert2mm(zi) << ", " << cms::convert2mm(routF) << " Back "
198  << cms::convert2mm(zo) << ", " << cms::convert2mm(rinB)
199  << " superlayer thickness " << cms::convert2mm(layerThick_[i]);
200 #endif
201 
202  dd4hep::Material matter = ns.material(materials_[ii]);
203  dd4hep::Volume glog;
204 
205  if (layerSense_[ly] < 1) {
206  std::vector<double> pgonZ, pgonRin, pgonRout;
207  double rmax = routF * cosAlpha_ - tol1;
208  HGCalGeomTools::radius(zz - hthick,
209  zz + hthick,
210  zFrontB_,
211  rMinFront_,
212  slopeB_,
213  zFrontT_,
214  rMaxFront_,
215  slopeT_,
216  -layerSense_[ly],
217  pgonZ,
218  pgonRin,
219  pgonRout);
220  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
221  pgonZ[isec] -= zz;
222  if (layerSense_[ly] == 0 || absorbMode_ == 0)
223  pgonRout[isec] = rmax;
224  else
225  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1;
226  }
227  dd4hep::Solid solid = dd4hep::Polyhedra(sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
228  ns.addSolidNS(ns.prepend(name), solid);
229  glog = dd4hep::Volume(solid.name(), solid, matter);
230  ns.addVolumeNS(glog);
231 #ifdef EDM_ML_DEBUG
232  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << solid.name() << " polyhedra of " << sectors_
233  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
234  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size()
235  << " sections and filled with " << matter.name();
236  for (unsigned int k = 0; k < pgonZ.size(); ++k)
237  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << cms::convert2mm(pgonZ[k]) << " R "
238  << cms::convert2mm(pgonRin[k]) << ":" << cms::convert2mm(pgonRout[k]);
239 #endif
240  } else {
241  double rins =
242  (sensitiveMode_ < 1) ? rinB : HGCalGeomTools::radius(zz + hthick - tol1, zFrontB_, rMinFront_, slopeB_);
243  double routs =
244  (sensitiveMode_ < 1) ? routF : HGCalGeomTools::radius(zz - hthick, zFrontT_, rMaxFront_, slopeT_);
245  dd4hep::Solid solid = dd4hep::Tube(rins, routs, hthick, 0.0, 2._pi);
246  ns.addSolidNS(ns.prepend(name), solid);
247  glog = dd4hep::Volume(solid.name(), solid, matter);
248  ns.addVolumeNS(glog);
249 
250 #ifdef EDM_ML_DEBUG
251  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << solid.name() << " Tubs made of " << matter.name()
252  << " of dimensions " << cms::convert2mm(rinB) << ":" << cms::convert2mm(rins)
253  << ", " << cms::convert2mm(routF) << ":" << cms::convert2mm(routs) << ", "
254  << cms::convert2mm(hthick) << ", 0.0, 360.0 and position " << glog.name()
255  << " number " << copy << ":" << layerOrient_[copy - firstLayer_];
256 #endif
257  positionSensitive(ctxt, e, glog, (copy - firstLayer_));
258  }
259 
260  dd4hep::Position r1(0, 0, zz);
261  dd4hep::Rotation3D rot;
262 #ifdef EDM_ML_DEBUG
263  std::string rotName("Null");
264 #endif
265  if ((layerSense_[ly] > 0) && (layerOrient_[copy - firstLayer_] == HGCalTypes::WaferCenterR)) {
266  rot = ns.rotation(rotstr_);
267 #ifdef EDM_ML_DEBUG
268  rotName = rotstr_;
269 #endif
270  }
271  mother.placeVolume(glog, copy, dd4hep::Transform3D(rot, r1));
272  int inc = ((layerSense_[ly] > 0) && (facingTypes_ > 1)) ? 2 : 1;
273  copyNumber_[ii] = copy + inc;
274 #ifdef EDM_ML_DEBUG
275  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << glog.name() << " number " << copy
276  << " positioned in " << mother.name() << " at (0,0," << cms::convert2mm(zz)
277  << ") with " << rotName << " rotation";
278 #endif
279  zz += hthick;
280  } // End of loop over layers in a block
281  zi = zo;
282  laymin = laymax;
283  // Make consistency check of all the partitions of the block
284  if (std::abs(thickTot - layerThick_[i]) >= tol2) {
285  if (thickTot > layerThick_[i]) {
286  edm::LogError("HGCalGeom") << "Thickness of the partition " << cms::convert2mm(layerThick_[i])
287  << " is smaller than " << cms::convert2mm(thickTot)
288  << ": thickness of all its components **** ERROR ****";
289  } else {
290  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << cms::convert2mm(layerThick_[i])
291  << " does not match with " << cms::convert2mm(thickTot) << " of the components";
292  }
293  }
294  } // End of loop over blocks
295 
296 #ifdef EDM_ML_DEBUG
297  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << copies_.size() << " different wafer copy numbers";
298  int k(0);
299  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
300  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
301  }
302  copies_.clear();
303  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalSiliconModule construction...";
304 #endif
305  }
306 
307  void positionSensitive(cms::DDParsingContext& ctxt, xml_h e, const dd4hep::Volume& glog, int layer) {
308  cms::DDNamespace ns(ctxt, e, true);
309  static const double sqrt3 = std::sqrt(3.0);
310  int layercenter = layerOrient_[layer];
311  int layertype = (layerOrient_[layer] == HGCalTypes::WaferCenterB) ? 1 : 0;
312  int firstWafer = waferLayerStart_[layer];
313  int lastWafer = ((layer + 1 < static_cast<int>(waferLayerStart_.size())) ? waferLayerStart_[layer + 1]
314  : static_cast<int>(waferIndex_.size()));
315  double r = 0.5 * (waferSize_ + waferSepar_);
316  double R = 2.0 * r / sqrt3;
317  double dy = 0.75 * R;
318  const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
319 #ifdef EDM_ML_DEBUG
320  int ium(0), ivm(0), kount(0);
321  std::vector<int> ntype(3, 0);
322  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << glog.name() << " r " << cms::convert2mm(r) << " R "
323  << cms::convert2mm(R) << " dy " << cms::convert2mm(dy) << " Shift "
324  << cms::convert2mm(xyoff.first) << ":" << cms::convert2mm(xyoff.second)
325  << " WaferSize " << cms::convert2mm((waferSize_ + waferSepar_)) << " index "
326  << firstWafer << ":" << (lastWafer - 1);
327 #endif
328  for (int k = firstWafer; k < lastWafer; ++k) {
329  int u = HGCalWaferIndex::waferU(waferIndex_[k]);
330  int v = HGCalWaferIndex::waferV(waferIndex_[k]);
331 #ifdef EDM_ML_DEBUG
332  int iu = std::abs(u);
333  int iv = std::abs(v);
334 #endif
335  int nr = 2 * v;
336  int nc = -2 * u + v;
337  double xpos = xyoff.first + nc * r;
338  double ypos = xyoff.second + nr * dy;
339  int type = HGCalProperty::waferThick(waferProperty_[k]);
340  int part = HGCalProperty::waferPartial(waferProperty_[k]);
341  int orien = HGCalProperty::waferOrient(waferProperty_[k]);
342  std::string wafer;
343  int i(999);
344  if (part == HGCalTypes::WaferFull) {
345  i = layertype * waferTypes_ + type;
346  wafer = waferFull_[i];
347  } else {
348  i = (part - 1) * waferTypes_ * facingTypes_ * orientationTypes_ + layertype * waferTypes_ * orientationTypes_ +
349  type * orientationTypes_ + orien;
350 #ifdef EDM_ML_DEBUG
351  edm::LogVerbatim("HGCalGeom") << " layertype:type:part:orien:ind " << layertype << ":" << type << ":" << part
352  << ":" << orien << ":" << i << ":" << waferPart_.size();
353 #endif
354  wafer = waferPart_[i];
355  }
356  int copy = HGCalTypes::packTypeUV(type, u, v);
357 #ifdef EDM_ML_DEBUG
358  edm::LogVerbatim("HGCalGeom") << " DDHGCalSiliconModule: Layer" << HGCalWaferIndex::waferLayer(waferIndex_[k])
359  << " Wafer " << wafer << " number " << copy << " type:part:orien:ind " << type
360  << ":" << part << ":" << orien << ":" << i << " layer:u:v:indx "
361  << (layer + firstLayer_) << ":" << u << ":" << v;
362  if (iu > ium)
363  ium = iu;
364  if (iv > ivm)
365  ivm = iv;
366  kount++;
367  if (copies_.count(copy) == 0)
368  copies_.insert(copy);
369 #endif
370  dd4hep::Position tran(xpos, ypos, 0.0);
371  glog.placeVolume(ns.volume(wafer), copy, tran);
372 #ifdef EDM_ML_DEBUG
373  ++ntype[type];
374  edm::LogVerbatim("HGCalGeom") << " DDHGCalSiliconModule: " << wafer << " number " << copy << " type " << layertype
375  << ":" << type << " positioned in " << glog.name() << " at ("
376  << cms::convert2mm(xpos) << "," << cms::convert2mm(ypos) << ",0) with no rotation";
377 #endif
378  }
379 
380 #ifdef EDM_ML_DEBUG
381  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Maximum # of u " << ium << " # of v " << ivm << " and "
382  << kount << " wafers (" << ntype[0] << ":" << ntype[1] << ":" << ntype[2] << ") for "
383  << glog.name();
384 #endif
385  }
386 
387  //Required data members to cache the values from XML file
389 
390  int waferTypes_; // Number of wafer types
391  int facingTypes_; // Types of facings of modules toward IP
392  int partialTypes_; // Number of partial wafer types
393  int orientationTypes_; // Number of partial wafer orienations
394  int firstLayer_; // Copy # of the first sensitive layer
395  int absorbMode_; // Absorber mode
396  int sensitiveMode_; // Sensitive mode
397  double zMinBlock_; // Starting z-value of the block
398  double waferSize_; // Width of the wafer
399  double waferSepar_; // Sensor separation
400  int sectors_; // Sectors
401  std::string rotstr_; // Rotation matrix (if needed)
402  std::vector<std::string> waferFull_; // Names of full wafer modules
403  std::vector<std::string> waferPart_; // Names of partial wafer modules
404  std::vector<std::string> materials_; // names of materials
405  std::vector<std::string> names_; // Names of volumes
406  std::vector<double> thick_; // Thickness of the material
407  std::vector<int> copyNumber_; // Initial copy numbers
408  std::vector<int> layers_; // Number of layers in a section
409  std::vector<double> layerThick_; // Thickness of each section
410  std::vector<int> layerType_; // Type of the layer
411  std::vector<int> layerSense_; // Content of a layer (sensitive?)
412  std::vector<double> slopeB_; // Slope at the lower R
413  std::vector<double> zFrontB_; // Starting Z values for the slopes
414  std::vector<double> rMinFront_; // Corresponding rMin's
415  std::vector<double> slopeT_; // Slopes at the larger R
416  std::vector<double> zFrontT_; // Starting Z values for the slopes
417  std::vector<double> rMaxFront_; // Corresponding rMax's
418  std::vector<int> layerOrient_; // Layer orientation (Centering, rotations..)
419  std::vector<int> waferIndex_; // Wafer index for the types
420  std::vector<int> waferProperty_; // Wafer property
421  std::vector<int> waferLayerStart_; // Index of wafers in each layer
422  std::unordered_set<int> copies_; // List of copy #'s
423  double alpha_, cosAlpha_;
424 };
425 
426 static long algorithm(dd4hep::Detector& /* description */, cms::DDParsingContext& ctxt, xml_h e) {
427  HGCalSiliconModule eeSiliconModuleAlgo(ctxt, e);
428  return cms::s_executed;
429 }
430 
431 DECLARE_DDCMS_DETELEMENT(DDCMS_hgcal_DDHGCalSiliconModule, algorithm)
Log< level::Info, true > LogVerbatim
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)
std::unordered_set< int > copies_
const dd4hep::Rotation3D & rotation(const std::string &name) const
Definition: DDNamespace.cc:182
int32_t *__restrict__ iv
std::vector< double > slopeT_
std::vector< double > slopeB_
int32_t waferU(const int32_t index)
int32_t waferLayer(const int32_t index)
std::vector< int > copyNumber_
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
constexpr NumType convert2mm(NumType length)
Definition: DDutils.h:7
std::vector< int > layerOrient_
std::vector< int > layerSense_
Log< level::Error, false > LogError
dd4hep::Material material(const std::string &name) const
Definition: DDNamespace.cc:166
int32_t waferOrient(const int32_t property)
static std::string to_string(const XMLCh *ch)
std::vector< double > zFrontT_
static const std::string & rotName(const T &rot, const cms::DDParsingContext &context)
#define DECLARE_DDCMS_DETELEMENT(name, func)
Definition: DDPlugins.h:25
static constexpr int32_t WaferFull
Definition: HGCalTypes.h:35
std::vector< double > zFrontB_
static constexpr long s_executed
T sqrt(T t)
Definition: SSEVec.h:19
std::string_view name() const
Definition: DDNamespace.h:79
std::vector< double > thick_
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
std::vector< std::string > names_
int32_t waferThick(const int32_t property)
std::vector< int > waferProperty_
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
dd4hep::Volume Volume
ii
Definition: cuy.py:589
std::vector< std::string > waferPart_
std::vector< double > rMaxFront_
static constexpr int32_t WaferCenterR
Definition: HGCalTypes.h:27
std::vector< int > waferLayerStart_
part
Definition: HCALResponse.h:20
std::vector< std::string > materials_
std::vector< int > layerType_
void positionSensitive(cms::DDParsingContext &ctxt, xml_h e, const dd4hep::Volume &glog, int layer)
int32_t waferPartial(const int32_t property)
int32_t waferV(const int32_t index)
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
std::vector< int > layers_
Log< level::Warning, false > LogWarning
static int32_t layerType(int type)
Definition: HGCalTypes.cc:42
std::vector< std::string > waferFull_
std::vector< double > rMinFront_
dd4hep::Volume addVolumeNS(dd4hep::Volume vol) const
Definition: DDNamespace.cc:202
static constexpr int32_t WaferCenterB
Definition: HGCalTypes.h:26
std::vector< int > waferIndex_
std::vector< double > layerThick_
dd4hep::Volume volume(const std::string &name, bool exc=true) const
Definition: DDNamespace.cc:276
dd4hep::Solid addSolidNS(const std::string &name, dd4hep::Solid solid) const
Definition: DDNamespace.cc:292
HGCalSiliconModule(cms::DDParsingContext &ctxt, xml_h e)
std::string prepend(const std::string &) const
Definition: DDNamespace.cc:99