245 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalParametersFromDD (DD4Hep)::build called with "
246 <<
"names " <<
name <<
":" << namew <<
":" << namec <<
":" << namet;
251 std::vector<std::string> tempS;
252 std::vector<double> tempD;
253 bool ok = fv.firstChild();
254 tempS = fv.get<std::vector<std::string> >(
name2,
"GeometryMode");
256 tempS = fv.get<std::vector<std::string> >(
name,
"GeometryMode");
257 std::string sv = (!tempS.empty()) ? tempS[0] :
"HGCalGeometryMode::Hexagon8Full";
261 php.
mode_ = getGeometryMode(
sv);
271 std::unique_ptr<HGCalGeomParameters>
geom = std::make_unique<HGCalGeomParameters>();
273 tempS = fv.get<std::vector<std::string> >(namet,
"WaferMode");
274 std::string sv2 = (!tempS.empty()) ? tempS[0] :
"HGCalGeometryMode::Polyhedra";
275 mode = getGeometryWaferMode(sv2);
287 tempD = fv.get<std::vector<double> >(
name,
"LevelZSide");
291 tempD = fv.get<std::vector<double> >(
name,
"FirstMixedLayer");
293 tempD = fv.get<std::vector<double> >(
name,
"DetectorType");
296 tempD = fv.get<std::vector<double> >(
name,
"WaferMaskMode");
298 tempD = fv.get<std::vector<double> >(
name,
"WaferZside");
307 tempS = fv.get<std::vector<std::string> >(namet,
"WaferMode");
308 std::string sv2 = (!tempS.empty()) ? tempS[0] :
"HGCalGeometryMode::ExtrudedPolygon";
309 mode = getGeometryWaferMode(sv2);
310 tempD = fv.get<std::vector<double> >(namet,
"NumberOfCellsFine");
312 tempD = fv.get<std::vector<double> >(namet,
"NumberOfCellsCoarse");
314 tempD = fv.get<std::vector<double> >(namet,
"WaferSize");
316 tempD = fv.get<std::vector<double> >(namet,
"WaferThickness");
318 tempD = fv.get<std::vector<double> >(namet,
"SensorSeparation");
320 tempD = fv.get<std::vector<double> >(namet,
"MouseBite");
333 for (
int k = 0;
k < 2; ++
k)
339 geom->loadSpecParsHexagon(fv, php,
name, namew, namec,
name2);
341 geom->loadGeometryHexagon(cpv, php,
name, namew, namec,
mode);
343 geom->loadCellParsHexagon(vmap, php);
349 geom->loadSpecParsHexagon(fv, php,
name, namew, namec,
name2);
351 geom->loadGeometryHexagon(cpv, php,
name, namew, namec,
mode);
353 geom->loadWaferHexagon(php);
355 geom->loadCellParsHexagon(vmap, php);
360 geom->loadSpecParsHexagon8(fv, vmap, php,
name);
362 geom->loadGeometryHexagon8(cpv, php,
name, 1);
366 geom->loadWaferHexagon8(php);
369 geom->loadSpecParsHexagon8(fv, vmap, php,
name);
371 geom->loadGeometryHexagon8(cpv, php,
name, 1);
375 geom->loadWaferHexagon8(php);
379 tempD = fv.get<std::vector<double> >(
name,
"LevelZSide");
382 tempD = fv.get<std::vector<double> >(
name,
"FirstLayer");
384 tempD = fv.get<std::vector<double> >(
name,
"FirstMixedLayer");
386 tempD = fv.get<std::vector<double> >(
name,
"DetectorType");
388 tempD = fv.get<std::vector<double> >(
name,
"WaferThickness");
390 tempD = fv.get<std::vector<double> >(
name,
"MinimumTileSize");
394 tempD = fv.get<std::vector<double> >(
name,
"WaferMaskMode");
396 tempD = fv.get<std::vector<double> >(
name,
"WaferZside");
406 geom->loadSpecParsTrapezoid(fv, vmap, php,
name);
410 geom->loadCellTrapezoid(php);
412 edm::LogError(
"HGCalGeom") <<
"Unknown Geometry type " << php.
mode_ <<
" for HGCal " <<
name <<
":" << namew
415 <<
"Unknown Geometry type " << php.
mode_ <<
" for HGCal " <<
name <<
":" << namew <<
":" << namec;
418 edm::LogError(
"HGCalGeom") <<
" Attribute Volume:" <<
name <<
" not found but needed.";
419 throw cms::Exception(
"DDException") <<
"Attribute Volume:" <<
name <<
" not found but needed.";
423 <<
" with flag " <<
ok;