148 LogDebug(
"TIBGeom") <<
"==>> Constructing DDTIBLayerAlgo_MTCC...";
156 LogDebug(
"TIBGeom") <<
"DDTIBLayerAlgo_MTCC test DeltaR (Detector Tilt) " << redgd1 <<
", " << redgd2
157 <<
" DeltaR (Cable+Cool) " << redgc1 <<
", " << redgc2;
165 <<
" from 0 to " << CLHEP::twopi / CLHEP::deg <<
" with Rin " << rmin <<
" Rout " << rmax
166 <<
" ZHalf " << 0.5 *
layerL;
176 <<
" from 0 to " << CLHEP::twopi / CLHEP::deg <<
" with Rin " << rin <<
" Rout " << rout
177 <<
" ZHalf " << 0.5 *
layerL;
180 LogDebug(
"TIBGeom") <<
"DDTIBLayerAlgo_MTCC test: " << layerIn.name() <<
" number 1 positioned in " << layer.name()
181 <<
" at (0,0,0) with no rotation";
192 double phideg = phix / CLHEP::deg;
195 double theta = 90 * CLHEP::deg;
196 double phiy = phix + 90. * CLHEP::deg;
200 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test: Creating a new "
201 <<
"rotation: " << rotstr <<
"\t90., " << phix / CLHEP::deg <<
", 90.,"
202 << phiy / CLHEP::deg <<
", 0, 0";
210 if (
n + 1 == (
int)
i) {
219 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << emptyDetIn.name() <<
" number " <<
n + 1
220 <<
" positioned in " << layerIn.name() <<
" at " << trdet <<
" with " <<
rotation;
226 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << emptyCabIn.name() <<
" number " <<
n + 1
227 <<
" positioned in " << layerIn.name() <<
" at " << trcab <<
" with " <<
rotation;
232 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << detIn.name() <<
" number " <<
n + 1 <<
" positioned in "
233 << layerIn.name() <<
" at " << trdet <<
" with " <<
rotation;
236 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << cabIn.name() <<
" number " <<
n + 1 <<
" positioned in "
237 << layerIn.name() <<
" at " << trcab <<
" with " <<
rotation;
250 <<
" from 0 to " << CLHEP::twopi / CLHEP::deg <<
" with Rin " << rin <<
" Rout " << rout
251 <<
" ZHalf " << 0.5 *
layerL;
254 LogDebug(
"TIBGeom") <<
"DDTIBLayerAlgo_MTCC test: " << layerOut.name() <<
" number 1 positioned in " << layer.name()
255 <<
" at (0,0,0) with no rotation";
266 double phideg = phix / CLHEP::deg;
269 double theta = 90 * CLHEP::deg;
270 double phiy = phix + 90. * CLHEP::deg;
274 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test: Creating a new "
275 <<
"rotation: " << rotstr <<
"\t90., " << phix / CLHEP::deg <<
", 90.,"
276 << phiy / CLHEP::deg <<
", 0, 0";
284 if (
n + 1 == (
int)
i) {
293 LogDebug(
"TIBGeom") <<
"DDTIBLayer test " << emptyDetOut.name() <<
" number " <<
n + 1 <<
" positioned in "
294 << layerOut.name() <<
" at " << trdet <<
" with " <<
rotation;
300 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << emptyCabOut.name() <<
" number " <<
n + 1
301 <<
" positioned in " << layerOut.name() <<
" at " << trcab <<
" with " <<
rotation;
306 LogDebug(
"TIBGeom") <<
"DDTIBLayer test " << detOut.name() <<
" number " <<
n + 1 <<
" positioned in "
307 << layerOut.name() <<
" at " << trdet <<
" with " <<
rotation;
310 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << cabOut.name() <<
" number " <<
n + 1 <<
" positioned in "
311 << layerOut.name() <<
" at " << trcab <<
" with " <<
rotation;
327 <<
" from " <<
phiMin / CLHEP::deg <<
" to " << (
phiMin +
phidiff) / CLHEP::deg <<
" with Rin "
328 << rin <<
" Rout " << rout <<
" ZHalf " << 0.25 *
layerL;
332 LogDebug(
"TIBGeom") <<
"DDTIBLayerAlgo_MTCC test: " << cylinder.name() <<
" number 1 positioned in " << layer.name()
333 <<
" at (0,0," << 0.25 *
layerL <<
") with no rotation";
340 <<
phidiff / CLHEP::deg <<
" with Rin " << rin <<
" Rout " << rout <<
" ZHalf " << 0.5 *
layerL;
343 LogDebug(
"TIBGeom") <<
"DDTIBLayerAlgo_MTCC test: " << cylinderIn.name() <<
" number 1 positioned in "
344 << cylinder.name() <<
" at (0,0," << -0.25 *
layerL <<
") with no rotation";
348 <<
" from " <<
phiMin / CLHEP::deg <<
" to " << (
phiMin +
phidiff) / CLHEP::deg <<
" with Rin "
349 << rin <<
" Rout " << rout <<
" ZHalf " << 0.5 *
supportW;
353 LogDebug(
"TIBGeom") <<
"DDTIBLayerAlgo_MTCC test: " << cylinderSup.name() <<
" number 1 positioned in "
354 << cylinderIn.name() <<
" at (0,0,0) with no rotation";
356 for (
unsigned int i = 0;
i <
ribW.size();
i++) {
362 <<
" from " << -0.5 *
width / CLHEP::deg <<
" to " << 0.5 *
width / CLHEP::deg <<
" with Rin "
363 << rin <<
" Rout " << rout <<
" ZHalf " <<
dz;
366 double phideg = phix / CLHEP::deg;
367 if (phideg >=
phiMin / CLHEP::deg && phideg <
phiMax / CLHEP::deg) {
370 double theta = 90 * CLHEP::deg;
371 double phiy = phix + 90. * CLHEP::deg;
375 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test: Creating a new "
376 <<
"rotation: " << rotstr <<
"\t90., " << phix / CLHEP::deg <<
", 90.,"
377 << phiy / CLHEP::deg <<
", 0, 0";
383 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << cylinderRib.name() <<
" number 1 positioned in "
384 << cylinderIn.name() <<
" at " << tran <<
" with " <<
rotation;
390 double dphi_dohm = CLHEP::twopi / ((double)
dohmN);
396 double rin_lo = rout_dohm;
401 << +0.5 * (dphi_dohm) / CLHEP::deg <<
" with Rin " << rin_lo <<
" Rout " << rout_lo <<
" ZHalf "
408 name_lo_r =
name +
"_PRIM" +
"_lo" +
"_r";
409 name_lo_l =
name +
"_PRIM" +
"_lo" +
"_l";
414 double rin_up = rout_lo + 2. *
dohmAuxT;
419 << +0.5 * (dphi_dohm) / CLHEP::deg <<
" with Rin " << rin_up <<
" Rout " << rout_up <<
" ZHalf "
426 name_up_r =
name +
"_PRIM" +
"_up" +
"_r";
427 name_up_l =
name +
"_PRIM" +
"_up" +
"_l";
431 for (
unsigned int i = 0;
i < (
unsigned int)
dohmN;
i++) {
442 }
else if ((
unsigned int)
dohmList[
i] == 1) {
451 dohmCarrier_lo_r = dohmCarrierPrim_lo_r;
452 dohmCarrier_lo_l = dohmCarrierPrim_lo_l;
453 dohmCarrier_up_r = dohmCarrierPrim_up_r;
454 dohmCarrier_up_l = dohmCarrierPrim_up_l;
457 dohmCarrier_lo_r = dohmCarrierPrimAux_lo_r;
458 dohmCarrier_lo_l = dohmCarrierPrimAux_lo_l;
459 dohmCarrier_up_r = dohmCarrierPrimAux_up_r;
460 dohmCarrier_up_l = dohmCarrierPrimAux_up_l;
465 double phix = ((double)
i + 0.5) * dphi_dohm;
466 double phideg = phix / CLHEP::deg;
470 double theta = 90 * CLHEP::deg;
471 double phiy = phix + 90. * CLHEP::deg;
475 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test: Creating a new "
476 <<
"rotation: " << rotstr <<
"\t90., " << phix / CLHEP::deg <<
", 90.,"
477 << phiy / CLHEP::deg <<
", 0, 0";
484 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmCarrier_lo_r.
name() <<
" z+ number " <<
i + 1
485 <<
" positioned in " <<
parent().name() <<
" at " << tran <<
" with " <<
rotation;
488 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmCarrier_up_r.
name() <<
" z+ number " <<
i + 1
489 <<
" positioned in " <<
parent().name() <<
" at " << tran <<
" with " <<
rotation;
511 <<
dohmCableMaterial <<
" of dimensions " << dx_cable <<
", " << dy_cable <<
", " << dz_cable;
515 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmPrim.name() <<
" z+ number " << 1 <<
" positioned in "
516 << dohmCarrierPrim_lo_r.name() <<
" at " << tran <<
" with no rotation";
519 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmCablePrim.name() <<
" copy number " << 1 <<
" positioned in "
520 << dohmCarrierPrim_lo_r.name() <<
" at " << tran <<
" with no rotation";
523 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmCablePrim.name() <<
" copy number " << 2 <<
" positioned in "
524 << dohmCarrierPrim_lo_r.name() <<
" at " << tran <<
" with no rotation";
542 <<
dohmCableMaterial <<
" of dimensions " << dx_cable <<
", " << dy_cable <<
", " << dz_cable;
550 <<
" of dimensions " <<
dx <<
", " <<
dy <<
", " <<
dz;
555 <<
dohmCableMaterial <<
" of dimensions " << dx_cable <<
", " << dy_cable <<
", " << dz_cable;
559 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmAux.name() <<
" z+ number " << 1 <<
" positioned in "
560 << dohmCarrierPrimAux_lo_r.name() <<
" at " << tran <<
" with no rotation";
563 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmCablePrim.name() <<
" copy number " << 1 <<
" positioned in "
564 << dohmCarrierPrimAux_lo_r.name() <<
" at " << tran <<
" with no rotation";
567 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmCablePrim.name() <<
" copy number " << 2 <<
" positioned in "
568 << dohmCarrierPrimAux_lo_r.name() <<
" at " << tran <<
" with no rotation";
571 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmAux.name() <<
" z+ number " << 1 <<
" positioned in "
572 << dohmCarrierPrimAux_lo_r.name() <<
" at (0,0,0) with no rotation";
575 LogDebug(
"TIBGeom") <<
"DDTIBLayer_MTCC test " << dohmCableAux.name() <<
" copy number " << 1 <<
" positioned in "
576 << dohmCarrierPrimAux_lo_r.name() <<
" at " << tran <<
" with no rotation";