CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
DDHGCalHEFileAlgo Class Reference
Inheritance diagram for DDHGCalHEFileAlgo:

Public Member Functions

 DDHGCalHEFileAlgo ()
 
void execute (DDCompactView &cpv) override
 
void initialize (const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
 

Protected Member Functions

void constructLayers (const DDLogicalPart &, DDCompactView &cpv)
 
void positionMix (const DDLogicalPart &glog, const std::string &name, int copy, double thick, const DDMaterial &matter, double rin, double rmid, double routF, double zz, DDCompactView &cpv)
 
void positionSensitive (const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
 

Private Attributes

int absorbMode_
 
double alpha_
 
int choiceType_
 
std::unordered_set< int > copies_
 
std::vector< int > copyNumber_
 
std::vector< int > copyNumberBot_
 
std::vector< int > copyNumberTop_
 
double cosAlpha_
 
int firstLayer_
 
double fracAreaMin_
 
HGCalGeomTools geomTools_
 
std::vector< int > layerCenter_
 
std::vector< int > layers_
 
std::vector< int > layerSense_
 
std::vector< int > layerSenseBot_
 
std::vector< double > layerThick_
 
std::vector< double > layerThickBot_
 
std::vector< double > layerThickTop_
 
std::vector< int > layerType_
 
std::vector< int > layerTypeBot_
 
std::vector< int > layerTypeTop_
 
std::vector< std::string > materials_
 
std::vector< std::string > materialsBot_
 
std::vector< std::string > materialsTop_
 
std::vector< std::string > names_
 
std::vector< std::string > namesBot_
 
std::string nameSpace_
 
std::vector< std::string > namesTop_
 
int nCutRadPar_
 
std::vector< double > rad100to200_
 
std::vector< double > rad200to300_
 
std::vector< double > rMaxFront_
 
std::vector< double > rMinFront_
 
std::vector< double > rMixLayer_
 
int sectors_
 
int sensitiveMode_
 
std::vector< double > slopeB_
 
std::vector< double > slopeT_
 
std::vector< double > thick_
 
std::vector< int > waferIndex_
 
std::vector< std::string > wafers_
 
double waferSepar_
 
double waferSize_
 
std::vector< int > waferTypes_
 
std::vector< double > zFrontB_
 
std::vector< double > zFrontT_
 
double zMinBlock_
 
double zMinRadPar_
 

Static Private Attributes

static constexpr double tol1_ = 0.01
 
static constexpr double tol2_ = 0.00001
 

Detailed Description

Definition at line 33 of file DDHGCalHEFileAlgo.cc.

Constructor & Destructor Documentation

◆ DDHGCalHEFileAlgo()

DDHGCalHEFileAlgo::DDHGCalHEFileAlgo ( )

Definition at line 114 of file DDHGCalHEFileAlgo.cc.

114  {
115 #ifdef EDM_ML_DEBUG
116  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Creating an instance";
117 #endif
118 }

Member Function Documentation

◆ constructLayers()

void DDHGCalHEFileAlgo::constructLayers ( const DDLogicalPart module,
DDCompactView cpv 
)
protected

Definition at line 289 of file DDHGCalHEFileAlgo.cc.

289  {
290 #ifdef EDM_ML_DEBUG
291  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: \t\tInside Layers";
292 #endif
293  double zi(zMinBlock_);
294  int laymin(0);
295  for (unsigned int i = 0; i < layers_.size(); i++) {
296  double zo = zi + layerThick_[i];
297  double routF = HGCalGeomTools::radius(zi, zFrontT_, rMaxFront_, slopeT_);
298  int laymax = laymin + layers_[i];
299  double zz = zi;
300  double thickTot(0);
301  for (int ly = laymin; ly < laymax; ++ly) {
302  int ii = layerType_[ly];
303  int copy = copyNumber_[ii];
304  double hthick = 0.5 * thick_[ii];
305  double rinB = HGCalGeomTools::radius(zo, zFrontB_, rMinFront_, slopeB_);
306  zz += hthick;
307  thickTot += thick_[ii];
308 
309  std::string name = names_[ii] + std::to_string(copy);
310 #ifdef EDM_ML_DEBUG
311  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Layer " << ly << ":" << ii << " Front " << zi << ", "
312  << routF << " Back " << zo << ", " << rinB << " superlayer thickness "
313  << layerThick_[i];
314 #endif
316  DDMaterial matter(matName);
317  DDLogicalPart glog;
318  if (layerSense_[ly] < 1) {
319  std::vector<double> pgonZ, pgonRin, pgonRout;
320  if (layerSense_[ly] == 0 || absorbMode_ == 0) {
321  double rmax =
323  pgonZ.emplace_back(-hthick);
324  pgonZ.emplace_back(hthick);
325  pgonRin.emplace_back(rinB);
326  pgonRin.emplace_back(rinB);
327  pgonRout.emplace_back(rmax);
328  pgonRout.emplace_back(rmax);
329  } else {
330  HGCalGeomTools::radius(zz - hthick,
331  zz + hthick,
332  zFrontB_,
333  rMinFront_,
334  slopeB_,
335  zFrontT_,
336  rMaxFront_,
337  slopeT_,
338  -layerSense_[ly],
339  pgonZ,
340  pgonRin,
341  pgonRout);
342  for (unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
343  pgonZ[isec] -= zz;
344  pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1_;
345  }
346  }
347  DDSolid solid =
348  DDSolidFactory::polyhedra(DDName(name, nameSpace_), sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
349  glog = DDLogicalPart(solid.ddname(), matter, solid);
350 #ifdef EDM_ML_DEBUG
351  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " polyhedra of " << sectors_
352  << " sectors covering " << convertRadToDeg(-alpha_) << ":"
353  << convertRadToDeg(-alpha_ + 2._pi) << " with " << pgonZ.size() << " sections";
354  for (unsigned int k = 0; k < pgonZ.size(); ++k)
355  edm::LogVerbatim("HGCalGeom") << "[" << k << "] z " << pgonZ[k] << " R " << pgonRin[k] << ":" << pgonRout[k];
356 #endif
357  } else {
358  double rins = (sensitiveMode_ < 1) ? rinB : HGCalGeomTools::radius(zz + hthick, zFrontB_, rMinFront_, slopeB_);
359  double routs =
360  (sensitiveMode_ < 1) ? routF : HGCalGeomTools::radius(zz - hthick, zFrontT_, rMaxFront_, slopeT_);
361  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rins, routs, 0.0, 2._pi);
362  glog = DDLogicalPart(solid.ddname(), matter, solid);
363 #ifdef EDM_ML_DEBUG
364  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matName
365  << " of dimensions " << rinB << ":" << rins << ", " << routF << ":" << routs
366  << ", " << hthick << ", 0.0, 360.0 and positioned in: " << glog.name()
367  << " number " << copy;
368 #endif
369  positionMix(glog, name, copy, thick_[ii], matter, rins, rMixLayer_[i], routs, zz, cpv);
370  }
371  DDTranslation r1(0, 0, zz);
372  DDRotation rot;
373  cpv.position(glog, module, copy, r1, rot);
374  ++copyNumber_[ii];
375 #ifdef EDM_ML_DEBUG
376  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog.name() << " number " << copy << " positioned in "
377  << module.name() << " at " << r1 << " with " << rot;
378 #endif
379  zz += hthick;
380  } // End of loop over layers in a block
381  zi = zo;
382  laymin = laymax;
383  // Make consistency check of all the partitions of the block
384  if (std::abs(thickTot - layerThick_[i]) >= tol2_) {
385  if (thickTot > layerThick_[i]) {
386  edm::LogError("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " is smaller than " << thickTot
387  << ": thickness of all its components **** ERROR ****";
388  } else {
389  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << layerThick_[i] << " does not match with "
390  << thickTot << " of the components";
391  }
392  }
393  } // End of loop over blocks
394 }

References funct::abs(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), dqmdumpme::first, mps_fire::i, cuy::ii, dqmdumpme::k, min(), Skims_PA_cff::name, DDBase< N, C >::name(), DDSolidFactory::polyhedra(), DDCompactView::position(), diffTwoXMLs::r1, HGCalGeomTools::radius(), makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, DDSolidFactory::tubs(), and geometryCSVtoXML::zz.

◆ execute()

void DDHGCalHEFileAlgo::execute ( DDCompactView cpv)
override

Definition at line 272 of file DDHGCalHEFileAlgo.cc.

272  {
273 #ifdef EDM_ML_DEBUG
274  edm::LogVerbatim("HGCalGeom") << "==>> Constructing DDHGCalHEFileAlgo...";
275  copies_.clear();
276 #endif
277  constructLayers(parent(), cpv);
278 #ifdef EDM_ML_DEBUG
279  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << copies_.size() << " different wafer copy numbers";
280  int k(0);
281  for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++k) {
282  edm::LogVerbatim("HGCalGeom") << "Copy [" << k << "] : " << (*itr);
283  }
284  copies_.clear();
285  edm::LogVerbatim("HGCalGeom") << "<<== End of DDHGCalHEFileAlgo construction...";
286 #endif
287 }

References DDHGCalGeom::constructLayers(), dqmdumpme::k, and class-composition::parent.

◆ initialize()

void DDHGCalHEFileAlgo::initialize ( const DDNumericArguments nArgs,
const DDVectorArguments vArgs,
const DDMapArguments mArgs,
const DDStringArguments sArgs,
const DDStringVectorArguments vsArgs 
)
override

Definition at line 120 of file DDHGCalHEFileAlgo.cc.

124  {
125  wafers_ = vsArgs["WaferNames"];
126 #ifdef EDM_ML_DEBUG
127  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << wafers_.size() << " wafers";
128  for (unsigned int i = 0; i < wafers_.size(); ++i)
129  edm::LogVerbatim("HGCalGeom") << "Wafer[" << i << "] " << wafers_[i];
130 #endif
131  materials_ = vsArgs["MaterialNames"];
132  names_ = vsArgs["VolumeNames"];
133  thick_ = vArgs["Thickness"];
134  copyNumber_.resize(materials_.size(), 1);
135 #ifdef EDM_ML_DEBUG
136  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << materials_.size() << " types of volumes";
137  for (unsigned int i = 0; i < names_.size(); ++i)
138  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << names_[i] << " of thickness " << thick_[i]
139  << " filled with " << materials_[i] << " first copy number " << copyNumber_[i];
140 #endif
141  layers_ = dbl_to_int(vArgs["Layers"]);
142  layerThick_ = vArgs["LayerThick"];
143  rMixLayer_ = vArgs["LayerRmix"];
144 #ifdef EDM_ML_DEBUG
145  edm::LogVerbatim("HGCalGeom") << "There are " << layers_.size() << " blocks";
146  for (unsigned int i = 0; i < layers_.size(); ++i)
147  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] of thickness " << layerThick_[i] << " Rmid " << rMixLayer_[i]
148  << " with " << layers_[i] << " layers";
149 #endif
150  layerType_ = dbl_to_int(vArgs["LayerType"]);
151  layerSense_ = dbl_to_int(vArgs["LayerSense"]);
152  firstLayer_ = (int)(nArgs["FirstLayer"]);
153  absorbMode_ = (int)(nArgs["AbsorberMode"]);
154  sensitiveMode_ = (int)(nArgs["SensitiveMode"]);
155 #ifdef EDM_ML_DEBUG
156  edm::LogVerbatim("HGCalGeom") << "First Layer " << firstLayer_ << " and "
157  << "Absober:Sensitive mode " << absorbMode_ << ":" << sensitiveMode_;
158 #endif
159  layerCenter_ = dbl_to_int(vArgs["LayerCenter"]);
160 #ifdef EDM_ML_DEBUG
161  for (unsigned int i = 0; i < layerCenter_.size(); ++i)
162  edm::LogVerbatim("HGCalGeom") << "LayerCenter [" << i << "] " << layerCenter_[i];
163 #endif
164  if (firstLayer_ > 0) {
165  for (unsigned int i = 0; i < layerType_.size(); ++i) {
166  if (layerSense_[i] > 0) {
167  int ii = layerType_[i];
169 #ifdef EDM_ML_DEBUG
170  edm::LogVerbatim("HGCalGeom") << "First copy number for layer type " << i << ":" << ii << " with "
171  << materials_[ii] << " changed to " << copyNumber_[ii];
172 #endif
173  break;
174  }
175  }
176  } else {
177  firstLayer_ = 1;
178  }
179 #ifdef EDM_ML_DEBUG
180  edm::LogVerbatim("HGCalGeom") << "There are " << layerType_.size() << " layers";
181  for (unsigned int i = 0; i < layerType_.size(); ++i)
182  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerType_[i] << " sensitive class "
183  << layerSense_[i];
184 #endif
185  materialsTop_ = vsArgs["TopMaterialNames"];
186  namesTop_ = vsArgs["TopVolumeNames"];
187  layerThickTop_ = vArgs["TopLayerThickness"];
188  layerTypeTop_ = dbl_to_int(vArgs["TopLayerType"]);
189  copyNumberTop_.resize(materialsTop_.size(), 1);
190 #ifdef EDM_ML_DEBUG
191  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << materialsTop_.size() << " types of volumes in the top part";
192  for (unsigned int i = 0; i < materialsTop_.size(); ++i)
193  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << namesTop_[i] << " of thickness " << layerThickTop_[i]
194  << " filled with " << materialsTop_[i] << " first copy number " << copyNumberTop_[i];
195  edm::LogVerbatim("HGCalGeom") << "There are " << layerTypeTop_.size() << " layers in the top part";
196  for (unsigned int i = 0; i < layerTypeTop_.size(); ++i)
197  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerTypeTop_[i];
198 #endif
199  materialsBot_ = vsArgs["BottomMaterialNames"];
200  namesBot_ = vsArgs["BottomVolumeNames"];
201  layerTypeBot_ = dbl_to_int(vArgs["BottomLayerType"]);
202  layerSenseBot_ = dbl_to_int(vArgs["BottomLayerSense"]);
203  layerThickBot_ = vArgs["BottomLayerThickness"];
204  copyNumberBot_.resize(materialsBot_.size(), 1);
205 #ifdef EDM_ML_DEBUG
206  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << materialsBot_.size()
207  << " types of volumes in the bottom part";
208  for (unsigned int i = 0; i < materialsBot_.size(); ++i)
209  edm::LogVerbatim("HGCalGeom") << "Volume [" << i << "] " << namesBot_[i] << " of thickness " << layerThickBot_[i]
210  << " filled with " << materialsBot_[i] << " first copy number " << copyNumberBot_[i];
211  edm::LogVerbatim("HGCalGeom") << "There are " << layerTypeBot_.size() << " layers in the bottom part";
212  for (unsigned int i = 0; i < layerTypeBot_.size(); ++i)
213  edm::LogVerbatim("HGCalGeom") << "Layer [" << i << "] with material type " << layerTypeBot_[i]
214  << " sensitive class " << layerSenseBot_[i];
215 #endif
216  zMinBlock_ = nArgs["zMinBlock"];
217  rad100to200_ = vArgs["rad100to200"];
218  rad200to300_ = vArgs["rad200to300"];
219  zMinRadPar_ = nArgs["zMinForRadPar"];
220  choiceType_ = (int)(nArgs["choiceType"]);
221  nCutRadPar_ = (int)(nArgs["nCornerCut"]);
222  fracAreaMin_ = nArgs["fracAreaMin"];
223  waferSize_ = nArgs["waferSize"];
224  waferSepar_ = nArgs["SensorSeparation"];
225  sectors_ = (int)(nArgs["Sectors"]);
226  alpha_ = (1._pi) / sectors_;
227  cosAlpha_ = cos(alpha_);
228 #ifdef EDM_ML_DEBUG
229  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: zStart " << zMinBlock_
230  << " radius for wafer type separation uses " << rad100to200_.size()
231  << " parameters; zmin " << zMinRadPar_ << " cutoff " << choiceType_ << ":"
232  << nCutRadPar_ << ":" << fracAreaMin_ << " wafer width " << waferSize_
233  << " separations " << waferSepar_ << " sectors " << sectors_ << ":"
234  << convertRadToDeg(alpha_) << ":" << cosAlpha_;
235  for (unsigned int k = 0; k < rad100to200_.size(); ++k)
236  edm::LogVerbatim("HGCalGeom") << "[" << k << "] 100-200 " << rad100to200_[k] << " 200-300 " << rad200to300_[k];
237 #endif
238  waferIndex_ = dbl_to_int(vArgs["WaferIndex"]);
239  waferTypes_ = dbl_to_int(vArgs["WaferTypes"]);
240 #ifdef EDM_ML_DEBUG
241  edm::LogVerbatim("HGCalGeom") << "waferTypes with " << waferTypes_.size() << " entries";
242  for (unsigned int k = 0; k < waferTypes_.size(); ++k)
243  edm::LogVerbatim("HGCalGeom") << "[" << k << "] " << waferIndex_[k] << " ("
247 #endif
248  slopeB_ = vArgs["SlopeBottom"];
249  zFrontB_ = vArgs["ZFrontBottom"];
250  rMinFront_ = vArgs["RMinFront"];
251  slopeT_ = vArgs["SlopeTop"];
252  zFrontT_ = vArgs["ZFrontTop"];
253  rMaxFront_ = vArgs["RMaxFront"];
254 #ifdef EDM_ML_DEBUG
255  for (unsigned int i = 0; i < slopeB_.size(); ++i)
256  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] Zmin " << zFrontB_[i] << " Rmin " << rMinFront_[i]
257  << " Slope " << slopeB_[i];
258  for (unsigned int i = 0; i < slopeT_.size(); ++i)
259  edm::LogVerbatim("HGCalGeom") << "Block [" << i << "] Zmin " << zFrontT_[i] << " Rmax " << rMaxFront_[i]
260  << " Slope " << slopeT_[i];
261 #endif
263 #ifdef EDM_ML_DEBUG
264  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: NameSpace " << nameSpace_;
265 #endif
266 }

References angle_units::operators::convertRadToDeg(), funct::cos(), dbl_to_int(), mps_fire::i, cuy::ii, createfilelist::int, dqmdumpme::k, DDCurrentNamespace::ns(), HGCalWaferIndex::waferLayer(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().

◆ positionMix()

void DDHGCalHEFileAlgo::positionMix ( const DDLogicalPart glog,
const std::string &  name,
int  copy,
double  thick,
const DDMaterial matter,
double  rin,
double  rmid,
double  routF,
double  zz,
DDCompactView cpv 
)
protected

Definition at line 396 of file DDHGCalHEFileAlgo.cc.

405  {
406  DDLogicalPart glog1;
407  DDTranslation tran;
408  DDRotation rot;
409  for (unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
410  int ii = layerTypeTop_[ly];
411  copyNumberTop_[ii] = copyM;
412  }
413  for (unsigned int ly = 0; ly < layerTypeBot_.size(); ++ly) {
414  int ii = layerTypeBot_[ly];
415  copyNumberBot_[ii] = copyM;
416  }
417  double hthick = 0.5 * thick;
418  // Make the top part first
419  std::string name = nameM + "Top";
420  DDSolid solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rmid, rout, 0.0, 2._pi);
421  glog1 = DDLogicalPart(solid.ddname(), matter, solid);
422 #ifdef EDM_ML_DEBUG
423  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matter.name()
424  << " of dimensions " << rmid << ", " << rout << ", " << hthick << ", 0.0, 360.0";
425 #endif
426  cpv.position(glog1, glog, 1, tran, rot);
427 #ifdef EDM_ML_DEBUG
428  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
429  << " at " << tran << " with " << rot;
430 #endif
431  double thickTot(0), zpos(-hthick);
432  for (unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
433  int ii = layerTypeTop_[ly];
434  int copy = copyNumberTop_[ii];
435  double hthickl = 0.5 * layerThickTop_[ii];
436  thickTot += layerThickTop_[ii];
437  name = namesTop_[ii] + std::to_string(copy);
438 #ifdef EDM_ML_DEBUG
439  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Layer " << ly << ":" << ii << " R " << rmid << ":" << rout
440  << " Thick " << layerThickTop_[ii];
441 #endif
443  DDMaterial matter1(matName);
444  solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthickl, rmid, rout, 0.0, 2._pi);
445  DDLogicalPart glog2 = DDLogicalPart(solid.ddname(), matter1, solid);
446 #ifdef EDM_ML_DEBUG
447  double eta1 = -log(tan(0.5 * atan(rmid / zz)));
448  double eta2 = -log(tan(0.5 * atan(rout / zz)));
449  edm::LogVerbatim("HGCalGeom") << name << " z|rin|rout " << zz << ":" << rmid << ":" << rout << " eta " << eta1
450  << ":" << eta2;
451  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matName
452  << " of dimensions " << rmid << ", " << rout << ", " << hthickl << ", 0.0, 360.0";
453 #endif
454  zpos += hthickl;
455  DDTranslation r1(0, 0, zpos);
456  cpv.position(glog2, glog1, copy, r1, rot);
457 #ifdef EDM_ML_DEBUG
458  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Position " << glog2.name() << " number " << copy << " in "
459  << glog1.name() << " at " << r1 << " with " << rot;
460 #endif
461  ++copyNumberTop_[ii];
462  zpos += hthickl;
463  }
464  if (std::abs(thickTot - thick) >= tol2_) {
465  if (thickTot > thick) {
466  edm::LogError("HGCalGeom") << "Thickness of the partition " << thick << " is smaller than " << thickTot
467  << ": thickness of all its components in the top part **** ERROR ****";
468  } else {
469  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << thick << " does not match with " << thickTot
470  << " of the components in top part";
471  }
472  }
473 
474  // Make the bottom part next
475  name = nameM + "Bottom";
476  solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthick, rin, rmid, 0.0, 2._pi);
477  glog1 = DDLogicalPart(solid.ddname(), matter, solid);
478 #ifdef EDM_ML_DEBUG
479  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matter.name()
480  << " of dimensions " << rin << ", " << rmid << ", " << hthick << ", 0.0, 360.0";
481 #endif
482  cpv.position(glog1, glog, 1, tran, rot);
483 #ifdef EDM_ML_DEBUG
484  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
485  << " at " << tran << " with " << rot;
486 #endif
487  thickTot = 0;
488  zpos = -hthick;
489  for (unsigned int ly = 0; ly < layerTypeBot_.size(); ++ly) {
490  int ii = layerTypeBot_[ly];
491  int copy = copyNumberBot_[ii];
492  double hthickl = 0.5 * layerThickBot_[ii];
493  thickTot += layerThickBot_[ii];
494  name = namesBot_[ii] + std::to_string(copy);
495 #ifdef EDM_ML_DEBUG
496  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Layer " << ly << ":" << ii << " R " << rin << ":" << rmid
497  << " Thick " << layerThickBot_[ii];
498 #endif
500  DDMaterial matter1(matName);
501  solid = DDSolidFactory::tubs(DDName(name, nameSpace_), hthickl, rin, rmid, 0.0, 2._pi);
502  DDLogicalPart glog2 = DDLogicalPart(solid.ddname(), matter1, solid);
503 #ifdef EDM_ML_DEBUG
504  double eta1 = -log(tan(0.5 * atan(rin / zz)));
505  double eta2 = -log(tan(0.5 * atan(rmid / zz)));
506  edm::LogVerbatim("HGCalGeom") << name << " z|rin|rout " << zz << ":" << rin << ":" << rmid << " eta " << eta1 << ":"
507  << eta2;
508  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << solid.name() << " Tubs made of " << matName
509  << " of dimensions " << rin << ", " << rmid << ", " << hthickl << ", 0.0, 360.0";
510 #endif
511  zpos += hthickl;
512  DDTranslation r1(0, 0, zpos);
513  cpv.position(glog2, glog1, copy, r1, rot);
514 #ifdef EDM_ML_DEBUG
515  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Position " << glog2.name() << " number " << copy << " in "
516  << glog1.name() << " at " << r1 << " with " << rot;
517 #endif
518  if (layerSenseBot_[ly] != 0) {
519 #ifdef EDM_ML_DEBUG
520  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: z " << (zz + zpos) << " Center " << copy << ":"
521  << (copy - firstLayer_) << ":" << layerCenter_[copy - firstLayer_];
522 #endif
523  positionSensitive(glog2, rin, rmid, zz + zpos, layerSenseBot_[ly], (copy - firstLayer_), cpv);
524  }
525  zpos += hthickl;
526  ++copyNumberBot_[ii];
527  }
528  if (std::abs(thickTot - thick) >= tol2_) {
529  if (thickTot > thick) {
530  edm::LogError("HGCalGeom") << "Thickness of the partition " << thick << " is smaller than " << thickTot
531  << ": thickness of all its components in the top part **** ERROR ****";
532  } else {
533  edm::LogWarning("HGCalGeom") << "Thickness of the partition " << thick << " does not match with " << thickTot
534  << " of the components in top part";
535  }
536  }
537 }

References funct::abs(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), HLT_FULL_cff::eta1, HLT_FULL_cff::eta2, dqmdumpme::first, cuy::ii, dqm-mbProfile::log, Skims_PA_cff::name, DDBase< N, C >::name(), DDCompactView::position(), diffTwoXMLs::r1, makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, funct::tan(), DDSolidFactory::tubs(), and geometryCSVtoXML::zz.

◆ positionSensitive()

void DDHGCalHEFileAlgo::positionSensitive ( const DDLogicalPart glog,
double  rin,
double  rout,
double  zpos,
int  layertype,
int  layer,
DDCompactView cpv 
)
protected

Definition at line 539 of file DDHGCalHEFileAlgo.cc.

540  {
541  static const double sqrt3 = std::sqrt(3.0);
542  int layercenter = layerCenter_[layer];
543  double r = 0.5 * (waferSize_ + waferSepar_);
544  double R = 2.0 * r / sqrt3;
545  double dy = 0.75 * R;
546  int N = (int)(0.5 * rout / r) + 2;
547  const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
548 #ifdef EDM_ML_DEBUG
549  int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0), nin(0);
550  std::vector<int> ntype(6, 0);
551  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog.ddname() << " rin:rout " << rin << ":" << rout
552  << " zpos " << zpos << " N " << N << " for maximum u, v Offset; Shift " << xyoff.first
553  << ":" << xyoff.second << " WaferSize " << (waferSize_ + waferSepar_);
554 #endif
555  for (int u = -N; u <= N; ++u) {
556  for (int v = -N; v <= N; ++v) {
557 #ifdef EDM_ML_DEBUG
558  int iu = std::abs(u);
559  int iv = std::abs(v);
560 #endif
561  int nr = 2 * v;
562  int nc = -2 * u + v;
563  double xpos = xyoff.first + nc * r;
564  double ypos = xyoff.second + nr * dy;
565  const auto& corner = HGCalGeomTools::waferCorner(xpos, ypos, r, R, rin, rout, false);
566 #ifdef EDM_ML_DEBUG
567  ++ntot;
568 #endif
569  int indx = HGCalWaferIndex::waferIndex((layer + firstLayer_), u, v, false);
571  if (corner.first > 0 && type >= 0) {
572  int copy = HGCalTypes::packTypeUV(type, u, v);
573 #ifdef EDM_ML_DEBUG
574  edm::LogVerbatim("HGCalGeom") << " DDHGCalHEFileAlgo: " << wafers_[type] << " number " << copy << " type "
575  << type << " layer:u:v:indx " << (layer + firstLayer_) << ":" << u << ":" << v
576  << ":" << indx;
577  if (iu > ium)
578  ium = iu;
579  if (iv > ivm)
580  ivm = iv;
581  kount++;
582  if (copies_.count(copy) == 0)
583  copies_.insert(copy);
584 #endif
585  if (corner.first == (int)(HGCalParameters::k_CornerSize)) {
586 #ifdef EDM_ML_DEBUG
587  if (iu > iumAll)
588  iumAll = iu;
589  if (iv > ivmAll)
590  ivmAll = iv;
591  ++nin;
592 #endif
593  DDTranslation tran(xpos, ypos, 0.0);
595  if (layertype > 1)
596  type += 3;
598  cpv.position(name, glog.ddname(), copy, tran, rotation);
599 #ifdef EDM_ML_DEBUG
600  ++ntype[type];
601  edm::LogVerbatim("HGCalGeom") << " DDHGCalHEFileAlgo: " << name << " number " << copy << " type " << layertype
602  << ":" << type << " positioned in " << glog.ddname() << " at " << tran
603  << " with " << rotation;
604 #endif
605  }
606  }
607  }
608  }
609 #ifdef EDM_ML_DEBUG
610  edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Maximum # of u " << ium << ":" << iumAll << " # of v " << ivm
611  << ":" << ivmAll << " and " << nin << ":" << kount << ":" << ntot << " wafers ("
612  << ntype[0] << ":" << ntype[1] << ":" << ntype[2] << ":" << ntype[3] << ":" << ntype[4]
613  << ":" << ntype[5] << ") for " << glog.ddname() << " R " << rin << ":" << rout;
614 #endif
615 }

References funct::abs(), filterCSVwithJSON::copy, distTCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dy, dqmdumpme::first, HGCalWaferType::getType(), createfilelist::int, HGCalParameters::k_CornerSize, N, Skims_PA_cff::name, nin, EgHLTOffHistBins_cfi::nr, HGCalTypes::packTypeUV(), DDCompactView::position(), dttmaxenums::R, alignCSCRings::r, idealTransformation::rotation, edm::second(), mathSSE::sqrt(), findQualityFiles::v, HGCalGeomTools::waferCorner(), and HGCalWaferIndex::waferIndex().

Member Data Documentation

◆ absorbMode_

int DDHGCalHEFileAlgo::absorbMode_
private

Definition at line 76 of file DDHGCalHEFileAlgo.cc.

◆ alpha_

double DDHGCalHEFileAlgo::alpha_
private

Definition at line 111 of file DDHGCalHEFileAlgo.cc.

◆ choiceType_

int DDHGCalHEFileAlgo::choiceType_
private

Definition at line 97 of file DDHGCalHEFileAlgo.cc.

◆ copies_

std::unordered_set<int> DDHGCalHEFileAlgo::copies_
private

Definition at line 110 of file DDHGCalHEFileAlgo.cc.

◆ copyNumber_

std::vector<int> DDHGCalHEFileAlgo::copyNumber_
private

Definition at line 69 of file DDHGCalHEFileAlgo.cc.

◆ copyNumberBot_

std::vector<int> DDHGCalHEFileAlgo::copyNumberBot_
private

Definition at line 87 of file DDHGCalHEFileAlgo.cc.

◆ copyNumberTop_

std::vector<int> DDHGCalHEFileAlgo::copyNumberTop_
private

Definition at line 82 of file DDHGCalHEFileAlgo.cc.

◆ cosAlpha_

double DDHGCalHEFileAlgo::cosAlpha_
private

Definition at line 111 of file DDHGCalHEFileAlgo.cc.

◆ firstLayer_

int DDHGCalHEFileAlgo::firstLayer_
private

Definition at line 75 of file DDHGCalHEFileAlgo.cc.

◆ fracAreaMin_

double DDHGCalHEFileAlgo::fracAreaMin_
private

Definition at line 99 of file DDHGCalHEFileAlgo.cc.

◆ geomTools_

HGCalGeomTools DDHGCalHEFileAlgo::geomTools_
private

Definition at line 60 of file DDHGCalHEFileAlgo.cc.

◆ layerCenter_

std::vector<int> DDHGCalHEFileAlgo::layerCenter_
private

Definition at line 89 of file DDHGCalHEFileAlgo.cc.

◆ layers_

std::vector<int> DDHGCalHEFileAlgo::layers_
private

Definition at line 70 of file DDHGCalHEFileAlgo.cc.

◆ layerSense_

std::vector<int> DDHGCalHEFileAlgo::layerSense_
private

Definition at line 74 of file DDHGCalHEFileAlgo.cc.

◆ layerSenseBot_

std::vector<int> DDHGCalHEFileAlgo::layerSenseBot_
private

Definition at line 88 of file DDHGCalHEFileAlgo.cc.

◆ layerThick_

std::vector<double> DDHGCalHEFileAlgo::layerThick_
private

Definition at line 71 of file DDHGCalHEFileAlgo.cc.

◆ layerThickBot_

std::vector<double> DDHGCalHEFileAlgo::layerThickBot_
private

Definition at line 85 of file DDHGCalHEFileAlgo.cc.

◆ layerThickTop_

std::vector<double> DDHGCalHEFileAlgo::layerThickTop_
private

Definition at line 80 of file DDHGCalHEFileAlgo.cc.

◆ layerType_

std::vector<int> DDHGCalHEFileAlgo::layerType_
private

Definition at line 73 of file DDHGCalHEFileAlgo.cc.

◆ layerTypeBot_

std::vector<int> DDHGCalHEFileAlgo::layerTypeBot_
private

Definition at line 86 of file DDHGCalHEFileAlgo.cc.

◆ layerTypeTop_

std::vector<int> DDHGCalHEFileAlgo::layerTypeTop_
private

Definition at line 81 of file DDHGCalHEFileAlgo.cc.

◆ materials_

std::vector<std::string> DDHGCalHEFileAlgo::materials_
private

Definition at line 66 of file DDHGCalHEFileAlgo.cc.

◆ materialsBot_

std::vector<std::string> DDHGCalHEFileAlgo::materialsBot_
private

Definition at line 83 of file DDHGCalHEFileAlgo.cc.

◆ materialsTop_

std::vector<std::string> DDHGCalHEFileAlgo::materialsTop_
private

Definition at line 78 of file DDHGCalHEFileAlgo.cc.

◆ names_

std::vector<std::string> DDHGCalHEFileAlgo::names_
private

Definition at line 67 of file DDHGCalHEFileAlgo.cc.

◆ namesBot_

std::vector<std::string> DDHGCalHEFileAlgo::namesBot_
private

Definition at line 84 of file DDHGCalHEFileAlgo.cc.

◆ nameSpace_

std::string DDHGCalHEFileAlgo::nameSpace_
private

Definition at line 109 of file DDHGCalHEFileAlgo.cc.

◆ namesTop_

std::vector<std::string> DDHGCalHEFileAlgo::namesTop_
private

Definition at line 79 of file DDHGCalHEFileAlgo.cc.

◆ nCutRadPar_

int DDHGCalHEFileAlgo::nCutRadPar_
private

Definition at line 98 of file DDHGCalHEFileAlgo.cc.

◆ rad100to200_

std::vector<double> DDHGCalHEFileAlgo::rad100to200_
private

Definition at line 92 of file DDHGCalHEFileAlgo.cc.

◆ rad200to300_

std::vector<double> DDHGCalHEFileAlgo::rad200to300_
private

Definition at line 93 of file DDHGCalHEFileAlgo.cc.

◆ rMaxFront_

std::vector<double> DDHGCalHEFileAlgo::rMaxFront_
private

Definition at line 108 of file DDHGCalHEFileAlgo.cc.

◆ rMinFront_

std::vector<double> DDHGCalHEFileAlgo::rMinFront_
private

Definition at line 105 of file DDHGCalHEFileAlgo.cc.

◆ rMixLayer_

std::vector<double> DDHGCalHEFileAlgo::rMixLayer_
private

Definition at line 72 of file DDHGCalHEFileAlgo.cc.

◆ sectors_

int DDHGCalHEFileAlgo::sectors_
private

Definition at line 102 of file DDHGCalHEFileAlgo.cc.

◆ sensitiveMode_

int DDHGCalHEFileAlgo::sensitiveMode_
private

Definition at line 77 of file DDHGCalHEFileAlgo.cc.

◆ slopeB_

std::vector<double> DDHGCalHEFileAlgo::slopeB_
private

Definition at line 103 of file DDHGCalHEFileAlgo.cc.

◆ slopeT_

std::vector<double> DDHGCalHEFileAlgo::slopeT_
private

Definition at line 106 of file DDHGCalHEFileAlgo.cc.

◆ thick_

std::vector<double> DDHGCalHEFileAlgo::thick_
private

Definition at line 68 of file DDHGCalHEFileAlgo.cc.

◆ tol1_

constexpr double DDHGCalHEFileAlgo::tol1_ = 0.01
staticconstexprprivate

Definition at line 62 of file DDHGCalHEFileAlgo.cc.

◆ tol2_

constexpr double DDHGCalHEFileAlgo::tol2_ = 0.00001
staticconstexprprivate

Definition at line 63 of file DDHGCalHEFileAlgo.cc.

◆ waferIndex_

std::vector<int> DDHGCalHEFileAlgo::waferIndex_
private

Definition at line 95 of file DDHGCalHEFileAlgo.cc.

◆ wafers_

std::vector<std::string> DDHGCalHEFileAlgo::wafers_
private

Definition at line 65 of file DDHGCalHEFileAlgo.cc.

◆ waferSepar_

double DDHGCalHEFileAlgo::waferSepar_
private

Definition at line 101 of file DDHGCalHEFileAlgo.cc.

◆ waferSize_

double DDHGCalHEFileAlgo::waferSize_
private

Definition at line 100 of file DDHGCalHEFileAlgo.cc.

◆ waferTypes_

std::vector<int> DDHGCalHEFileAlgo::waferTypes_
private

Definition at line 96 of file DDHGCalHEFileAlgo.cc.

◆ zFrontB_

std::vector<double> DDHGCalHEFileAlgo::zFrontB_
private

Definition at line 104 of file DDHGCalHEFileAlgo.cc.

◆ zFrontT_

std::vector<double> DDHGCalHEFileAlgo::zFrontT_
private

Definition at line 107 of file DDHGCalHEFileAlgo.cc.

◆ zMinBlock_

double DDHGCalHEFileAlgo::zMinBlock_
private

Definition at line 91 of file DDHGCalHEFileAlgo.cc.

◆ zMinRadPar_

double DDHGCalHEFileAlgo::zMinRadPar_
private

Definition at line 94 of file DDHGCalHEFileAlgo.cc.

DDHGCalHEFileAlgo::firstLayer_
int firstLayer_
Definition: DDHGCalHEFileAlgo.cc:75
HGCalWaferIndex::waferV
static int32_t waferV(const int32_t index)
Definition: HGCalWaferIndex.cc:42
HGCalGeomTools::waferCorner
static std::pair< int32_t, int32_t > waferCorner(double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug=false)
Definition: HGCalGeomTools.cc:223
DDHGCalHEFileAlgo::positionMix
void positionMix(const DDLogicalPart &glog, const std::string &name, int copy, double thick, const DDMaterial &matter, double rin, double rmid, double routF, double zz, DDCompactView &cpv)
Definition: DDHGCalHEFileAlgo.cc:396
mps_fire.i
i
Definition: mps_fire.py:428
geometryCSVtoXML.zz
zz
Definition: geometryCSVtoXML.py:19
DDHGCalHEFileAlgo::namesBot_
std::vector< std::string > namesBot_
Definition: DDHGCalHEFileAlgo.cc:84
DDHGCalHEFileAlgo::layerTypeTop_
std::vector< int > layerTypeTop_
Definition: DDHGCalHEFileAlgo.cc:81
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
DDHGCalHEFileAlgo::copyNumber_
std::vector< int > copyNumber_
Definition: DDHGCalHEFileAlgo.cc:69
DDHGCalHEFileAlgo::waferTypes_
std::vector< int > waferTypes_
Definition: DDHGCalHEFileAlgo.cc:96
DDHGCalHEFileAlgo::rMaxFront_
std::vector< double > rMaxFront_
Definition: DDHGCalHEFileAlgo.cc:108
DDHGCalHEFileAlgo::waferSepar_
double waferSepar_
Definition: DDHGCalHEFileAlgo.cc:101
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
min
T min(T a, T b)
Definition: MathUtil.h:58
angle_units::operators::convertRadToDeg
constexpr NumType convertRadToDeg(NumType radians)
Definition: angle_units.h:21
DDHGCalHEFileAlgo::layers_
std::vector< int > layers_
Definition: DDHGCalHEFileAlgo.cc:70
HGCalParameters::k_CornerSize
static constexpr uint32_t k_CornerSize
Definition: HGCalParameters.h:38
distTCMET_cfi.corner
corner
Definition: distTCMET_cfi.py:38
nin
int nin
Definition: CascadeWrapper.h:114
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
DDHGCalHEFileAlgo::geomTools_
HGCalGeomTools geomTools_
Definition: DDHGCalHEFileAlgo.cc:60
DDHGCalHEFileAlgo::slopeT_
std::vector< double > slopeT_
Definition: DDHGCalHEFileAlgo.cc:106
HGCalGeomTools::shiftXY
std::pair< double, double > shiftXY(int waferPosition, double waferSize) const
Definition: HGCalGeomTools.cc:170
DDHGCalHEFileAlgo::rad100to200_
std::vector< double > rad100to200_
Definition: DDHGCalHEFileAlgo.cc:92
DDHGCalHEFileAlgo::sectors_
int sectors_
Definition: DDHGCalHEFileAlgo.cc:102
findQualityFiles.v
v
Definition: findQualityFiles.py:179
dbl_to_int
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
Definition: DDutils.h:7
DDHGCalHEFileAlgo::zFrontB_
std::vector< double > zFrontB_
Definition: DDHGCalHEFileAlgo.cc:104
DDHGCalHEFileAlgo::wafers_
std::vector< std::string > wafers_
Definition: DDHGCalHEFileAlgo.cc:65
DDHGCalHEFileAlgo::fracAreaMin_
double fracAreaMin_
Definition: DDHGCalHEFileAlgo.cc:99
dqmdumpme.first
first
Definition: dqmdumpme.py:55
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
DDHGCalHEFileAlgo::alpha_
double alpha_
Definition: DDHGCalHEFileAlgo.cc:111
DDHGCalHEFileAlgo::choiceType_
int choiceType_
Definition: DDHGCalHEFileAlgo.cc:97
DDHGCalHEFileAlgo::rad200to300_
std::vector< double > rad200to300_
Definition: DDHGCalHEFileAlgo.cc:93
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
DDSolidFactory::polyhedra
static DDSolid polyhedra(const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polyhedra (refere to Geant3 or Geant4 documentation)
Definition: DDSolid.cc:551
DDHGCalHEFileAlgo::materialsTop_
std::vector< std::string > materialsTop_
Definition: DDHGCalHEFileAlgo.cc:78
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9608
DDBase::name
const N & name() const
Definition: DDBase.h:59
N
#define N
Definition: blowfish.cc:9
DDHGCalHEFileAlgo::layerType_
std::vector< int > layerType_
Definition: DDHGCalHEFileAlgo.cc:73
DDSolidFactory::tubs
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
Definition: DDSolid.cc:653
HGCalWaferType::getType
int getType(double xpos, double ypos, double zpos)
Definition: HGCalWaferType.cc:35
dqmdumpme.k
k
Definition: dqmdumpme.py:60
HGCalWaferIndex::waferU
static int32_t waferU(const int32_t index)
Definition: HGCalWaferIndex.cc:37
DDHGCalHEFileAlgo::rMinFront_
std::vector< double > rMinFront_
Definition: DDHGCalHEFileAlgo.cc:105
HGCalTypes::packTypeUV
static int32_t packTypeUV(int type, int u, int v)
Definition: HGCalTypes.cc:3
DDHGCalHEFileAlgo::waferSize_
double waferSize_
Definition: DDHGCalHEFileAlgo.cc:100
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDHGCalHEFileAlgo::copyNumberTop_
std::vector< int > copyNumberTop_
Definition: DDHGCalHEFileAlgo.cc:82
DDHGCalHEFileAlgo::namesTop_
std::vector< std::string > namesTop_
Definition: DDHGCalHEFileAlgo.cc:79
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9607
DDHGCalHEFileAlgo::thick_
std::vector< double > thick_
Definition: DDHGCalHEFileAlgo.cc:68
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
EgHLTOffHistBins_cfi.nr
nr
Definition: EgHLTOffHistBins_cfi.py:4
DDHGCalHEFileAlgo::nCutRadPar_
int nCutRadPar_
Definition: DDHGCalHEFileAlgo.cc:98
DDBase::ddname
const N & ddname() const
Definition: DDBase.h:61
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
DDHGCalHEFileAlgo::layerTypeBot_
std::vector< int > layerTypeBot_
Definition: DDHGCalHEFileAlgo.cc:86
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
funct::tan
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
createfilelist.int
int
Definition: createfilelist.py:10
DDHGCalHEFileAlgo::constructLayers
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
Definition: DDHGCalHEFileAlgo.cc:289
DDHGCalHEFileAlgo::layerThickTop_
std::vector< double > layerThickTop_
Definition: DDHGCalHEFileAlgo.cc:80
DDHGCalHEFileAlgo::nameSpace_
std::string nameSpace_
Definition: DDHGCalHEFileAlgo.cc:109
PVValHelper::dy
Definition: PVValidationHelpers.h:49
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
DDHGCalHEFileAlgo::copies_
std::unordered_set< int > copies_
Definition: DDHGCalHEFileAlgo.cc:110
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
DDHGCalHEFileAlgo::waferIndex_
std::vector< int > waferIndex_
Definition: DDHGCalHEFileAlgo.cc:95
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DDHGCalHEFileAlgo::names_
std::vector< std::string > names_
Definition: DDHGCalHEFileAlgo.cc:67
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
DDHGCalHEFileAlgo::absorbMode_
int absorbMode_
Definition: DDHGCalHEFileAlgo.cc:76
DDHGCalHEFileAlgo::cosAlpha_
double cosAlpha_
Definition: DDHGCalHEFileAlgo.cc:111
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
DDHGCalHEFileAlgo::layerThickBot_
std::vector< double > layerThickBot_
Definition: DDHGCalHEFileAlgo.cc:85
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
DDHGCalHEFileAlgo::zFrontT_
std::vector< double > zFrontT_
Definition: DDHGCalHEFileAlgo.cc:107
DDHGCalHEFileAlgo::materialsBot_
std::vector< std::string > materialsBot_
Definition: DDHGCalHEFileAlgo.cc:83
DDCurrentNamespace::ns
static std::string & ns()
Definition: DDCurrentNamespace.cc:3
DDHGCalHEFileAlgo::zMinRadPar_
double zMinRadPar_
Definition: DDHGCalHEFileAlgo.cc:94
DDHGCalHEFileAlgo::materials_
std::vector< std::string > materials_
Definition: DDHGCalHEFileAlgo.cc:66
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
DDHGCalHEFileAlgo::tol2_
static constexpr double tol2_
Definition: DDHGCalHEFileAlgo.cc:63
DDHGCalHEFileAlgo::tol1_
static constexpr double tol1_
Definition: DDHGCalHEFileAlgo.cc:62
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HGCalWaferIndex::waferIndex
static int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
Definition: HGCalWaferIndex.cc:17
DDSolid
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
DDHGCalHEFileAlgo::layerSenseBot_
std::vector< int > layerSenseBot_
Definition: DDHGCalHEFileAlgo.cc:88
DDRotation
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
DDHGCalHEFileAlgo::rMixLayer_
std::vector< double > rMixLayer_
Definition: DDHGCalHEFileAlgo.cc:72
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
DDHGCalHEFileAlgo::layerThick_
std::vector< double > layerThick_
Definition: DDHGCalHEFileAlgo.cc:71
DDHGCalHEFileAlgo::positionSensitive
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
Definition: DDHGCalHEFileAlgo.cc:539
DDHGCalHEFileAlgo::layerSense_
std::vector< int > layerSense_
Definition: DDHGCalHEFileAlgo.cc:74
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
DDHGCalHEFileAlgo::copyNumberBot_
std::vector< int > copyNumberBot_
Definition: DDHGCalHEFileAlgo.cc:87
DDHGCalHEFileAlgo::layerCenter_
std::vector< int > layerCenter_
Definition: DDHGCalHEFileAlgo.cc:89
DDHGCalHEFileAlgo::slopeB_
std::vector< double > slopeB_
Definition: DDHGCalHEFileAlgo.cc:103
DDHGCalHEFileAlgo::sensitiveMode_
int sensitiveMode_
Definition: DDHGCalHEFileAlgo.cc:77
edm::Log
Definition: MessageLogger.h:70
dttmaxenums::R
Definition: DTTMax.h:29
class-composition.parent
parent
Definition: class-composition.py:88
cuy.ii
ii
Definition: cuy.py:590
DDHGCalHEFileAlgo::zMinBlock_
double zMinBlock_
Definition: DDHGCalHEFileAlgo.cc:91
HGCalWaferIndex::waferLayer
static int32_t waferLayer(const int32_t index)
Definition: HGCalWaferIndex.cc:35
DDSplit
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
Definition: DDSplit.cc:3
DDCompactView::position
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string &copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
Definition: DDCompactView.cc:76