Definition at line 98 of file DDPixBarLayerAlgo.cc.
102 double dphi = CLHEP::twopi /
number;
105 double x1 = (
d1 + d2) / (2. *
sin(0.5 * dphi));
110 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: Rmin/Rmax " << rmin <<
", " << rmax <<
" d1/d2 " <<
d1 <<
", " << d2
111 <<
" x1/x2 " <<
x1 <<
", " <<
x2;
117 <<
" from 0 to " << CLHEP::twopi / CLHEP::deg <<
" with Rin " << rtmi <<
" Rout " << rtmx
123 double rr = 0.5 * (rmax + rmin);
124 double dr = 0.5 * (rmax - rmin);
127 solid =
DDSolidFactory::trap(
DDName(
name,
idNameSpace), 0.5 *
coolDz, 0, 0, h1, d2,
d1, 0, h1, d2,
d1, 0);
128 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " << solid.
name() <<
" Trap made of " <<
tubeMat
129 <<
" of dimensions " << 0.5 *
coolDz <<
", 0, 0, " << h1 <<
", " << d2 <<
", " <<
d1 <<
", 0, "
130 << h1 <<
", " << d2 <<
", " <<
d1 <<
", 0";
138 solid =
DDSolidFactory::trap(
DDName(
name,
idNameSpace), 0.5 *
coolDz, 0, 0, h1, d2,
d1, 0, h1, d2,
d1, 0);
139 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " << solid.
name() <<
" Trap made of " <<
coolMat
140 <<
" of dimensions " << 0.5 *
coolDz <<
", 0, 0, " << h1 <<
", " << d2 <<
", " <<
d1 <<
", 0, "
141 << h1 <<
", " << d2 <<
", " <<
d1 <<
", 0";
145 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " << cool.name() <<
" number 1 positioned in " << coolTube.name()
146 <<
" at (0,0,0) with no rotation";
152 double phi0 = 90 * CLHEP::deg;
154 double phi = phi0 +
i * dphi;
155 double phix, phiy, rrr,
xx;
159 if (
i == 0 ||
i ==
nphi) {
164 phix =
phi - 90 * CLHEP::deg;
165 phiy = 90 * CLHEP::deg + phix;
166 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: Creating a new "
167 <<
"rotation: " << rots <<
"\t90., " << phix / CLHEP::deg <<
", 90.," << phiy / CLHEP::deg
171 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " << ladderHalf <<
" number " <<
copy <<
" positioned in "
172 <<
layer.name() <<
" at " << tran <<
" with " <<
rot;
178 phix =
phi + 90 * CLHEP::deg;
179 phiy = 90 * CLHEP::deg + phix;
180 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: Creating a new "
181 <<
"rotation: " << rots <<
"\t90., " << phix / CLHEP::deg <<
", 90.," << phiy / CLHEP::deg
185 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " << ladderHalf <<
" number " <<
copy <<
" positioned in "
186 <<
layer.name() <<
" at " << tran <<
" with " <<
rot;
194 phix =
phi - 90 * CLHEP::deg;
196 phix =
phi + 90 * CLHEP::deg;
197 phiy = phix + 90. * CLHEP::deg;
198 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: Creating a new "
199 <<
"rotation: " << rots <<
"\t90., " << phix / CLHEP::deg <<
", 90.," << phiy / CLHEP::deg
203 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " << ladderFull <<
" number " <<
copy <<
" positioned in "
204 <<
layer.name() <<
" at " << tran <<
" with " <<
rot;
209 rots =
idName + to_string(
i + 100);
210 phix =
phi + 0.5 * dphi;
212 phix += 180 * CLHEP::deg;
213 phiy = phix + 90. * CLHEP::deg;
214 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: Creating a new "
215 <<
"rotation: " << rots <<
"\t90., " << phix / CLHEP::deg <<
", 90.," << phiy / CLHEP::deg
219 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " << coolTube.name() <<
" number " <<
i + 1 <<
" positioned in "
220 <<
layer.name() <<
" at " << tran <<
" with " <<
rot;
References filterCSVwithJSON::copy, funct::cos(), d1, DDBase< N, C >::ddname(), DDrot(), DDSplit(), flavorHistoryFilter_cfi::dr, first, mps_fire::i, versionedElectronIDProducer_cfi::idName, PVValHelper::ladder, phase1PixelTopology::layer, LogDebug, Skims_PA_cff::name, DDName::name(), DDBase< N, C >::name(), nphi, contentValuesFiles::number, class-composition::parent, DDCompactView::position(), makeMuonMisalignmentScenario::rot, findQualityFiles::rr, edm::second(), funct::sin(), mathSSE::sqrt(), DDSolidFactory::trap(), DDSolidFactory::tubs(), testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, and geometryCSVtoXML::xx.