109 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalTBParametersFromDD (DD4hep)::build called with " 110 <<
"names " <<
name <<
":" << namew <<
":" << namec <<
":" << namet <<
":" <<
name2;
115 std::vector<std::string> tempS;
116 std::vector<double> tempD;
117 bool ok = fv.firstChild();
118 tempS = fv.get<std::vector<std::string> >(
name2,
"GeometryMode");
120 tempS = fv.get<std::vector<std::string> >(
name,
"GeometryMode");
122 std::string sv = (!tempS.empty()) ? tempS[0] :
"HGCalGeometryMode::Hexagon8Full";
137 std::unique_ptr<HGCalTBGeomParameters>
geom = std::make_unique<HGCalTBGeomParameters>();
139 tempS = fv.get<std::vector<std::string> >(namet,
"WaferMode");
140 std::string sv2 = (!tempS.empty()) ? tempS[0] :
"HGCalGeometryMode::Polyhedra";
150 geom->loadSpecParsHexagon(fv, php,
name, namew, namec,
name2);
152 geom->loadGeometryHexagon(cpv, php,
name, namew, namec,
mode);
154 geom->loadCellParsHexagon(vmap, php);
160 geom->loadSpecParsHexagon(fv, php,
name, namew, namec,
name2);
162 geom->loadGeometryHexagon(cpv, php,
name, namew, namec,
mode);
164 geom->loadWaferHexagon(php);
166 geom->loadCellParsHexagon(vmap, php);
171 edm::LogError(
"HGCalGeom") <<
" Attribute Volume:" <<
name <<
" not found but needed.";
172 throw cms::Exception(
"DDException") <<
"Attribute Volume:" <<
name <<
" not found but needed.";
175 edm::LogVerbatim(
"HGCalGeom") <<
"Return from HGCalTBParametersFromDD::build" 176 <<
" with flag " <<
ok;
Log< level::Info, true > LogVerbatim
const cms::DDDetector * detector() const
Log< level::Error, false > LogError
std::unordered_map< std::string, std::vector< double > > DDVectorsMap
WaferMode getGeometryWaferMode(const char *s, const DDsvalues_type &sv)
GeometryMode getGeometryMode(const char *s, const DDsvalues_type &sv)
HGCalGeometryMode::GeometryMode mode_
cms::DDVectorsMap const & vectors() const