CMS 3D CMS Logo

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