CMS 3D CMS Logo

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

Public Member Functions

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

Private Attributes

double activeHeight
 
string activeMat
 
vector< string > activeName
 
string activeRot
 
vector< double > backplaneThick
 
double bottomFrameHeight
 
double bottomFrameOver
 
double boxFrameHeight
 
string boxFrameMat
 
string boxFrameName
 
double boxFrameThick
 
double boxFrameWidth
 
double coolHeight
 
string coolMat
 
string coolName
 
double coolThick
 
double coolWidth
 
int detectorN
 
double detTilt
 
double dlBottom
 
double dlHybrid
 
double dlTop
 
bool doComponents
 
double fullHeight
 
string genMat
 
vector< string > holeFrameName
 
vector< string > holeFrameRot
 
vector< string > holeKaptonName
 
vector< string > holeKaptonRot
 
double hybridHeight
 
string hybridMat
 
string hybridName
 
double hybridThick
 
double hybridWidth
 
string kaptonMat
 
vector< string > kaptonName
 
double kaptonOver
 
double kaptonThick
 
double moduleThick
 
double pitchHeight
 
string pitchMat
 
vector< string > pitchName
 
double pitchStereoTol
 
double pitchThick
 
string sideFrameMat
 
vector< string > sideFrameName
 
double sideFrameOver
 
double sideFrameThick
 
double sideFrameWidth
 
double sideWidthBottom
 
double sideWidthTop
 
double topFrameHeight
 
double topFrameOver
 
string waferMat
 
vector< string > waferName
 
vector< double > waferThick
 

Detailed Description

Definition at line 23 of file DDTIDModuleAlgo.cc.

Constructor & Destructor Documentation

◆ DDTIDModuleAlgo()

DDTIDModuleAlgo::DDTIDModuleAlgo ( )

Definition at line 100 of file DDTIDModuleAlgo.cc.

100 { LogDebug("TIDGeom") << "DDTIDModuleAlgo info: Creating an instance"; }

References LogDebug.

◆ ~DDTIDModuleAlgo()

DDTIDModuleAlgo::~DDTIDModuleAlgo ( )
override

Definition at line 102 of file DDTIDModuleAlgo.cc.

102 {}

Member Function Documentation

◆ execute()

void DDTIDModuleAlgo::execute ( DDCompactView cpv)
override

Definition at line 218 of file DDTIDModuleAlgo.cc.

218  {
219  LogDebug("TIDGeom") << "==>> Constructing DDTIDModuleAlgo...";
220 
221  DDName parentName(parent().name());
222 
223  double sidfr = sideFrameWidth - sideFrameOver; // width of side frame on the sides of module
224  double botfr; // width of side frame at the the bottom of the modules
225  double topfr; // width of side frame at the the top of the modules
226  double kaptonHeight;
227  if (dlHybrid > dlTop) {
228  // ring 1, ring 2
231  kaptonHeight = fullHeight + botfr;
232  } else {
233  // ring 3
234  topfr = topFrameHeight - topFrameOver;
236  kaptonHeight = fullHeight + topfr;
237  }
238 
239  double sideFrameHeight = fullHeight + pitchHeight + botfr + topfr;
240  double kaptonWidth = sidfr + kaptonOver;
241 
242  double dxbot = 0.5 * dlBottom + sidfr;
243  double dxtop = 0.5 * dlTop + sidfr;
244  double dxtopenv, dxbotenv; // top/bot width of the module envelope trap
245 
246  // Envelope
247  if (dlHybrid > dlTop) {
248  // ring 1, ring 2
249  dxtopenv = dxbot + (dxtop - dxbot) * (fullHeight + pitchHeight + topfr + hybridHeight) / fullHeight;
250  dxbotenv = dxtop - (dxtop - dxbot) * (fullHeight + botfr) / fullHeight;
251  } else {
252  // ring 3
253  dxtopenv = dxbot + (dxtop - dxbot) * (fullHeight + topfr) / fullHeight;
254  dxbotenv = dxbot;
255  }
256  double bl1 = dxbotenv;
257  double bl2 = dxtopenv;
258  double h1 = 0.5 * moduleThick;
259  double dz = 0.5 * (boxFrameHeight + sideFrameHeight);
260 
261  DDSolid solidUncut, solidCut;
262  DDSolid solid = DDSolidFactory::trap(parentName, dz, 0, 0, h1, bl1, bl1, 0, h1, bl2, bl2, 0);
264  DDLogicalPart module(solid.ddname(), matter, solid);
265  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Trap made of " << genMat << " of dimensions "
266  << dz << ", 0, 0, " << h1 << ", " << bl1 << ", " << bl1 << ", 0, " << h1 << ", " << bl2 << ", "
267  << bl2 << ", 0";
268 
269  if (doComponents) {
270  //Box frame
272  double dx = 0.5 * boxFrameWidth;
273  double dy = 0.5 * boxFrameThick;
274  double dz = 0.5 * boxFrameHeight;
276  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Box made of " << matter.ddname()
277  << " of dimensions " << dx << ", " << dy << ", " << dz;
278  DDLogicalPart boxFrame(solid.ddname(), matter, solid);
279 
280  // Hybrid
282  dx = 0.5 * hybridWidth;
283  dy = 0.5 * hybridThick;
284  dz = 0.5 * hybridHeight;
286  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Box made of " << matter.ddname()
287  << " of dimensions " << dx << ", " << dy << ", " << dz;
288  DDLogicalPart hybrid(solid.ddname(), matter, solid);
289 
290  // Cool Insert
292  dx = 0.5 * coolWidth;
293  dy = 0.5 * coolThick;
294  dz = 0.5 * coolHeight;
296  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Box made of " << matter.ddname()
297  << " of dimensions " << dx << ", " << dy << ", " << dz;
298  DDLogicalPart cool(solid.ddname(), matter, solid);
299 
300  // Loop over detectors to be placed
301  for (int k = 0; k < detectorN; k++) {
302  double bbl1, bbl2; // perhaps useless (bl1 enough)
303 
304  // Frame Sides
306  if (dlHybrid > dlTop) {
307  // ring 1, ring 2
308  bbl1 = dxtop - (dxtop - dxbot) * (fullHeight + botfr) / fullHeight;
309  bbl2 = dxbot + (dxtop - dxbot) * (fullHeight + pitchHeight + topfr) / fullHeight;
310  } else {
311  // ring 3
312  bbl1 = dxtop - (dxtop - dxbot) * (fullHeight + pitchHeight + botfr) / fullHeight;
313  bbl2 = dxbot + (dxtop - dxbot) * (fullHeight + topfr) / fullHeight;
314  }
315  h1 = 0.5 * sideFrameThick;
316  dz = 0.5 * sideFrameHeight;
318  dz,
319  0,
320  0,
321  h1,
322  bbl1,
323  bbl1,
324  0,
325  h1,
326  bbl2,
327  bbl2,
328  0);
329  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Trap made of " << matter.ddname()
330  << " of dimensions " << dz << ", 0, 0, " << h1 << ", " << bbl1 << ", " << bbl1 << ", 0, "
331  << h1 << ", " << bbl2 << ", " << bbl2 << ", 0";
332  DDLogicalPart sideFrame(solid.ddname(), matter, solid);
333 
334  string rotstr, rotns;
335  DDRotation rot;
336 
337  // Hole in the frame below the wafer
339  double xpos, zpos;
341  bbl1 = dxbot - sideFrameWidth + bottomFrameOver * (dxtop - dxbot) / fullHeight;
342  bbl2 = dxtop - sideFrameWidth - topFrameOver * (dxtop - dxbot) / fullHeight;
343  if (dlHybrid > dlTop) {
344  // ring 1, ring 2
345  zpos = -(topFrameHeight + 0.5 * dz - 0.5 * sideFrameHeight);
346  } else {
347  // ring 3
348  zpos = bottomFrameHeight + 0.5 * dz - 0.5 * sideFrameHeight;
349  }
350  dz /= 2.;
352  dz,
353  0,
354  0,
355  h1,
356  bbl1,
357  bbl1,
358  0,
359  h1,
360  bbl2,
361  bbl2,
362  0);
363  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Trap made of " << matter.ddname()
364  << " of dimensions " << dz << ", 0, 0, " << h1 << ", " << bbl1 << ", " << bbl1 << ", 0, "
365  << h1 << ", " << bbl2 << ", " << bbl2 << ", 0";
366  DDLogicalPart holeFrame(solid.ddname(), matter, solid);
367 
368  rotstr = DDSplit(holeFrameRot[k]).first;
369  if (rotstr != "NULL") {
370  rotns = DDSplit(holeFrameRot[k]).second;
371  rot = DDRotation(DDName(rotstr, rotns));
372  } else {
373  rot = DDRotation();
374  }
375  cpv.position(holeFrame, sideFrame, 1, DDTranslation(0.0, 0.0, zpos), rot);
376  LogDebug("TIDGeom") << "DDTIDModuleAlgo test: " << holeFrame.name() << " number 1 positioned in "
377  << sideFrame.name() << " at (0,0," << zpos << ") with no rotation";
378 
379  // Kapton circuit
381  double kaptonExtraHeight = 0; // kapton extra height in the stereo
382  if (dlHybrid > dlTop) {
383  // ring 1, ring 2
384  bbl1 = dxtop - (dxtop - dxbot) * (fullHeight + botfr) / fullHeight;
385  if (k == 1) {
386  kaptonExtraHeight = dlTop * sin(detTilt) - fullHeight * (1 - cos(detTilt));
387  kaptonExtraHeight = 0.5 * fabs(kaptonExtraHeight);
388  bbl2 = dxbot + (dxtop - dxbot) * (fullHeight + kaptonExtraHeight) / fullHeight;
389  } else {
390  bbl2 = dxtop;
391  }
392  } else {
393  // ring 3
394  bbl2 = dxbot + (dxtop - dxbot) * (fullHeight + topfr) / fullHeight;
395  if (k == 1) {
396  kaptonExtraHeight = dlBottom * sin(detTilt) - fullHeight * (1 - cos(detTilt));
397  kaptonExtraHeight = 0.5 * fabs(kaptonExtraHeight);
398  bbl1 = dxtop - (dxtop - dxbot) * (fullHeight + kaptonExtraHeight) / fullHeight;
399  } else {
400  bbl1 = dxbot;
401  }
402  }
403  h1 = 0.5 * kaptonThick;
404  dz = 0.5 * (kaptonHeight + kaptonExtraHeight);
405 
406  // For the stereo create the uncut solid, the solid to be removed and then the subtraction solid
407  if (k == 1) {
408  // Uncut solid
409  string kaptonUncutName = kaptonName[k] + "Uncut";
410  solidUncut = DDSolidFactory::trap(DDName(DDSplit(kaptonUncutName).first, DDSplit(kaptonUncutName).second),
411  dz,
412  0,
413  0,
414  h1,
415  bbl1,
416  bbl1,
417  0,
418  h1,
419  bbl2,
420  bbl2,
421  0);
422 
423  // Piece to be cut
424  string kaptonCutName = kaptonName[k] + "Cut";
425 
426  if (dlHybrid > dlTop) {
427  dz = 0.5 * dlTop;
428  } else {
429  dz = 0.5 * dlBottom;
430  }
431  h1 = 0.5 * kaptonThick;
432  bbl1 = fabs(dz * sin(detTilt));
433  bbl2 = bbl1 * 0.000001;
434  double thet = atan((bbl1 - bbl2) / (2 * dz));
435  solidCut = DDSolidFactory::trap(DDName(DDSplit(kaptonCutName).first, DDSplit(kaptonCutName).second),
436  dz,
437  thet,
438  0,
439  h1,
440  bbl1,
441  bbl1,
442  0,
443  h1,
444  bbl2,
445  bbl2,
446  0);
447 
448  string aRot("tidmodpar:9PYX");
449  rotstr = DDSplit(aRot).first;
450  rotns = DDSplit(aRot).second;
451  rot = DDRotation(DDName(rotstr, rotns));
452 
453  xpos = -0.5 * fullHeight * sin(detTilt);
454  zpos = 0.5 * kaptonHeight - bbl2;
455 
456  // Subtraction Solid
458  solidUncut,
459  solidCut,
460  DDTranslation(xpos, 0.0, zpos),
461  rot);
462  } else {
464  dz,
465  0,
466  0,
467  h1,
468  bbl1,
469  bbl1,
470  0,
471  h1,
472  bbl2,
473  bbl2,
474  0);
475  }
476 
477  DDLogicalPart kapton(solid.ddname(), matter, solid);
478  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " SUBTRACTION SOLID Trap made of "
479  << matter.ddname() << " of dimensions " << dz << ", 0, 0, " << h1 << ", " << bbl1 << ", "
480  << bbl1 << ", 0, " << h1 << ", " << bbl2 << ", " << bbl2 << ", 0";
481 
482  // Hole in the kapton below the wafer
485  xpos = 0;
486  if (dlHybrid > dlTop) {
487  // ring 1, ring 2
488  bbl1 = dxbot - kaptonWidth + kaptonOver * (dxtop - dxbot) / fullHeight;
489  bbl2 = dxtop - kaptonWidth;
490  zpos = 0.5 * (kaptonHeight - kaptonExtraHeight - dz);
491  if (k == 1) {
492  zpos -= 0.5 * kaptonOver * (1 - cos(detTilt));
493  xpos = -0.5 * kaptonOver * sin(detTilt);
494  }
495  } else {
496  // ring 3
497  bbl1 = dxbot - kaptonWidth;
498  bbl2 = dxtop - kaptonWidth - kaptonOver * (dxtop - dxbot) / fullHeight;
499  zpos = -0.5 * (kaptonHeight - kaptonExtraHeight - dz);
500  }
501  dz /= 2.;
503  dz,
504  0,
505  0,
506  h1,
507  bbl1,
508  bbl1,
509  0,
510  h1,
511  bbl2,
512  bbl2,
513  0);
514  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Trap made of " << matter.ddname()
515  << " of dimensions " << dz << ", 0, 0, " << h1 << ", " << bbl1 << ", " << bbl1 << ", 0, "
516  << h1 << ", " << bbl2 << ", " << bbl2 << ", 0";
517  DDLogicalPart holeKapton(solid.ddname(), matter, solid);
518 
519  rotstr = DDSplit(holeKaptonRot[k]).first;
520  if (rotstr != "NULL") {
521  rotns = DDSplit(holeKaptonRot[k]).second;
522  rot = DDRotation(DDName(rotstr, rotns));
523  } else {
524  rot = DDRotation();
525  }
526  cpv.position(holeKapton, kapton, 1, DDTranslation(xpos, 0.0, zpos), rot);
527  LogDebug("TIDGeom") << "DDTIDModuleAlgo test: " << holeKapton.name() << " number 1 positioned in "
528  << kapton.name() << " at (0,0," << zpos << ") with no rotation";
529 
530  // Wafer
532  if (k == 0 && dlHybrid < dlTop) {
533  bl1 = 0.5 * dlTop;
534  bl2 = 0.5 * dlBottom;
535  } else {
536  bl1 = 0.5 * dlBottom;
537  bl2 = 0.5 * dlTop;
538  }
539  h1 = 0.5 * waferThick[k];
540  dz = 0.5 * fullHeight;
541  solid = DDSolidFactory::trap(
542  DDName(DDSplit(waferName[k]).first, DDSplit(waferName[k]).second), dz, 0, 0, h1, bl1, bl1, 0, h1, bl2, bl2, 0);
543  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Trap made of " << matter.ddname()
544  << " of dimensions " << dz << ", 0, 0, " << h1 << ", " << bl1 << ", " << bl1 << ", 0, " << h1
545  << ", " << bl2 << ", " << bl2 << ", 0";
546  DDLogicalPart wafer(solid.ddname(), matter, solid);
547 
548  // Active
550  if (k == 0 && dlHybrid < dlTop) {
551  bl1 -= sideWidthTop;
552  bl2 -= sideWidthBottom;
553  } else {
554  bl1 -= sideWidthBottom;
555  bl2 -= sideWidthTop;
556  }
557  dz = 0.5 * (waferThick[k] - backplaneThick[k]); // inactive backplane
558  h1 = 0.5 * activeHeight;
560  dz,
561  0,
562  0,
563  h1,
564  bl2,
565  bl1,
566  0,
567  h1,
568  bl2,
569  bl1,
570  0);
571  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Trap made of " << matter.ddname()
572  << " of dimensions " << dz << ", 0, 0, " << h1 << ", " << bl2 << ", " << bl1 << ", 0, " << h1
573  << ", " << bl2 << ", " << bl1 << ", 0";
574  DDLogicalPart active(solid.ddname(), matter, solid);
575  rotstr = DDSplit(activeRot).first;
576  if (rotstr != "NULL") {
577  rotns = DDSplit(activeRot).second;
578  rot = DDRotation(DDName(rotstr, rotns));
579  } else {
580  rot = DDRotation();
581  }
582  DDTranslation tran(0.0, -0.5 * backplaneThick[k], 0.0); // from the definition of the wafer local axes
583  cpv.position(active, wafer, 1, tran, rot); // inactive backplane
584  LogDebug("TIDGeom") << "DDTIDModuleAlgo test: " << active.name() << " number 1 positioned in " << wafer.name()
585  << " at " << tran << " with " << rot;
586 
587  //Pitch Adapter
589  if (dlHybrid > dlTop) {
590  dz = 0.5 * dlTop;
591  } else {
592  dz = 0.5 * dlBottom;
593  }
594  if (k == 0) {
595  dx = dz;
596  dy = 0.5 * pitchThick;
597  dz = 0.5 * pitchHeight;
599  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Box made of " << matter.ddname()
600  << " of dimensions"
601  << " " << dx << ", " << dy << ", " << dz;
602  } else {
603  h1 = 0.5 * pitchThick;
604  bl1 = 0.5 * pitchHeight + 0.5 * dz * sin(detTilt);
605  bl2 = 0.5 * pitchHeight - 0.5 * dz * sin(detTilt);
606 
607  dz -= 0.5 * pitchStereoTol;
608  bl1 -= pitchStereoTol;
609  bl2 -= pitchStereoTol;
610 
611  double thet = atan((bl1 - bl2) / (2. * dz));
613  dz,
614  thet,
615  0,
616  h1,
617  bl1,
618  bl1,
619  0,
620  h1,
621  bl2,
622  bl2,
623  0);
624  LogDebug("TIDGeom") << "DDTIDModuleAlgo test:\t" << solid.name() << " Trap made of " << matter.ddname()
625  << " of "
626  << "dimensions " << dz << ", " << thet / CLHEP::deg << ", 0, " << h1 << ", " << bl1 << ", "
627  << bl1 << ", 0, " << h1 << ", " << bl2 << ", " << bl2 << ", 0";
628  }
629  DDLogicalPart pa(solid.ddname(), matter, solid);
630  }
631  }
632  LogDebug("TIDGeom") << "<<== End of DDTIDModuleAlgo construction ...";
633 }

References DDSolidFactory::box(), funct::cos(), DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, dqmdumpme::first, dqmdumpme::k, LogDebug, Skims_PA_cff::name, DDBase< N, C >::name(), class-composition::parent, DDCompactView::position(), makeMuonMisalignmentScenario::rot, edm::second(), funct::sin(), DDSolidFactory::subtraction(), and DDSolidFactory::trap().

◆ initialize()

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

Definition at line 104 of file DDTIDModuleAlgo.cc.

108  {
109  int i;
110  genMat = sArgs["GeneralMaterial"];
111  detectorN = (int)(nArgs["DetectorNumber"]);
112  DDName parentName(parent().name());
113 
114  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: Parent " << parentName << " General Material " << genMat
115  << " Detector Planes " << detectorN;
116 
117  moduleThick = nArgs["ModuleThick"];
118  detTilt = nArgs["DetTilt"];
119  fullHeight = nArgs["FullHeight"];
120  dlTop = nArgs["DlTop"];
121  dlBottom = nArgs["DlBottom"];
122  dlHybrid = nArgs["DlHybrid"];
123  string comp = sArgs["DoComponents"];
124  if (comp == "No" || comp == "NO" || comp == "no")
125  doComponents = false;
126  else
127  doComponents = true;
128 
129  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: ModuleThick " << moduleThick << " Detector Tilt "
130  << detTilt / CLHEP::deg << " Height " << fullHeight << " dl(Top) " << dlTop << " dl(Bottom) "
131  << dlBottom << " dl(Hybrid) " << dlHybrid << " doComponents " << doComponents;
132 
133  boxFrameName = sArgs["BoxFrameName"];
134  boxFrameMat = sArgs["BoxFrameMaterial"];
135  boxFrameThick = nArgs["BoxFrameThick"];
136  boxFrameHeight = nArgs["BoxFrameHeight"];
137  boxFrameWidth = nArgs["BoxFrameWidth"];
138  bottomFrameHeight = nArgs["BottomFrameHeight"];
139  bottomFrameOver = nArgs["BottomFrameOver"];
140  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: " << boxFrameName << " Material " << boxFrameMat << " Thickness "
141  << boxFrameThick << " width " << boxFrameWidth << " height " << boxFrameHeight
142  << " Extra Height at Bottom " << bottomFrameHeight << " Overlap " << bottomFrameOver;
143 
144  topFrameHeight = nArgs["TopFrameHeight"];
145  topFrameOver = nArgs["TopFrameOver"];
146  sideFrameName = vsArgs["SideFrameName"];
147  sideFrameMat = sArgs["SideFrameMaterial"];
148  sideFrameWidth = nArgs["SideFrameWidth"];
149  sideFrameThick = nArgs["SideFrameThick"];
150  sideFrameOver = nArgs["SideFrameOver"];
151  holeFrameName = vsArgs["HoleFrameName"];
152  holeFrameRot = vsArgs["HoleFrameRotation"];
153  for (i = 0; i < detectorN; i++)
154  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug : " << sideFrameName[i] << " Material " << sideFrameMat << " Width "
155  << sideFrameWidth << " Thickness " << sideFrameThick << " Overlap " << sideFrameOver
156  << " Hole " << holeFrameName[i];
157 
158  kaptonName = vsArgs["KaptonName"];
159  kaptonMat = sArgs["KaptonMaterial"];
160  kaptonThick = nArgs["KaptonThick"];
161  kaptonOver = nArgs["KaptonOver"];
162  holeKaptonName = vsArgs["HoleKaptonName"];
163  holeKaptonRot = vsArgs["HoleKaptonRotation"];
164  for (i = 0; i < detectorN; i++)
165  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug : " << kaptonName[i] << " Material " << kaptonMat << " Thickness "
166  << kaptonThick << " Overlap " << kaptonOver << " Hole " << holeKaptonName[i];
167 
168  waferName = vsArgs["WaferName"];
169  waferMat = sArgs["WaferMaterial"];
170  sideWidthTop = nArgs["SideWidthTop"];
171  sideWidthBottom = nArgs["SideWidthBottom"];
172 
173  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: Wafer Material " << waferMat << " Side Width Top " << sideWidthTop
174  << " Side Width Bottom " << sideWidthBottom;
175  for (i = 0; i < detectorN; i++)
176  LogDebug("TIDGeom") << "\twaferName[" << i << "] = " << waferName[i];
177 
178  activeName = vsArgs["ActiveName"];
179  activeMat = sArgs["ActiveMaterial"];
180  activeHeight = nArgs["ActiveHeight"];
181  waferThick = vArgs["WaferThick"];
182  activeRot = sArgs["ActiveRotation"];
183  backplaneThick = vArgs["BackPlaneThick"];
184  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: Active Material " << activeMat << " Height " << activeHeight
185  << " rotated by " << activeRot;
186  for (i = 0; i < detectorN; i++)
187  LogDebug("TIDGeom") << " translated by (0," << -0.5 * backplaneThick[i] << ",0)\tactiveName[" << i
188  << "] = " << activeName[i] << " of thickness " << waferThick[i] - backplaneThick[i];
189 
190  hybridName = sArgs["HybridName"];
191  hybridMat = sArgs["HybridMaterial"];
192  hybridHeight = nArgs["HybridHeight"];
193  hybridWidth = nArgs["HybridWidth"];
194  hybridThick = nArgs["HybridThick"];
195  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: " << hybridName << " Material " << hybridMat << " Height "
196  << hybridHeight << " Width " << hybridWidth << " Thickness " << hybridThick;
197 
198  pitchName = vsArgs["PitchName"];
199  pitchMat = sArgs["PitchMaterial"];
200  pitchHeight = nArgs["PitchHeight"];
201  pitchThick = nArgs["PitchThick"];
202  pitchStereoTol = nArgs["PitchStereoTolerance"];
203 
204  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: Pitch Adapter Material " << pitchMat << " Height " << pitchHeight
205  << " Thickness " << pitchThick;
206  for (i = 0; i < detectorN; i++)
207  LogDebug("TIDGeom") << "\tpitchName[" << i << "] = " << pitchName[i];
208 
209  coolName = sArgs["CoolInsertName"];
210  coolMat = sArgs["CoolInsertMaterial"];
211  coolHeight = nArgs["CoolInsertHeight"];
212  coolThick = nArgs["CoolInsertThick"];
213  coolWidth = nArgs["CoolInsertWidth"];
214  LogDebug("TIDGeom") << "DDTIDModuleAlgo debug: Cool Element Material " << coolMat << " Height " << coolHeight
215  << " Thickness " << coolThick << " Width " << coolWidth;
216 }

References AlCaHLTBitMon_QueryRunRegistry::comp, mps_fire::i, createfilelist::int, LogDebug, Skims_PA_cff::name, and class-composition::parent.

Member Data Documentation

◆ activeHeight

double DDTIDModuleAlgo::activeHeight
private

Definition at line 79 of file DDTIDModuleAlgo.cc.

◆ activeMat

string DDTIDModuleAlgo::activeMat
private

Definition at line 78 of file DDTIDModuleAlgo.cc.

◆ activeName

vector<string> DDTIDModuleAlgo::activeName
private

Definition at line 77 of file DDTIDModuleAlgo.cc.

◆ activeRot

string DDTIDModuleAlgo::activeRot
private

Definition at line 81 of file DDTIDModuleAlgo.cc.

◆ backplaneThick

vector<double> DDTIDModuleAlgo::backplaneThick
private

Definition at line 82 of file DDTIDModuleAlgo.cc.

◆ bottomFrameHeight

double DDTIDModuleAlgo::bottomFrameHeight
private

Definition at line 53 of file DDTIDModuleAlgo.cc.

◆ bottomFrameOver

double DDTIDModuleAlgo::bottomFrameOver
private

Definition at line 54 of file DDTIDModuleAlgo.cc.

◆ boxFrameHeight

double DDTIDModuleAlgo::boxFrameHeight
private

Definition at line 50 of file DDTIDModuleAlgo.cc.

◆ boxFrameMat

string DDTIDModuleAlgo::boxFrameMat
private

Definition at line 49 of file DDTIDModuleAlgo.cc.

◆ boxFrameName

string DDTIDModuleAlgo::boxFrameName
private

Definition at line 48 of file DDTIDModuleAlgo.cc.

◆ boxFrameThick

double DDTIDModuleAlgo::boxFrameThick
private

Definition at line 51 of file DDTIDModuleAlgo.cc.

◆ boxFrameWidth

double DDTIDModuleAlgo::boxFrameWidth
private

Definition at line 52 of file DDTIDModuleAlgo.cc.

◆ coolHeight

double DDTIDModuleAlgo::coolHeight
private

Definition at line 95 of file DDTIDModuleAlgo.cc.

◆ coolMat

string DDTIDModuleAlgo::coolMat
private

Definition at line 94 of file DDTIDModuleAlgo.cc.

◆ coolName

string DDTIDModuleAlgo::coolName
private

Definition at line 93 of file DDTIDModuleAlgo.cc.

◆ coolThick

double DDTIDModuleAlgo::coolThick
private

Definition at line 96 of file DDTIDModuleAlgo.cc.

◆ coolWidth

double DDTIDModuleAlgo::coolWidth
private

Definition at line 97 of file DDTIDModuleAlgo.cc.

◆ detectorN

int DDTIDModuleAlgo::detectorN
private

Definition at line 39 of file DDTIDModuleAlgo.cc.

◆ detTilt

double DDTIDModuleAlgo::detTilt
private

Definition at line 41 of file DDTIDModuleAlgo.cc.

◆ dlBottom

double DDTIDModuleAlgo::dlBottom
private

Definition at line 44 of file DDTIDModuleAlgo.cc.

◆ dlHybrid

double DDTIDModuleAlgo::dlHybrid
private

Definition at line 45 of file DDTIDModuleAlgo.cc.

◆ dlTop

double DDTIDModuleAlgo::dlTop
private

Definition at line 43 of file DDTIDModuleAlgo.cc.

◆ doComponents

bool DDTIDModuleAlgo::doComponents
private

Definition at line 46 of file DDTIDModuleAlgo.cc.

◆ fullHeight

double DDTIDModuleAlgo::fullHeight
private

Definition at line 42 of file DDTIDModuleAlgo.cc.

◆ genMat

string DDTIDModuleAlgo::genMat
private

Definition at line 38 of file DDTIDModuleAlgo.cc.

◆ holeFrameName

vector<string> DDTIDModuleAlgo::holeFrameName
private

Definition at line 62 of file DDTIDModuleAlgo.cc.

◆ holeFrameRot

vector<string> DDTIDModuleAlgo::holeFrameRot
private

Definition at line 63 of file DDTIDModuleAlgo.cc.

◆ holeKaptonName

vector<string> DDTIDModuleAlgo::holeKaptonName
private

Definition at line 70 of file DDTIDModuleAlgo.cc.

◆ holeKaptonRot

vector<string> DDTIDModuleAlgo::holeKaptonRot
private

Definition at line 71 of file DDTIDModuleAlgo.cc.

◆ hybridHeight

double DDTIDModuleAlgo::hybridHeight
private

Definition at line 85 of file DDTIDModuleAlgo.cc.

◆ hybridMat

string DDTIDModuleAlgo::hybridMat
private

Definition at line 84 of file DDTIDModuleAlgo.cc.

◆ hybridName

string DDTIDModuleAlgo::hybridName
private

Definition at line 83 of file DDTIDModuleAlgo.cc.

◆ hybridThick

double DDTIDModuleAlgo::hybridThick
private

Definition at line 87 of file DDTIDModuleAlgo.cc.

◆ hybridWidth

double DDTIDModuleAlgo::hybridWidth
private

Definition at line 86 of file DDTIDModuleAlgo.cc.

◆ kaptonMat

string DDTIDModuleAlgo::kaptonMat
private

Definition at line 66 of file DDTIDModuleAlgo.cc.

◆ kaptonName

vector<string> DDTIDModuleAlgo::kaptonName
private

Definition at line 65 of file DDTIDModuleAlgo.cc.

◆ kaptonOver

double DDTIDModuleAlgo::kaptonOver
private

Definition at line 69 of file DDTIDModuleAlgo.cc.

◆ kaptonThick

double DDTIDModuleAlgo::kaptonThick
private

Definition at line 68 of file DDTIDModuleAlgo.cc.

◆ moduleThick

double DDTIDModuleAlgo::moduleThick
private

Definition at line 40 of file DDTIDModuleAlgo.cc.

◆ pitchHeight

double DDTIDModuleAlgo::pitchHeight
private

Definition at line 90 of file DDTIDModuleAlgo.cc.

◆ pitchMat

string DDTIDModuleAlgo::pitchMat
private

Definition at line 89 of file DDTIDModuleAlgo.cc.

◆ pitchName

vector<string> DDTIDModuleAlgo::pitchName
private

Definition at line 88 of file DDTIDModuleAlgo.cc.

◆ pitchStereoTol

double DDTIDModuleAlgo::pitchStereoTol
private

Definition at line 92 of file DDTIDModuleAlgo.cc.

◆ pitchThick

double DDTIDModuleAlgo::pitchThick
private

Definition at line 91 of file DDTIDModuleAlgo.cc.

◆ sideFrameMat

string DDTIDModuleAlgo::sideFrameMat
private

Definition at line 58 of file DDTIDModuleAlgo.cc.

◆ sideFrameName

vector<string> DDTIDModuleAlgo::sideFrameName
private

Definition at line 57 of file DDTIDModuleAlgo.cc.

◆ sideFrameOver

double DDTIDModuleAlgo::sideFrameOver
private

Definition at line 61 of file DDTIDModuleAlgo.cc.

◆ sideFrameThick

double DDTIDModuleAlgo::sideFrameThick
private

Definition at line 60 of file DDTIDModuleAlgo.cc.

◆ sideFrameWidth

double DDTIDModuleAlgo::sideFrameWidth
private

Definition at line 59 of file DDTIDModuleAlgo.cc.

◆ sideWidthBottom

double DDTIDModuleAlgo::sideWidthBottom
private

Definition at line 76 of file DDTIDModuleAlgo.cc.

◆ sideWidthTop

double DDTIDModuleAlgo::sideWidthTop
private

Definition at line 75 of file DDTIDModuleAlgo.cc.

◆ topFrameHeight

double DDTIDModuleAlgo::topFrameHeight
private

Definition at line 55 of file DDTIDModuleAlgo.cc.

◆ topFrameOver

double DDTIDModuleAlgo::topFrameOver
private

Definition at line 56 of file DDTIDModuleAlgo.cc.

◆ waferMat

string DDTIDModuleAlgo::waferMat
private

Definition at line 74 of file DDTIDModuleAlgo.cc.

◆ waferName

vector<string> DDTIDModuleAlgo::waferName
private

Definition at line 73 of file DDTIDModuleAlgo.cc.

◆ waferThick

vector<double> DDTIDModuleAlgo::waferThick
private

Definition at line 80 of file DDTIDModuleAlgo.cc.

DDTIDModuleAlgo::moduleThick
double moduleThick
Definition: DDTIDModuleAlgo.cc:40
DDTIDModuleAlgo::kaptonThick
double kaptonThick
Definition: DDTIDModuleAlgo.cc:68
DDTIDModuleAlgo::coolName
string coolName
Definition: DDTIDModuleAlgo.cc:93
mps_fire.i
i
Definition: mps_fire.py:355
DDTIDModuleAlgo::pitchHeight
double pitchHeight
Definition: DDTIDModuleAlgo.cc:90
DDTIDModuleAlgo::sideFrameName
vector< string > sideFrameName
Definition: DDTIDModuleAlgo.cc:57
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
DDTIDModuleAlgo::pitchStereoTol
double pitchStereoTol
Definition: DDTIDModuleAlgo.cc:92
DDTIDModuleAlgo::genMat
string genMat
Definition: DDTIDModuleAlgo.cc:38
DDTIDModuleAlgo::sideFrameMat
string sideFrameMat
Definition: DDTIDModuleAlgo.cc:58
DDTIDModuleAlgo::pitchMat
string pitchMat
Definition: DDTIDModuleAlgo.cc:89
DDTIDModuleAlgo::detTilt
double detTilt
Definition: DDTIDModuleAlgo.cc:41
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
DDTIDModuleAlgo::fullHeight
double fullHeight
Definition: DDTIDModuleAlgo.cc:42
DDTIDModuleAlgo::topFrameOver
double topFrameOver
Definition: DDTIDModuleAlgo.cc:56
DDTIDModuleAlgo::pitchName
vector< string > pitchName
Definition: DDTIDModuleAlgo.cc:88
DDTIDModuleAlgo::dlHybrid
double dlHybrid
Definition: DDTIDModuleAlgo.cc:45
dqmdumpme.first
first
Definition: dqmdumpme.py:55
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
DDTIDModuleAlgo::holeKaptonName
vector< string > holeKaptonName
Definition: DDTIDModuleAlgo.cc:70
DDTIDModuleAlgo::boxFrameWidth
double boxFrameWidth
Definition: DDTIDModuleAlgo.cc:52
DDTIDModuleAlgo::sideFrameOver
double sideFrameOver
Definition: DDTIDModuleAlgo.cc:61
DDTIDModuleAlgo::bottomFrameHeight
double bottomFrameHeight
Definition: DDTIDModuleAlgo.cc:53
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
DDTIDModuleAlgo::sideFrameThick
double sideFrameThick
Definition: DDTIDModuleAlgo.cc:60
DDTIDModuleAlgo::kaptonMat
string kaptonMat
Definition: DDTIDModuleAlgo.cc:66
DDTIDModuleAlgo::hybridWidth
double hybridWidth
Definition: DDTIDModuleAlgo.cc:86
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
DDSolidFactory::subtraction
static DDSolid subtraction(const DDName &name, const DDSolid &a, const DDSolid &b, const DDTranslation &t, const DDRotation &r)
Definition: DDSolid.cc:585
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
DDTIDModuleAlgo::activeRot
string activeRot
Definition: DDTIDModuleAlgo.cc:81
DDTIDModuleAlgo::hybridName
string hybridName
Definition: DDTIDModuleAlgo.cc:83
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
DDTIDModuleAlgo::kaptonName
vector< string > kaptonName
Definition: DDTIDModuleAlgo.cc:65
DDBase::name
const N & name() const
Definition: DDBase.h:59
DDTIDModuleAlgo::detectorN
int detectorN
Definition: DDTIDModuleAlgo.cc:39
DDTIDModuleAlgo::coolThick
double coolThick
Definition: DDTIDModuleAlgo.cc:96
DDTIDModuleAlgo::boxFrameMat
string boxFrameMat
Definition: DDTIDModuleAlgo.cc:49
DDTIDModuleAlgo::hybridHeight
double hybridHeight
Definition: DDTIDModuleAlgo.cc:85
DDTIDModuleAlgo::sideWidthBottom
double sideWidthBottom
Definition: DDTIDModuleAlgo.cc:76
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DDTIDModuleAlgo::coolMat
string coolMat
Definition: DDTIDModuleAlgo.cc:94
DDTIDModuleAlgo::waferMat
string waferMat
Definition: DDTIDModuleAlgo.cc:74
DDTIDModuleAlgo::coolWidth
double coolWidth
Definition: DDTIDModuleAlgo.cc:97
DDTIDModuleAlgo::dlTop
double dlTop
Definition: DDTIDModuleAlgo.cc:43
DDTIDModuleAlgo::boxFrameHeight
double boxFrameHeight
Definition: DDTIDModuleAlgo.cc:50
DDTIDModuleAlgo::holeKaptonRot
vector< string > holeKaptonRot
Definition: DDTIDModuleAlgo.cc:71
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
DDBase::ddname
const N & ddname() const
Definition: DDBase.h:61
DDTIDModuleAlgo::bottomFrameOver
double bottomFrameOver
Definition: DDTIDModuleAlgo.cc:54
DDTIDModuleAlgo::sideWidthTop
double sideWidthTop
Definition: DDTIDModuleAlgo.cc:75
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDTIDModuleAlgo::activeHeight
double activeHeight
Definition: DDTIDModuleAlgo.cc:79
createfilelist.int
int
Definition: createfilelist.py:10
DDTIDModuleAlgo::activeMat
string activeMat
Definition: DDTIDModuleAlgo.cc:78
PVValHelper::dy
Definition: PVValidationHelpers.h:49
DDTIDModuleAlgo::pitchThick
double pitchThick
Definition: DDTIDModuleAlgo.cc:91
module
Definition: vlib.h:198
DDTIDModuleAlgo::sideFrameWidth
double sideFrameWidth
Definition: DDTIDModuleAlgo.cc:59
DDTIDModuleAlgo::kaptonOver
double kaptonOver
Definition: DDTIDModuleAlgo.cc:69
DDTIDModuleAlgo::holeFrameName
vector< string > holeFrameName
Definition: DDTIDModuleAlgo.cc:62
DDTIDModuleAlgo::topFrameHeight
double topFrameHeight
Definition: DDTIDModuleAlgo.cc:55
DDTIDModuleAlgo::boxFrameThick
double boxFrameThick
Definition: DDTIDModuleAlgo.cc:51
DDTIDModuleAlgo::waferName
vector< string > waferName
Definition: DDTIDModuleAlgo.cc:73
PVValHelper::dz
Definition: PVValidationHelpers.h:50
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
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
DDTIDModuleAlgo::hybridThick
double hybridThick
Definition: DDTIDModuleAlgo.cc:87
DDTIDModuleAlgo::holeFrameRot
vector< string > holeFrameRot
Definition: DDTIDModuleAlgo.cc:63
DDTIDModuleAlgo::waferThick
vector< double > waferThick
Definition: DDTIDModuleAlgo.cc:80
DDSolidFactory::box
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
Definition: DDSolid.cc:533
DDTIDModuleAlgo::activeName
vector< string > activeName
Definition: DDTIDModuleAlgo.cc:77
DDTIDModuleAlgo::backplaneThick
vector< double > backplaneThick
Definition: DDTIDModuleAlgo.cc:82
DDTIDModuleAlgo::doComponents
bool doComponents
Definition: DDTIDModuleAlgo.cc:46
DDTIDModuleAlgo::boxFrameName
string boxFrameName
Definition: DDTIDModuleAlgo.cc:48
DDSolidFactory::trap
static DDSolid trap(const DDName &name, double pDz, double pTheta, double pPhi, double pDy1, double pDx1, double pDx2, double pAlp1, double pDy2, double pDx3, double pDx4, double pAlp2)
Definition: DDSolid.cc:595
DDTIDModuleAlgo::hybridMat
string hybridMat
Definition: DDTIDModuleAlgo.cc:84
class-composition.parent
parent
Definition: class-composition.py:88
PVValHelper::dx
Definition: PVValidationHelpers.h:48
DDTIDModuleAlgo::coolHeight
double coolHeight
Definition: DDTIDModuleAlgo.cc:95
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:66
DDRotation
ROOT::Math::Rotation3D DDRotation
Definition: DDEcalEndcapAlgo.cc:18
DDTIDModuleAlgo::dlBottom
double dlBottom
Definition: DDTIDModuleAlgo.cc:44