Definition at line 101 of file DDHGCalWaferF.cc.
106 static constexpr
double tol = 0.00001;
107 static const double sqrt3 =
std::sqrt(3.0);
109 double RM2 = rM / sqrt3;
111 double r = 0.5 *
R * sqrt3;
113 double R2 =
r2 / sqrt3;
116 std::vector<double> xM = {rM, 0, -rM, -rM, 0, rM};
117 std::vector<double> yM = {RM2, 2 * RM2, RM2, -RM2, -2 * RM2, -RM2};
119 std::vector<double> zx(2, 0), zy(2, 0),
scale(2, 1.0);
126 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferF: " << solid.
name() <<
" extruded polygon made of " << matName
127 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
128 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
129 <<
" and " << xM.size() <<
" edges";
130 for (
unsigned int k = 0;
k < xM.size(); ++
k)
135 std::vector<double> xL = {
r2, 0, -
r2, -
r2, 0,
r2};
136 std::vector<double> yL = {R2, 2 * R2, R2, -R2, -2 * R2, -R2};
137 std::vector<DDLogicalPart> glogs(
materials_.size());
138 double zi(-0.5 *
thick_), thickTot(0.0);
139 for (
unsigned int l = 0;
l <
layers_.size();
l++) {
149 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferF: " << solid.
name() <<
" extruded polygon made of " << matN
150 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
151 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
152 <<
" and " << xL.size() <<
" edges";
153 for (
unsigned int k = 0;
k < xL.size(); ++
k)
162 <<
" positioned in " << glogM.
name() <<
" at " << tran0 <<
" with no rotation";
168 for (
int u = 0; u < 2 *
nCells_; ++u) {
172 double yp = (u - 0.5 *
v - n2) * 2 *
r;
173 double xp = (1.5 * (
v -
nCells_) + 1.0) *
R;
175 if ((u == 0) && (
v == 0))
177 else if ((u == 0) && (
v ==
nCells_ - 1))
185 else if ((u ==
nCells_) && (
v == 0))
193 else if (u == (2 *
nCells_ - 1))
204 <<
"DDHGCalWaferF: " <<
cellNames_[cell] <<
" number " <<
copy <<
" positioned in " << glogs[
i].name()
205 <<
" at " << tran <<
" with no rotation";
214 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" is smaller than " << thickTot
215 <<
": thickness of all its components **** ERROR ****";
217 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" does not match with " << thickTot
218 <<
" 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_, 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, waferSepar_, waferSize_, and zw().