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
6 
25 
26 #include <cmath>
27 #include <memory>
28 #include <sstream>
29 #include <string>
30 #include <unordered_set>
31 #include <vector>
32 
33 //#define EDM_ML_DEBUG
34 using namespace angle_units::operators;
35 
36 class DDHGCalSiliconModule : public DDAlgorithm {
37 public:
39 
40  void initialize(const DDNumericArguments& nArgs,
41  const DDVectorArguments& vArgs,
42  const DDMapArguments& mArgs,
43  const DDStringArguments& sArgs,
44  const DDStringVectorArguments& vsArgs) override;
45  void execute(DDCompactView& cpv) override;
46 
47 protected:
48  void constructLayers(const DDLogicalPart&, DDCompactView& cpv);
49  void positionSensitive(const DDLogicalPart& glog, int layer, DDCompactView& cpv);
50 
51 private:
53 
54  static constexpr double tol1_ = 0.01;
55  static constexpr double tol2_ = 0.00001;
56 
57  int waferTypes_; // Number of wafer types
58  int facingTypes_; // Types of facings of modules toward IP
59  int partialTypes_; // Number of partial wafer types
60  int orientationTypes_; // Number of partial wafer orienations
61  int firstLayer_; // Copy # of the first sensitive layer
62  int absorbMode_; // Absorber mode
63  int sensitiveMode_; // Sensitive mode
64  double zMinBlock_; // Starting z-value of the block
65  double waferSize_; // Width of the wafer
66  double waferSepar_; // Sensor separation
67  int sectors_; // Sectors
68  std::string rotstr_; // Rotation matrix (if needed)
69  std::vector<std::string> waferFull_; // Names of full wafer modules
70  std::vector<std::string> waferPart_; // Names of partial wafer modules
71  std::vector<std::string> materials_; // names of materials
72  std::vector<std::string> names_; // Names of volumes
73  std::vector<double> thick_; // Thickness of the material
74  std::vector<int> copyNumber_; // Initial copy numbers
75  std::vector<int> layers_; // Number of layers in a section
76  std::vector<double> layerThick_; // Thickness of each section
77  std::vector<int> layerType_; // Type of the layer
78  std::vector<int> layerSense_; // Content of a layer (sensitive?)
79  std::vector<double> slopeB_; // Slope at the lower R
80  std::vector<double> zFrontB_; // Starting Z values for the slopes
81  std::vector<double> rMinFront_; // Corresponding rMin's
82  std::vector<double> slopeT_; // Slopes at the larger R
83  std::vector<double> zFrontT_; // Starting Z values for the slopes
84  std::vector<double> rMaxFront_; // Corresponding rMax's
85  std::vector<int> layerTypes_; // Layer type (Centering, rotations..)
86  std::vector<int> waferIndex_; // Wafer index for the types
87  std::vector<int> waferProperty_; // Wafer property
88  std::vector<int> waferLayerStart_; // Index of wafers in each layer
89  std::string nameSpace_; // Namespace of this and ALL sub-parts
90  std::unordered_set<int> copies_; // List of copy #'s
91  double alpha_, cosAlpha_;
92 };
93 
95 #ifdef EDM_ML_DEBUG
96  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Creating an instance";
97 #endif
98 }
99 
101  const DDVectorArguments& vArgs,
102  const DDMapArguments&,
103  const DDStringArguments& sArgs,
104  const DDStringVectorArguments& vsArgs) {
105  waferTypes_ = static_cast<int>(nArgs["WaferTypes"]);
106  facingTypes_ = static_cast<int>(nArgs["FacingTypes"]);
107  partialTypes_ = static_cast<int>(nArgs["PartialTypes"]);
108  orientationTypes_ = static_cast<int>(nArgs["OrientationTypes"]);
109 #ifdef EDM_ML_DEBUG
110  edm::LogVerbatim("HGCalGeom") << "Number of types of wafers: " << waferTypes_ << " facings: " << facingTypes_
111  << " partials: " << partialTypes_ << " Orientations: " << orientationTypes_;
112 #endif
113  firstLayer_ = static_cast<int>(nArgs["FirstLayer"]);
114  absorbMode_ = static_cast<int>(nArgs["AbsorberMode"]);
115  sensitiveMode_ = static_cast<int>(nArgs["SensitiveMode"]);
116 #ifdef EDM_ML_DEBUG
117  edm::LogVerbatim("HGCalGeom") << "First Layer " << firstLayer_ << " and "
118  << "Absober:Sensitive mode " << absorbMode_ << ":" << sensitiveMode_;
119 #endif
120  zMinBlock_ = nArgs["zMinBlock"];
121  waferSize_ = nArgs["waferSize"];
122  waferSepar_ = nArgs["SensorSeparation"];
123  sectors_ = (int)(nArgs["Sectors"]);
124  alpha_ = (1._pi) / sectors_;
125  cosAlpha_ = cos(alpha_);
126  rotstr_ = sArgs["LayerRotation"];
127 #ifdef EDM_ML_DEBUG
128  edm::LogVerbatim("HGCalGeom") << "zStart " << zMinBlock_ << " wafer width " << waferSize_ << " separations "
129  << waferSepar_ << " sectors " << sectors_ << ":" << convertRadToDeg(alpha_) << ":"
130  << cosAlpha_ << " rotation matrix " << rotstr_;
131 #endif
132  waferFull_ = vsArgs["WaferNamesFull"];
133  waferPart_ = vsArgs["WaferNamesPartial"];
134 #ifdef EDM_ML_DEBUG
135  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << waferFull_.size() << " full and " << waferPart_.size()
136  << " partial modules\nDDHGCalSiliconModule:Full Modules:";
137  unsigned int i1max = static_cast<unsigned int>(waferFull_.size());
138  for (unsigned int i1 = 0; i1 < i1max; i1 += 2) {
139  std::ostringstream st1;
140  unsigned int i2 = std::min((i1 + 2), i1max);
141  for (unsigned int i = i1; i < i2; ++i)
142  st1 << " [" << i << "] " << waferFull_[i];
143  edm::LogVerbatim("HGCalGeom") << st1.str() << std::endl;
144  }
145  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Partial Modules:";
146  i1max = static_cast<unsigned int>(waferPart_.size());
147  for (unsigned int i1 = 0; i1 < i1max; i1 += 2) {
148  std::ostringstream st1;
149  unsigned int i2 = std::min((i1 + 2), i1max);
150  for (unsigned int i = i1; i < i2; ++i)
151  st1 << " [" << i << "] " << waferPart_[i];
152  edm::LogVerbatim("HGCalGeom") << st1.str() << std::endl;
153  }
154 #endif
155  materials_ = vsArgs["MaterialNames"];
156  names_ = vsArgs["VolumeNames"];
157  thick_ = vArgs["Thickness"];
158  copyNumber_.resize(materials_.size(), 1);
159 #ifdef EDM_ML_DEBUG
160  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << materials_.size() << " types of volumes";
161  for (unsigned int i = 0; i < names_.size(); ++i)
162  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness " << thick_[i]
163  << " filled with " << materials_[i] << " first copy number " << copyNumber_[i];
164 #endif
165  layers_ = dbl_to_int(vArgs["Layers"]);
166  layerThick_ = vArgs["LayerThick"];
167 #ifdef EDM_ML_DEBUG
168  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
169  for (unsigned int i = 0; i < layers_.size(); ++i)
170  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << layerThick_[i] << " with " << layers_[i]
171  << " layers";
172 #endif
173  layerType_ = dbl_to_int(vArgs["LayerType"]);
174  layerSense_ = dbl_to_int(vArgs["LayerSense"]);
175  layerTypes_ = dbl_to_int(vArgs["LayerTypes"]);
176 #ifdef EDM_ML_DEBUG
177  for (unsigned int i = 0; i < layerTypes_.size(); ++i)
178  edm::LogVerbatim("HGCalGeom") << "LayerTypes [" << i << "] " << layerTypes_[i];
179 #endif
180  if (firstLayer_ > 0) {
181  for (unsigned int i = 0; i < layerType_.size(); ++i) {
182  if (layerSense_[i] > 0) {
183  int ii = layerType_[i];
184  copyNumber_[ii] = (layerSense_[i] == 1) ? firstLayer_ : (firstLayer_ + 1);
185 #ifdef EDM_ML_DEBUG
186  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
187  << materials_[ii] << " changed to " << copyNumber_[ii];
188 #endif
189  }
190  }
191  } else {
192  firstLayer_ = 1;
193  }
194 #ifdef EDM_ML_DEBUG
195  edm::LogVerbatim("HGCalGeom") << "There are " << layerType_.size() << " layers";
196  for (unsigned int i = 0; i < layerType_.size(); ++i)
197  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerType_[i] << " sensitive class "
198  << layerSense_[i];
199 #endif
200  slopeB_ = vArgs["SlopeBottom"];
201  zFrontB_ = vArgs["ZFrontBottom"];
202  rMinFront_ = vArgs["RMinFront"];
203  slopeT_ = vArgs["SlopeTop"];
204  zFrontT_ = vArgs["ZFrontTop"];
205  rMaxFront_ = vArgs["RMaxFront"];
206 #ifdef EDM_ML_DEBUG
207  for (unsigned int i = 0; i < slopeB_.size(); ++i)
208  edm::LogVerbatim("HGCalGeom") << "Bottom Block [" << i << "] Zmin " << zFrontB_[i] << " Rmin " << rMinFront_[i]
209  << " Slope " << slopeB_[i];
210  for (unsigned int i = 0; i < slopeT_.size(); ++i)
211  edm::LogVerbatim("HGCalGeom") << "Top Block [" << i << "] Zmin " << zFrontT_[i] << " Rmax " << rMaxFront_[i]
212  << " Slope " << slopeT_[i];
213 #endif
214  waferIndex_ = dbl_to_int(vArgs["WaferIndex"]);
215  waferProperty_ = dbl_to_int(vArgs["WaferProperties"]);
216  waferLayerStart_ = dbl_to_int(vArgs["WaferLayerStart"]);
217 #ifdef EDM_ML_DEBUG
218  edm::LogVerbatim("HGCalGeom") << "waferProperties with " << waferIndex_.size() << " entries in "
219  << waferLayerStart_.size() << " layers";
220  for (unsigned int k = 0; k < waferLayerStart_.size(); ++k)
221  edm::LogVerbatim("HGCalGeom") << "LayerStart[" << k << "] " << waferLayerStart_[k];
222  for (unsigned int k = 0; k < waferIndex_.size(); ++k)
223  edm::LogVerbatim("HGCalGeom") << "Wafer[" << k << "] " << waferIndex_[k] << " ("
224  << HGCalWaferIndex::waferLayer(waferIndex_[k]) << ", "
225  << HGCalWaferIndex::waferU(waferIndex_[k]) << ", "
226  << HGCalWaferIndex::waferV(waferIndex_[k]) << ") : ("
227  << HGCalProperty::waferThick(waferProperty_[k]) << ":"
228  << HGCalProperty::waferPartial(waferProperty_[k]) << ":"
229  << HGCalProperty::waferOrient(waferProperty_[k]) << ")";
230 #endif
231  nameSpace_ = DDCurrentNamespace::ns();
232 #ifdef EDM_ML_DEBUG
233  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: NameSpace " << nameSpace_;
234 #endif
235 }
236 
238 // DDHGCalSiliconModule methods...
240 
242 #ifdef EDM_ML_DEBUG
243  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalSiliconModule...";
244  copies_.clear();
245 #endif
246  constructLayers(parent(), cpv);
247 #ifdef EDM_ML_DEBUG
248  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << copies_.size() << " different wafer copy numbers";
249  int k(0);
250  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
251  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
252  }
253  copies_.clear();
254  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalSiliconModule construction...";
255 #endif
256 }
257 
259 #ifdef EDM_ML_DEBUG
260  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: \t\tInside Layers";
261 #endif
262  double zi(zMinBlock_);
263  int laymin(0);
264  for (unsigned int i = 0; i < layers_.size(); i++) {
265  double zo = zi + layerThick_[i];
266  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
267  int laymax = laymin + layers_[i];
268  double zz = zi;
269  double thickTot(0);
270  for (int ly = laymin; ly < laymax; ++ly) {
271  int ii = layerType_[ly];
272  int copy = copyNumber_[ii];
273  double hthick = 0.5 * thick_[ii];
274  double rinB = HGCalGeomTools::radius(zo - tol1_, zFrontB_, rMinFront_, slopeB_);
275  zz += hthick;
276  thickTot += thick_[ii];
277 
278  std::string name = names_[ii] + std::to_string(copy);
279 #ifdef EDM_ML_DEBUG
280  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Layer " << ly << ":" << ii << " Front " << zi << ", "
281  << routF << " Back " << zo << ", " << rinB << " superlayer thickness "
282  << layerThick_[i];
283 #endif
284  DDName matName(DDSplit(materials_[ii]).first, DDSplit(materials_[ii]).second);
285  DDMaterial matter(matName);
286  DDLogicalPart glog;
287  if (layerSense_[ly] < 1) {
288  std::vector<double> pgonZ, pgonRin, pgonRout;
289  double rmax = routF * cosAlpha_ - tol1_;
290  HGCalGeomTools::radius(zz - hthick,
291  zz + hthick,
292  zFrontB_,
293  rMinFront_,
294  slopeB_,
295  zFrontT_,
296  rMaxFront_,
297  slopeT_,
298  -layerSense_[ly],
299  pgonZ,
300  pgonRin,
301  pgonRout);
302  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
303  pgonZ[isec] -= zz;
304  if (layerSense_[ly] == 0 || absorbMode_ == 0)
305  pgonRout[isec] = rmax;
306  else
307  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1_;
308  }
309  DDSolid solid =
310  DDSolidFactory::polyhedra(DDName(name, nameSpace_), sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
311  glog = DDLogicalPart(solid.ddname(), matter, solid);
312 #ifdef EDM_ML_DEBUG
313  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << solid.name() << " polyhedra of " << sectors_
314  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
315  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size()
316  << " sections and filled with " << matName;
317  for (unsigned int k = 0; k < pgonZ.size(); ++k)
318  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << pgonZ[k] << " R " << pgonRin[k] << ":" << pgonRout[k];
319 #endif
320  } else {
321  double rins =
322  (sensitiveMode_ < 1) ? rinB : HGCalGeomTools::radius(zz + hthick - tol1_, zFrontB_, rMinFront_, slopeB_);
323  double routs =
324  (sensitiveMode_ < 1) ? routF : HGCalGeomTools::radius(zz - hthick, zFrontT_, rMaxFront_, slopeT_);
325  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rins, routs, 0.0, 2._pi);
326  glog = DDLogicalPart(solid.ddname(), matter, solid);
327 #ifdef EDM_ML_DEBUG
328  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << solid.name() << " Tubs made of " << matName
329  << " of dimensions " << rinB << ":" << rins << ", " << routF << ":" << routs
330  << ", " << hthick << ", 0.0, 360.0 and position " << glog.name() << " number "
331  << copy << ":" << layerTypes_[copy - firstLayer_];
332 #endif
333  positionSensitive(glog, (copy - firstLayer_), cpv);
334  }
335  DDTranslation r1(0, 0, zz);
336  DDRotation rot;
337 #ifdef EDM_ML_DEBUG
338  std::string rotName("Null");
339 #endif
340  if ((layerSense_[ly] > 0) && (layerTypes_[copy - firstLayer_] == HGCalTypes::WaferCenteredRotated)) {
341  rot = DDRotation(DDName(DDSplit(rotstr_).first, DDSplit(rotstr_).second));
342 #ifdef EDM_ML_DEBUG
343  rotName = rotstr_;
344 #endif
345  }
346  cpv.position(glog, module, copy, r1, rot);
347  int inc = ((layerSense_[ly] > 0) && (facingTypes_ > 1)) ? 2 : 1;
348  copyNumber_[ii] = copy + inc;
349 #ifdef EDM_ML_DEBUG
350  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << glog.name() << " number " << copy
351  << " positioned in " << module.name() << " at " << r1 << " with " << rotName
352  << " rotation";
353 #endif
354  zz += hthick;
355  } // End of loop over layers in a block
356  zi = zo;
357  laymin = laymax;
358  // Make consistency check of all the partitions of the block
359  if (std::abs(thickTot - layerThick_[i]) >= tol2_) {
360  if (thickTot > layerThick_[i]) {
361  edm::LogError("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " is smaller than " << thickTot
362  << ": thickness of all its components **** ERROR ****";
363  } else {
364  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " does not match with "
365  << thickTot << " of the components";
366  }
367  }
368  } // End of loop over blocks
369 }
370 
372  static const double sqrt3 = std::sqrt(3.0);
373  int layercenter = (layerTypes_[layer] == HGCalTypes::CornerCenteredLambda)
374  ? 1
375  : ((layerTypes_[layer] == HGCalTypes::CornerCenteredY) ? 2 : 0);
376  int layertype = (layerTypes_[layer] == HGCalTypes::WaferCenteredBack) ? 1 : 0;
377  int firstWafer = waferLayerStart_[layer];
378  int lastWafer = ((layer + 1 < static_cast<int>(waferLayerStart_.size())) ? waferLayerStart_[layer + 1]
379  : static_cast<int>(waferIndex_.size()));
380  double r = 0.5 * (waferSize_ + waferSepar_);
381  double R = 2.0 * r / sqrt3;
382  double dy = 0.75 * R;
383  const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
384 #ifdef EDM_ML_DEBUG
385  int ium(0), ivm(0), kount(0);
386  std::vector<int> ntype(3, 0);
387  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: " << glog.ddname() << " r " << r << " R " << R << " dy "
388  << dy << " Shift " << xyoff.first << ":" << xyoff.second << " WaferSize "
389  << (waferSize_ + waferSepar_) << " index " << firstWafer << ":" << (lastWafer - 1);
390 #endif
391  for (int k = firstWafer; k < lastWafer; ++k) {
392  int u = HGCalWaferIndex::waferU(waferIndex_[k]);
393  int v = HGCalWaferIndex::waferV(waferIndex_[k]);
394 #ifdef EDM_ML_DEBUG
395  int iu = std::abs(u);
396  int iv = std::abs(v);
397 #endif
398  int nr = 2 * v;
399  int nc = -2 * u + v;
400  double xpos = xyoff.first + nc * r;
401  double ypos = xyoff.second + nr * dy;
402  int type = HGCalProperty::waferThick(waferProperty_[k]);
403  int part = HGCalProperty::waferPartial(waferProperty_[k]);
404  int orien = HGCalProperty::waferOrient(waferProperty_[k]);
405  std::string wafer;
406  int i(999);
407  if (part == HGCalTypes::WaferFull) {
408  i = layertype * waferTypes_ + type;
409  wafer = waferFull_[i];
410  } else {
411  i = (part - 1) * waferTypes_ * facingTypes_ * orientationTypes_ + layertype * waferTypes_ * orientationTypes_ +
412  type * orientationTypes_ + orien;
413 #ifdef EDM_ML_DEBUG
414  edm::LogVerbatim("HGCalGeom") << " layertype:type:part:orien:ind " << layertype << ":" << type << ":" << part
415  << ":" << orien << ":" << i << ":" << waferPart_.size();
416 #endif
417  wafer = waferPart_[i];
418  }
419  int copy = HGCalTypes::packTypeUV(type, u, v);
420 #ifdef EDM_ML_DEBUG
421  edm::LogVerbatim("HGCalGeom") << " DDHGCalSiliconModule: Layer " << HGCalWaferIndex::waferLayer(waferIndex_[k])
422  << " Wafer " << wafer << " number " << copy << " type:part:orien:ind " << type << ":"
423  << part << ":" << orien << ":" << i << " layer:u:v:indx " << (layer + firstLayer_)
424  << ":" << u << ":" << v;
425  if (iu > ium)
426  ium = iu;
427  if (iv > ivm)
428  ivm = iv;
429  kount++;
430  if (copies_.count(copy) == 0)
431  copies_.insert(copy);
432 #endif
433  DDTranslation tran(xpos, ypos, 0.0);
435  DDName name = DDName(DDSplit(wafer).first, DDSplit(wafer).second);
436  cpv.position(name, glog.ddname(), copy, tran, rotation);
437 #ifdef EDM_ML_DEBUG
438  ++ntype[type];
439  edm::LogVerbatim("HGCalGeom") << " DDHGCalSiliconModule: " << name << " number " << copy << " type " << layertype
440  << ":" << type << " positioned in " << glog.ddname() << " at " << tran
441  << " with no rotation";
442 #endif
443  }
444 #ifdef EDM_ML_DEBUG
445  edm::LogVerbatim("HGCalGeom") << "DDHGCalSiliconModule: Maximum # of u " << ium << " # of v " << ivm << " and "
446  << kount << " wafers (" << ntype[0] << ":" << ntype[1] << ":" << ntype[2] << ") for "
447  << glog.ddname();
448 #endif
449 }
450 
451 DEFINE_EDM_PLUGIN(DDAlgorithmFactory, DDHGCalSiliconModule, "hgcal:DDHGCalSiliconModule");
DDHGCalSiliconModule::copies_
std::unordered_set< int > copies_
Definition: DDHGCalSiliconModule.cc:90
DDHGCalSiliconModule::waferTypes_
int waferTypes_
Definition: DDHGCalSiliconModule.cc:57
PluginFactory.h
testProducerWithPsetDescEmpty_cfi.i2
i2
Definition: testProducerWithPsetDescEmpty_cfi.py:46
DDCurrentNamespace.h
mps_fire.i
i
Definition: mps_fire.py:428
geometryCSVtoXML.zz
zz
Definition: geometryCSVtoXML.py:19
MessageLogger.h
DDHGCalSiliconModule::sectors_
int sectors_
Definition: DDHGCalSiliconModule.cc:67
DDHGCalSiliconModule::materials_
std::vector< std::string > materials_
Definition: DDHGCalSiliconModule.cc:71
HGCalProperty.h
DDHGCalSiliconModule::slopeT_
std::vector< double > slopeT_
Definition: DDHGCalSiliconModule.cc:82
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:17
DDHGCalSiliconModule::rMaxFront_
std::vector< double > rMaxFront_
Definition: DDHGCalSiliconModule.cc:84
DDHGCalSiliconModule::zFrontB_
std::vector< double > zFrontB_
Definition: DDHGCalSiliconModule.cc:80
min
T min(T a, T b)
Definition: MathUtil.h:58
DDHGCalSiliconModule::positionSensitive
void positionSensitive(const DDLogicalPart &glog, int layer, DDCompactView &cpv)
Definition: DDHGCalSiliconModule.cc:371
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
gpuVertexFinder::iv
int32_t *__restrict__ iv
Definition: gpuClusterTracksDBSCAN.h:42
DDSplit.h
testProducerWithPsetDescEmpty_cfi.i1
i1
Definition: testProducerWithPsetDescEmpty_cfi.py:45
DDHGCalSiliconModule
Definition: DDHGCalSiliconModule.cc:36
DDHGCalSiliconModule::waferFull_
std::vector< std::string > waferFull_
Definition: DDHGCalSiliconModule.cc:69
HGCalWaferIndex::waferU
int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:27
HGCalProperty::waferOrient
int32_t waferOrient(const int32_t property)
Definition: HGCalProperty.cc:17
DDHGCalSiliconModule::sensitiveMode_
int sensitiveMode_
Definition: DDHGCalSiliconModule.cc:63
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
DDHGCalSiliconModule::absorbMode_
int absorbMode_
Definition: DDHGCalSiliconModule.cc:62
DDHGCalSiliconModule::copyNumber_
std::vector< int > copyNumber_
Definition: DDHGCalSiliconModule.cc:74
findQualityFiles.v
v
Definition: findQualityFiles.py:179
DDHGCalSiliconModule::thick_
std::vector< double > thick_
Definition: DDHGCalSiliconModule.cc:73
HGCalTypes::WaferCenteredRotated
Definition: HGCalTypes.h:87
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
DDHGCalSiliconModule::constructLayers
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Definition: DDHGCalSiliconModule.cc:258
DDHGCalSiliconModule::layerSense_
std::vector< int > layerSense_
Definition: DDHGCalSiliconModule.cc:78
DDHGCalSiliconModule::waferProperty_
std::vector< int > waferProperty_
Definition: DDHGCalSiliconModule.cc:87
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
part
part
Definition: HCALResponse.h:20
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:565
DDHGCalSiliconModule::waferPart_
std::vector< std::string > waferPart_
Definition: DDHGCalSiliconModule.cc:70
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
DDBase::name
const N & name() const
Definition: DDBase.h:59
HGCalWaferType.h
HGCalTypes::WaferFull
Definition: HGCalTypes.h:58
HGCalWaferIndex::waferV
int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:32
DDSolidFactory::tubs
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
Definition: DDSolid.cc:667
DDHGCalSiliconModule::initialize
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Definition: DDHGCalSiliconModule.cc:100
DDSolid.h
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
DDHGCalSiliconModule::rMinFront_
std::vector< double > rMinFront_
Definition: DDHGCalSiliconModule.cc:81
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
HGCalTypes::packTypeUV
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
DDHGCalSiliconModule::cosAlpha_
double cosAlpha_
Definition: DDHGCalSiliconModule.cc:91
DDHGCalSiliconModule::DDHGCalSiliconModule
DDHGCalSiliconModule()
Definition: DDHGCalSiliconModule.cc:94
DDHGCalSiliconModule::waferSepar_
double waferSepar_
Definition: DDHGCalSiliconModule.cc:66
DDHGCalSiliconModule::execute
void execute(DDCompactView &cpv) override
Definition: DDHGCalSiliconModule.cc:241
DDutils.h
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
DDHGCalSiliconModule::waferLayerStart_
std::vector< int > waferLayerStart_
Definition: DDHGCalSiliconModule.cc:88
EgHLTOffHistBins_cfi.nr
nr
Definition: EgHLTOffHistBins_cfi.py:4
DDBase::ddname
const N & ddname() const
Definition: DDBase.h:61
HGCalTypes::CornerCenteredLambda
Definition: HGCalTypes.h:86
HGCalTypes::CornerCenteredY
Definition: HGCalTypes.h:85
DDHGCalSiliconModule::waferIndex_
std::vector< int > waferIndex_
Definition: DDHGCalSiliconModule.cc:86
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
DDHGCalSiliconModule::orientationTypes_
int orientationTypes_
Definition: DDHGCalSiliconModule.cc:60
edmplugin::PluginFactory
Definition: PluginFactory.h:34
angle_units::operators
Definition: angle_units.h:11
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:40
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDTypes.h
DDMaterial.h
createfilelist.int
int
Definition: createfilelist.py:10
DDHGCalSiliconModule::rotstr_
std::string rotstr_
Definition: DDHGCalSiliconModule.cc:68
HGCalProperty::waferThick
int32_t waferThick(const int32_t property)
Definition: HGCalProperty.cc:9
DDHGCalSiliconModule::zFrontT_
std::vector< double > zFrontT_
Definition: DDHGCalSiliconModule.cc:83
HGCalGeomTools
Definition: HGCalGeomTools.h:8
PVValHelper::dy
Definition: PVValidationHelpers.h:50
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
DDLogicalPart.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalProperty::waferPartial
int32_t waferPartial(const int32_t property)
Definition: HGCalProperty.cc:13
alignCSCRings.r
r
Definition: alignCSCRings.py:93
callgraph.module
module
Definition: callgraph.py:61
DDHGCalSiliconModule::geomTools_
HGCalGeomTools geomTools_
Definition: DDHGCalSiliconModule.cc:52
DDHGCalSiliconModule::layerTypes_
std::vector< int > layerTypes_
Definition: DDHGCalSiliconModule.cc:85
ReadMapType< double >
HGCalGeomTools.h
HGCalWaferIndex::waferLayer
int32_t waferLayer(const int32_t index)
Definition: HGCalWaferIndex.cc:23
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:12
DDAlgorithm.h
cms::rotation_utils::rotName
static const std::string & rotName(const T &rot, const cms::DDParsingContext &context)
Definition: DDCoreToDDXMLOutput.cc:81
DDHGCalSiliconModule::nameSpace_
std::string nameSpace_
Definition: DDHGCalSiliconModule.cc:89
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:23
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
DDCurrentNamespace::ns
static std::string & ns()
Definition: DDCurrentNamespace.cc:3
DDHGCalSiliconModule::firstLayer_
int firstLayer_
Definition: DDHGCalSiliconModule.cc:61
DDHGCalSiliconModule::names_
std::vector< std::string > names_
Definition: DDHGCalSiliconModule.cc:72
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
DDHGCalSiliconModule::layers_
std::vector< int > layers_
Definition: DDHGCalSiliconModule.cc:75
DDHGCalSiliconModule::waferSize_
double waferSize_
Definition: DDHGCalSiliconModule.cc:65
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DDSolid
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
DDRotation
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
HGCalTypes::WaferCenteredBack
Definition: HGCalTypes.h:84
DDHGCalSiliconModule::slopeB_
std::vector< double > slopeB_
Definition: DDHGCalSiliconModule.cc:79
DDHGCalSiliconModule::zMinBlock_
double zMinBlock_
Definition: DDHGCalSiliconModule.cc:64
DDHGCalSiliconModule::partialTypes_
int partialTypes_
Definition: DDHGCalSiliconModule.cc:59
DDHGCalSiliconModule::layerThick_
std::vector< double > layerThick_
Definition: DDHGCalSiliconModule.cc:76
initialize
static AlgebraicMatrix initialize()
Definition: BeamSpotTransientTrackingRecHit.cc:24
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
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
angle_units.h
HGCalTypes.h
DDAlgorithmFactory.h
edm::Log
Definition: MessageLogger.h:70
dttmaxenums::R
Definition: DTTMax.h:29
DDHGCalSiliconModule::facingTypes_
int facingTypes_
Definition: DDHGCalSiliconModule.cc:58
HGCalParameters.h
class-composition.parent
parent
Definition: class-composition.py:98
cuy.ii
ii
Definition: cuy.py:589
DDHGCalSiliconModule::layerType_
std::vector< int > layerType_
Definition: DDHGCalSiliconModule.cc:77
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