Definition at line 115 of file DDHGCalWaferP.cc.
120 static constexpr
double tol = 0.00001;
121 static const double sqrt3 =
std::sqrt(3.0);
123 double R = 2.0 *
r / sqrt3;
127 for (
unsigned int k = 0;
k <
tags_.size(); ++
k) {
130 std::vector<std::pair<double, double> > wxy =
132 std::vector<double> xM, yM;
133 for (
unsigned int i = 0;
i < (wxy.size() - 1); ++
i) {
134 xM.emplace_back(wxy[
i].
first);
135 yM.emplace_back(wxy[
i].
second);
138 std::vector<double> zx(2, 0), zy(2, 0),
scale(2, 1.0);
144 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferP: " << solid.
name() <<
" extruded polygon made of " << matName
145 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
146 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
148 << xM.size() <<
" edges";
149 for (
unsigned int j = 0;
j < xM.size(); ++
j)
155 std::vector<double> xL, yL;
156 for (
unsigned int i = 0;
i < (wxy.size() - 1); ++
i) {
157 xL.emplace_back(wxy[
i].
first);
158 yL.emplace_back(wxy[
i].
second);
160 std::vector<DDLogicalPart> glogs(
materials_.size());
161 std::vector<int> copyNumber(
materials_.size(), 1);
162 double zi(-0.5 *
thick_), thickTot(0.0);
163 for (
unsigned int l = 0;
l <
layers_.size();
l++) {
170 if (copyNumber[
i] == 1) {
184 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferP: " << solid.
name() <<
" extruded polygon made of " << matN
185 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
186 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
188 <<
" and " << xL.size() <<
" edges";
189 for (
unsigned int j = 0;
j < xL.size(); ++
j)
199 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferP: " << solid.
name() <<
" extruded polygon made of " << matN
200 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
201 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
203 <<
" and " << xL.size() <<
" edges";
204 for (
unsigned int j = 0;
j < xL.size(); ++
j)
213 << glogs[
i].name() <<
" at " << tran <<
" with no rotation";
220 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferP: " << glogs[
i].name() <<
" number " << copyNumber[
i]
221 <<
" positioned in " << glogM.
name() <<
" at " << tran0 <<
" with no rotation";
229 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" is smaller than " << thickTot
230 <<
": thickness of all its components **** ERROR ****";
232 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" does not match with " << thickTot
233 <<
" of the components";
References funct::abs(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), DDSolidFactory::extrudedpolygon(), first, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, cmsLHEtoEOSManager::l, layerNames_, layers_, layerThick_, layerType_, material_, materials_, DDBase< N, C >::name(), orientations_, class-composition::parent, partialTypes_, DDCompactView::position(), posSense_, dttmaxenums::R, alignCSCRings::r, makeMuonMisalignmentScenario::rot, L1EGammaCrystalsEmulatorProducer_cfi::scale, edm::second(), senseName_, senseT_, senseType_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, tags_, thick_, waferSize_, waferThick_, HGCalWaferMask::waferXY(), and zw().