CMS 3D CMS Logo

DDHGCalEEFileAlgo.cc
Go to the documentation of this file.
1 // File: DDHGCalEEFileAlgo.cc
3 // Description: Geometry factory class for HGCal (EE and HESil) using
4 // information from the file
6 
24 
25 #include <cmath>
26 #include <memory>
27 #include <string>
28 #include <unordered_set>
29 #include <vector>
30 
31 //#define EDM_ML_DEBUG
32 using namespace geant_units::operators;
33 
34 class DDHGCalEEFileAlgo : public DDAlgorithm {
35 public:
37 
38  void initialize(const DDNumericArguments& nArgs,
39  const DDVectorArguments& vArgs,
40  const DDMapArguments& mArgs,
41  const DDStringArguments& sArgs,
42  const DDStringVectorArguments& vsArgs) override;
43  void execute(DDCompactView& cpv) override;
44 
45 protected:
46  void constructLayers(const DDLogicalPart&, DDCompactView& cpv);
47  void positionSensitive(
48  const DDLogicalPart& glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView& cpv);
49 
50 private:
52 
53  static constexpr double tol1_ = 0.01;
54  static constexpr double tol2_ = 0.00001;
55 
56  std::vector<std::string> wafers_; // Wafers
57  std::vector<std::string> materials_; // Materials
58  std::vector<std::string> names_; // Names
59  std::vector<double> thick_; // Thickness of the material
60  std::vector<int> copyNumber_; // Initial copy numbers
61  std::vector<int> layers_; // Number of layers in a section
62  std::vector<double> layerThick_; // Thickness of each section
63  std::vector<int> layerType_; // Type of the layer
64  std::vector<int> layerSense_; // Content of a layer (sensitive?)
65  std::vector<int> layerCenter_; // Centering of the wafers
66  int firstLayer_; // Copy # of the first sensitive layer
67  int absorbMode_; // Absorber mode
68  int sensitiveMode_; // Sensitive mode
69  double zMinBlock_; // Starting z-value of the block
70  std::vector<double> rad100to200_; // Parameters for 120-200mum trans.
71  std::vector<double> rad200to300_; // Parameters for 200-300mum trans.
72  double zMinRadPar_; // Minimum z for radius parametriz.
73  std::vector<int> waferIndex_; // Wafer index for the types
74  std::vector<int> waferTypes_; // Wafer types
75  int choiceType_; // Type of parametrization to be used
76  int nCutRadPar_; // Cut off threshold for corners
77  double fracAreaMin_; // Minimum fractional conatined area
78  double waferSize_; // Width of the wafer
79  double waferSepar_; // Sensor separation
80  int sectors_; // Sectors
81  std::vector<double> slopeB_; // Slope at the lower R
82  std::vector<double> zFrontB_; // Starting Z values for the slopes
83  std::vector<double> rMinFront_; // Corresponding rMin's
84  std::vector<double> slopeT_; // Slopes at the larger R
85  std::vector<double> zFrontT_; // Starting Z values for the slopes
86  std::vector<double> rMaxFront_; // Corresponding rMax's
87  std::string nameSpace_; // Namespace of this and ALL sub-parts
88  std::unordered_set<int> copies_; // List of copy #'s
89  double alpha_, cosAlpha_;
90 };
91 
93 #ifdef EDM_ML_DEBUG
94  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Creating an instance";
95 #endif
96 }
97 
99  const DDVectorArguments& vArgs,
100  const DDMapArguments&,
101  const DDStringArguments& sArgs,
102  const DDStringVectorArguments& vsArgs) {
103  wafers_ = vsArgs["WaferNames"];
104 #ifdef EDM_ML_DEBUG
105  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << wafers_.size() << " wafers";
106  for (unsigned int i = 0; i < wafers_.size(); ++i)
107  edm::LogVerbatim("HGCalGeom") << "Wafer[" << i << "] " << wafers_[i];
108 #endif
109  materials_ = vsArgs["MaterialNames"];
110  names_ = vsArgs["VolumeNames"];
111  thick_ = vArgs["Thickness"];
112  copyNumber_.resize(materials_.size(), 1);
113 #ifdef EDM_ML_DEBUG
114  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << materials_.size() << " types of volumes";
115  for (unsigned int i = 0; i < names_.size(); ++i)
116  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness " << thick_[i]
117  << " filled with " << materials_[i] << " first copy number " << copyNumber_[i];
118 #endif
119  layers_ = dbl_to_int(vArgs["Layers"]);
120  layerThick_ = vArgs["LayerThick"];
121 #ifdef EDM_ML_DEBUG
122  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
123  for (unsigned int i = 0; i < layers_.size(); ++i)
124  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << layerThick_[i] << " with " << layers_[i]
125  << " layers";
126 #endif
127  layerType_ = dbl_to_int(vArgs["LayerType"]);
128  layerSense_ = dbl_to_int(vArgs["LayerSense"]);
129  firstLayer_ = (int)(nArgs["FirstLayer"]);
130  absorbMode_ = (int)(nArgs["AbsorberMode"]);
131  sensitiveMode_ = (int)(nArgs["SensitiveMode"]);
132 #ifdef EDM_ML_DEBUG
133  edm::LogVerbatim("HGCalGeom") << "First Layer " << firstLayer_ << " and "
134  << "Absober:Sensitive mode " << absorbMode_ << ":" << sensitiveMode_;
135 #endif
136  layerCenter_ = dbl_to_int(vArgs["LayerCenter"]);
137 #ifdef EDM_ML_DEBUG
138  for (unsigned int i = 0; i < layerCenter_.size(); ++i)
139  edm::LogVerbatim("HGCalGeom") << "LayerCenter [" << i << "] " << layerCenter_[i];
140 #endif
141  if (firstLayer_ > 0) {
142  for (unsigned int i = 0; i < layerType_.size(); ++i) {
143  if (layerSense_[i] > 0) {
144  int ii = layerType_[i];
145  copyNumber_[ii] = firstLayer_;
146 #ifdef EDM_ML_DEBUG
147  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
148  << materials_[ii] << " changed to " << copyNumber_[ii];
149 #endif
150  break;
151  }
152  }
153  } else {
154  firstLayer_ = 1;
155  }
156 #ifdef EDM_ML_DEBUG
157  edm::LogVerbatim("HGCalGeom") << "There are " << layerType_.size() << " layers";
158  for (unsigned int i = 0; i < layerType_.size(); ++i)
159  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerType_[i] << " sensitive class "
160  << layerSense_[i];
161 #endif
162  zMinBlock_ = nArgs["zMinBlock"];
163  rad100to200_ = vArgs["rad100to200"];
164  rad200to300_ = vArgs["rad200to300"];
165  zMinRadPar_ = nArgs["zMinForRadPar"];
166  choiceType_ = (int)(nArgs["choiceType"]);
167  nCutRadPar_ = (int)(nArgs["nCornerCut"]);
168  fracAreaMin_ = nArgs["fracAreaMin"];
169  waferSize_ = nArgs["waferSize"];
170  waferSepar_ = nArgs["SensorSeparation"];
171  sectors_ = (int)(nArgs["Sectors"]);
172  alpha_ = (1._pi) / sectors_;
173  cosAlpha_ = cos(alpha_);
174 #ifdef EDM_ML_DEBUG
175  edm::LogVerbatim("HGCalGeom") << "zStart " << zMinBlock_ << " radius for wafer type separation uses "
176  << rad100to200_.size() << " parameters; zmin " << zMinRadPar_ << " cutoff "
177  << choiceType_ << ":" << nCutRadPar_ << ":" << fracAreaMin_ << " wafer width "
178  << waferSize_ << " separations " << waferSepar_ << " sectors " << sectors_ << ":"
179  << convertRadToDeg(alpha_) << ":" << cosAlpha_;
180  for (unsigned int k = 0; k < rad100to200_.size(); ++k)
181  edm::LogVerbatim("HGCalGeom") << "[" << k << "] 100-200 " << rad100to200_[k] << " 200-300 " << rad200to300_[k];
182 #endif
183  waferIndex_ = dbl_to_int(vArgs["WaferIndex"]);
184  waferTypes_ = dbl_to_int(vArgs["WaferTypes"]);
185 #ifdef EDM_ML_DEBUG
186  edm::LogVerbatim("HGCalGeom") << "waferTypes with " << waferTypes_.size() << " entries";
187  for (unsigned int k = 0; k < waferTypes_.size(); ++k)
188  edm::LogVerbatim("HGCalGeom") << "[" << k << "] " << waferIndex_[k] << " ("
189  << HGCalWaferIndex::waferLayer(waferIndex_[k]) << ", "
190  << HGCalWaferIndex::waferU(waferIndex_[k]) << ", "
191  << HGCalWaferIndex::waferV(waferIndex_[k]) << ") : " << waferTypes_[k];
192 #endif
193  slopeB_ = vArgs["SlopeBottom"];
194  zFrontB_ = vArgs["ZFrontBottom"];
195  rMinFront_ = vArgs["RMinFront"];
196  slopeT_ = vArgs["SlopeTop"];
197  zFrontT_ = vArgs["ZFrontTop"];
198  rMaxFront_ = vArgs["RMaxFront"];
199 #ifdef EDM_ML_DEBUG
200  for (unsigned int i = 0; i < slopeB_.size(); ++i)
201  edm::LogVerbatim("HGCalGeom") << "Bottom Block [" << i << "] Zmin " << zFrontB_[i] << " Rmin " << rMinFront_[i]
202  << " Slope " << slopeB_[i];
203  for (unsigned int i = 0; i < slopeT_.size(); ++i)
204  edm::LogVerbatim("HGCalGeom") << "Top Block [" << i << "] Zmin " << zFrontT_[i] << " Rmax " << rMaxFront_[i]
205  << " Slope " << slopeT_[i];
206 #endif
207  nameSpace_ = DDCurrentNamespace::ns();
208 #ifdef EDM_ML_DEBUG
209  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: NameSpace " << nameSpace_;
210 #endif
211 }
212 
214 // DDHGCalEEFileAlgo methods...
216 
218 #ifdef EDM_ML_DEBUG
219  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalEEFileAlgo...";
220  copies_.clear();
221 #endif
222  constructLayers(parent(), cpv);
223 #ifdef EDM_ML_DEBUG
224  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << copies_.size() << " different wafer copy numbers";
225  int k(0);
226  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
227  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
228  }
229  copies_.clear();
230  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalEEFileAlgo construction...";
231 #endif
232 }
233 
235 #ifdef EDM_ML_DEBUG
236  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: \t\tInside Layers";
237 #endif
238  double zi(zMinBlock_);
239  int laymin(0);
240  for (unsigned int i = 0; i < layers_.size(); i++) {
241  double zo = zi + layerThick_[i];
242  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
243  int laymax = laymin + layers_[i];
244  double zz = zi;
245  double thickTot(0);
246  for (int ly = laymin; ly < laymax; ++ly) {
247  int ii = layerType_[ly];
248  int copy = copyNumber_[ii];
249  double hthick = 0.5 * thick_[ii];
250  double rinB = HGCalGeomTools::radius(zo - tol1_, zFrontB_, rMinFront_, slopeB_);
251  zz += hthick;
252  thickTot += thick_[ii];
253 
254  std::string name = names_[ii] + std::to_string(copy);
255 #ifdef EDM_ML_DEBUG
256  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Layer " << ly << ":" << ii << " Front " << zi << ", "
257  << routF << " Back " << zo << ", " << rinB << " superlayer thickness "
258  << layerThick_[i];
259 #endif
260  DDName matName(DDSplit(materials_[ii]).first, DDSplit(materials_[ii]).second);
261  DDMaterial matter(matName);
262  DDLogicalPart glog;
263  if (layerSense_[ly] < 1) {
264  std::vector<double> pgonZ, pgonRin, pgonRout;
265  if (layerSense_[ly] == 0 || absorbMode_ == 0) {
266  double rmax = routF * cosAlpha_ - tol1_;
267  pgonZ.emplace_back(-hthick);
268  pgonZ.emplace_back(hthick);
269  pgonRin.emplace_back(rinB);
270  pgonRin.emplace_back(rinB);
271  pgonRout.emplace_back(rmax);
272  pgonRout.emplace_back(rmax);
273  } else {
274  HGCalGeomTools::radius(zz - hthick,
275  zz + hthick,
276  zFrontB_,
277  rMinFront_,
278  slopeB_,
279  zFrontT_,
280  rMaxFront_,
281  slopeT_,
282  -layerSense_[ly],
283  pgonZ,
284  pgonRin,
285  pgonRout);
286 #ifdef EDM_ML_DEBUG
287  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: z " << (zz - hthick) << ":" << (zz + hthick) << " with "
288  << pgonZ.size() << " palnes";
289  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec)
290  edm::LogVerbatim("HGCalGeom")
291  << "[" << isec << "] z " << pgonZ[isec] << " R " << pgonRin[isec] << ":" << pgonRout[isec];
292 #endif
293  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
294  pgonZ[isec] -= zz;
295  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1_;
296  }
297  }
298  DDSolid solid =
299  DDSolidFactory::polyhedra(DDName(name, nameSpace_), sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
300  glog = DDLogicalPart(solid.ddname(), matter, solid);
301 #ifdef EDM_ML_DEBUG
302  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << solid.name() << " polyhedra of " << sectors_
303  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
304  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size()
305  << " sections and filled with " << matName << ":" << &matter;
306  for (unsigned int k = 0; k < pgonZ.size(); ++k)
307  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << pgonZ[k] << " R " << pgonRin[k] << ":" << pgonRout[k];
308 #endif
309  } else {
310  double rins =
311  (sensitiveMode_ < 1) ? rinB : HGCalGeomTools::radius(zz + hthick - tol1_, zFrontB_, rMinFront_, slopeB_);
312  double routs =
313  (sensitiveMode_ < 1) ? routF : HGCalGeomTools::radius(zz - hthick, zFrontT_, rMaxFront_, slopeT_);
314  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rins, routs, 0.0, 2._pi);
315  glog = DDLogicalPart(solid.ddname(), matter, solid);
316 #ifdef EDM_ML_DEBUG
317  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << solid.name() << " Tubs made of " << matName << ":"
318  << &matter << " of dimensions " << rinB << ":" << rins << ", " << routF << ":"
319  << routs << ", " << hthick << ", 0.0, 360.0 and position " << glog.name()
320  << " number " << copy << ":" << layerCenter_[copy - firstLayer_];
321 #endif
322  positionSensitive(glog, rins, routs, zz, layerSense_[ly], (copy - firstLayer_), cpv);
323  }
324  DDTranslation r1(0, 0, zz);
325  DDRotation rot;
326  cpv.position(glog, module, copy, r1, rot);
327  ++copyNumber_[ii];
328 #ifdef EDM_ML_DEBUG
329  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.name() << " number " << copy << " positioned in "
330  << module.name() << " at " << r1 << " with " << rot;
331 #endif
332  zz += hthick;
333  } // End of loop over layers in a block
334  zi = zo;
335  laymin = laymax;
336  // Make consistency check of all the partitions of the block
337  if (std::abs(thickTot - layerThick_[i]) >= tol2_) {
338  if (thickTot > layerThick_[i]) {
339  edm::LogError("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " is smaller than " << thickTot
340  << ": thickness of all its components **** ERROR ****";
341  } else {
342  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " does not match with "
343  << thickTot << " of the components";
344  }
345  }
346  } // End of loop over blocks
347 }
348 
350  const DDLogicalPart& glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView& cpv) {
351  static const double sqrt3 = std::sqrt(3.0);
352  int layercenter = layerCenter_[layer];
353  double r = 0.5 * (waferSize_ + waferSepar_);
354  double R = 2.0 * r / sqrt3;
355  double dy = 0.75 * R;
356  int N = (int)(0.5 * rout / r) + 2;
357  const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
358 #ifdef EDM_ML_DEBUG
359  int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0), nin(0);
360  std::vector<int> ntype(6, 0);
361  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.ddname() << " rin:rout " << rin << ":" << rout
362  << " zpos " << zpos << " N " << N << " for maximum u, v; r " << r << " R " << R
363  << " dy " << dy << " Shift " << xyoff.first << ":" << xyoff.second << " WaferSize "
364  << (waferSize_ + waferSepar_);
365 #endif
366  for (int u = -N; u <= N; ++u) {
367  for (int v = -N; v <= N; ++v) {
368 #ifdef EDM_ML_DEBUG
369  int iu = std::abs(u);
370  int iv = std::abs(v);
371 #endif
372  int nr = 2 * v;
373  int nc = -2 * u + v;
374  double xpos = xyoff.first + nc * r;
375  double ypos = xyoff.second + nr * dy;
376  const auto& corner = HGCalGeomTools::waferCorner(xpos, ypos, r, R, rin, rout, false);
377 #ifdef EDM_ML_DEBUG
378  ++ntot;
379  if (((corner.first <= 0) && std::abs(u) < 5 && std::abs(v) < 5) || (std::abs(u) < 2 && std::abs(v) < 2)) {
380  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.ddname() << " R " << rin << ":" << rout
381  << "\n Z " << zpos << " LayerType " << layertype << " u " << u << " v " << v
382  << " with " << corner.first << " corners";
383  }
384 #endif
385  int indx = HGCalWaferIndex::waferIndex((layer + firstLayer_), u, v, false);
386  int type = HGCalWaferType::getType(indx, waferIndex_, waferTypes_);
387  if (corner.first > 0 && type >= 0) {
388  int copy = HGCalTypes::packTypeUV(type, u, v);
389 #ifdef EDM_ML_DEBUG
390  edm::LogVerbatim("HGCalGeom") << " DDHGCalHEFileAlgo: " << wafers_[type] << " number " << copy << " type "
391  << type << " layer:u:v:indx " << (layer + firstLayer_) << ":" << u << ":" << v
392  << ":" << indx;
393  if (iu > ium)
394  ium = iu;
395  if (iv > ivm)
396  ivm = iv;
397  kount++;
398  if (copies_.count(copy) == 0)
399  copies_.insert(copy);
400 #endif
401  if (corner.first == (int)(HGCalParameters::k_CornerSize)) {
402 #ifdef EDM_ML_DEBUG
403  if (iu > iumAll)
404  iumAll = iu;
405  if (iv > ivmAll)
406  ivmAll = iv;
407  ++nin;
408 #endif
409  DDTranslation tran(xpos, ypos, 0.0);
411  if (layertype > 1)
412  type += 3;
413  DDName name = DDName(DDSplit(wafers_[type]).first, DDSplit(wafers_[type]).second);
414  cpv.position(name, glog.ddname(), copy, tran, rotation);
415 #ifdef EDM_ML_DEBUG
416  ++ntype[type];
417  edm::LogVerbatim("HGCalGeom") << " DDHGCalEEFileAlgo: " << name << " number " << copy << " type " << layertype
418  << ":" << type << " positioned in " << glog.ddname() << " at " << tran
419  << " with " << rotation;
420 #endif
421  }
422  }
423  }
424  }
425 #ifdef EDM_ML_DEBUG
426  edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: Maximum # of u " << ium << ":" << iumAll << " # of v " << ivm
427  << ":" << ivmAll << " and " << nin << ":" << kount << ":" << ntot << " wafers ("
428  << ntype[0] << ":" << ntype[1] << ":" << ntype[2] << ":" << ntype[3] << ":" << ntype[4]
429  << ":" << ntype[5] << ") for " << glog.ddname() << " R " << rin << ":" << rout;
430 #endif
431 }
432 
433 DEFINE_EDM_PLUGIN(DDAlgorithmFactory, DDHGCalEEFileAlgo, "hgcal:DDHGCalEEFileAlgo");
DDHGCalEEFileAlgo::choiceType_
int choiceType_
Definition: DDHGCalEEFileAlgo.cc:75
DDHGCalEEFileAlgo::DDHGCalEEFileAlgo
DDHGCalEEFileAlgo()
Definition: DDHGCalEEFileAlgo.cc:92
DDHGCalEEFileAlgo::zFrontT_
std::vector< double > zFrontT_
Definition: DDHGCalEEFileAlgo.cc:85
PluginFactory.h
HGCalWaferIndex::waferV
static int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:42
DDHGCalEEFileAlgo::layerType_
std::vector< int > layerType_
Definition: DDHGCalEEFileAlgo.cc:63
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
mps_fire.i
i
Definition: mps_fire.py:428
geometryCSVtoXML.zz
zz
Definition: geometryCSVtoXML.py:19
MessageLogger.h
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
DDHGCalEEFileAlgo::wafers_
std::vector< std::string > wafers_
Definition: DDHGCalEEFileAlgo.cc:56
DDHGCalEEFileAlgo::zMinRadPar_
double zMinRadPar_
Definition: DDHGCalEEFileAlgo.cc:72
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
DDHGCalEEFileAlgo::initialize
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Definition: DDHGCalEEFileAlgo.cc:98
DDHGCalEEFileAlgo::firstLayer_
int firstLayer_
Definition: DDHGCalEEFileAlgo.cc:66
DDHGCalEEFileAlgo::absorbMode_
int absorbMode_
Definition: DDHGCalEEFileAlgo.cc:67
DDHGCalEEFileAlgo::constructLayers
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Definition: DDHGCalEEFileAlgo.cc:234
DDSplit.h
DDHGCalEEFileAlgo::nameSpace_
std::string nameSpace_
Definition: DDHGCalEEFileAlgo.cc:87
HGCalParameters::k_CornerSize
static constexpr uint32_t k_CornerSize
Definition: HGCalParameters.h:38
DDHGCalEEFileAlgo::zFrontB_
std::vector< double > zFrontB_
Definition: DDHGCalEEFileAlgo.cc:82
distTCMET_cfi.corner
corner
Definition: distTCMET_cfi.py:38
nin
int nin
Definition: CascadeWrapper.h:114
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
DDHGCalEEFileAlgo::layerSense_
std::vector< int > layerSense_
Definition: DDHGCalEEFileAlgo.cc:64
geant_units::operators
Definition: GeantUnits.h:18
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
DDHGCalEEFileAlgo::copies_
std::unordered_set< int > copies_
Definition: DDHGCalEEFileAlgo.cc:88
dqmdumpme.first
first
Definition: dqmdumpme.py:55
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
DDHGCalEEFileAlgo::sectors_
int sectors_
Definition: DDHGCalEEFileAlgo.cc:80
DDHGCalEEFileAlgo::waferIndex_
std::vector< int > waferIndex_
Definition: DDHGCalEEFileAlgo.cc:73
DDHGCalEEFileAlgo::execute
void execute(DDCompactView &cpv) override
Definition: DDHGCalEEFileAlgo.cc:217
DDHGCalEEFileAlgo::rad100to200_
std::vector< double > rad100to200_
Definition: DDHGCalEEFileAlgo.cc:70
DDHGCalEEFileAlgo::materials_
std::vector< std::string > materials_
Definition: DDHGCalEEFileAlgo.cc:57
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
DDHGCalEEFileAlgo::copyNumber_
std::vector< int > copyNumber_
Definition: DDHGCalEEFileAlgo.cc:60
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
DDHGCalEEFileAlgo::nCutRadPar_
int nCutRadPar_
Definition: DDHGCalEEFileAlgo.cc:76
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
DDHGCalEEFileAlgo
Definition: DDHGCalEEFileAlgo.cc:34
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
DDHGCalEEFileAlgo::geomTools_
HGCalGeomTools geomTools_
Definition: DDHGCalEEFileAlgo.cc:51
HGCalWaferType.h
N
#define N
Definition: blowfish.cc:9
DDSolidFactory::tubs
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
Definition: DDSolid.cc:653
DDSolid.h
DDHGCalEEFileAlgo::layerCenter_
std::vector< int > layerCenter_
Definition: DDHGCalEEFileAlgo.cc:65
HGCalWaferType::getType
int getType(double xpos, double ypos, double zpos)
Definition: HGCalWaferType.cc:35
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DDHGCalEEFileAlgo::waferSepar_
double waferSepar_
Definition: DDHGCalEEFileAlgo.cc:79
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
DDHGCalEEFileAlgo::slopeT_
std::vector< double > slopeT_
Definition: DDHGCalEEFileAlgo.cc:84
HGCalWaferIndex::waferU
static int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:37
DDHGCalEEFileAlgo::zMinBlock_
double zMinBlock_
Definition: DDHGCalEEFileAlgo.cc:69
HGCalTypes::packTypeUV
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDHGCalEEFileAlgo::waferTypes_
std::vector< int > waferTypes_
Definition: DDHGCalEEFileAlgo.cc:74
DDHGCalEEFileAlgo::rad200to300_
std::vector< double > rad200to300_
Definition: DDHGCalEEFileAlgo.cc:71
DDHGCalEEFileAlgo::sensitiveMode_
int sensitiveMode_
Definition: DDHGCalEEFileAlgo.cc:68
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
EgHLTOffHistBins_cfi.nr
nr
Definition: EgHLTOffHistBins_cfi.py:4
DDBase::ddname
const N & ddname() const
Definition: DDBase.h:61
GeantUnits.h
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
edmplugin::PluginFactory
Definition: PluginFactory.h:34
DDHGCalEEFileAlgo::rMinFront_
std::vector< double > rMinFront_
Definition: DDHGCalEEFileAlgo.cc:83
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
DDHGCalEEFileAlgo::positionSensitive
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
Definition: DDHGCalEEFileAlgo.cc:349
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
DDutils.h
DDHGCalEEFileAlgo::names_
std::vector< std::string > names_
Definition: DDHGCalEEFileAlgo.cc:58
DDHGCalEEFileAlgo::waferSize_
double waferSize_
Definition: DDHGCalEEFileAlgo.cc:78
HGCalGeomTools
Definition: HGCalGeomTools.h:8
DDHGCalEEFileAlgo::thick_
std::vector< double > thick_
Definition: DDHGCalEEFileAlgo.cc:59
PVValHelper::dy
Definition: PVValidationHelpers.h:49
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
DDLogicalPart.h
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
DDHGCalEEFileAlgo::rMaxFront_
std::vector< double > rMaxFront_
Definition: DDHGCalEEFileAlgo.cc:86
alignCSCRings.r
r
Definition: alignCSCRings.py:93
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
DDHGCalEEFileAlgo::layers_
std::vector< int > layers_
Definition: DDHGCalEEFileAlgo.cc:61
DDHGCalEEFileAlgo::slopeB_
std::vector< double > slopeB_
Definition: DDHGCalEEFileAlgo.cc:81
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
DDHGCalEEFileAlgo::cosAlpha_
double cosAlpha_
Definition: DDHGCalEEFileAlgo.cc:89
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
DDCurrentNamespace::ns
static std::string & ns()
Definition: DDCurrentNamespace.cc:3
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
DDRotation
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
DDHGCalEEFileAlgo::layerThick_
std::vector< double > layerThick_
Definition: DDHGCalEEFileAlgo.cc:62
initialize
static AlgebraicMatrix initialize()
Definition: BeamSpotTransientTrackingRecHit.cc:24
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
HGCalTypes.h
DDHGCalEEFileAlgo::fracAreaMin_
double fracAreaMin_
Definition: DDHGCalEEFileAlgo.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
cuy.ii
ii
Definition: cuy.py:590
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