Definition at line 104 of file DDHGCalWaferF.cc.
109 static constexpr
double tol = 0.00001;
110 static const double sqrt3 =
std::sqrt(3.0);
112 double RM2 = rM / sqrt3;
114 double r = 0.5 *
R * sqrt3;
116 double R2 =
r2 / sqrt3;
119 std::vector<double> xM = {rM, 0, -rM, -rM, 0, rM};
120 std::vector<double> yM = {RM2, 2 * RM2, RM2, -RM2, -2 * RM2, -RM2};
122 std::vector<double> zx(2, 0), zy(2, 0),
scale(2, 1.0);
129 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferF: " << solid.
name() <<
" extruded polygon made of " << matName
130 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
131 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
132 <<
" and " << xM.size() <<
" edges";
133 for (
unsigned int k = 0;
k < xM.size(); ++
k)
138 std::vector<double> xL = {
r2, 0, -
r2, -
r2, 0,
r2};
139 std::vector<double> yL = {R2, 2 * R2, R2, -R2, -2 * R2, -R2};
140 std::vector<DDLogicalPart> glogs(
materials_.size());
141 double zi(-0.5 *
thick_), thickTot(0.0);
142 for (
unsigned int l = 0;
l <
layers_.size();
l++) {
157 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferF: " << solid.
name() <<
" extruded polygon made of " << matN
158 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
159 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
160 <<
" and " << xL.size() <<
" edges";
161 for (
unsigned int k = 0;
k < xL.size(); ++
k)
170 <<
" positioned in " << glogM.
name() <<
" at " << tran0 <<
" with no rotation";
176 for (
int u = 0; u < 2 *
nCells_; ++u) {
180 double yp = (u - 0.5 *
v -
n2) * 2 *
r;
181 double xp = (1.5 * (
v -
nCells_) + 1.0) *
R;
183 if ((u == 0) && (
v == 0))
185 else if ((u == 0) && (
v ==
nCells_ - 1))
193 else if ((u ==
nCells_) && (
v == 0))
201 else if (u == (2 *
nCells_ - 1))
212 <<
"DDHGCalWaferF: " <<
cellNames_[cell] <<
" number " <<
copy <<
" positioned in " << glogs[
i].name()
213 <<
" at " << tran <<
" with no rotation";
222 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" is smaller than " << thickTot
223 <<
": thickness of all its components **** ERROR ****";
225 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" does not match with " << thickTot
226 <<
" of the components";
References funct::abs(), cellNames_, cellType_, filterCSVwithJSON::copy, copyNumber_, DDBase< N, C >::ddname(), DDSplit(), DDSolidFactory::extrudedpolygon(), first, mps_fire::i, dqmdumpme::k, cmsLHEtoEOSManager::l, layerNames_, layers_, layerThick_, layerType_, material_, materials_, callgraph::n2, DDBase< N, C >::name(), nCells_, HGCalTypes::packCellTypeUV(), class-composition::parent, DDCompactView::position(), dttmaxenums::R, alignCSCRings::r, diffTwoXMLs::r2, makeMuonMisalignmentScenario::rot, L1EGammaCrystalsEmulatorProducer_cfi::scale, edm::second(), mathSSE::sqrt(), thick_, findQualityFiles::v, waferSize_, waferThick_, and zw().