16 const std::vector<std::string>& fvec =
val.strings();
18 throw cms::Exception(
"MTDParametersFromDD") <<
"Failed to get " <<
s <<
" tag.";
23 result = static_cast<int>(eparser);
26 throw cms::Exception(
"MTDParametersFromDD") <<
"Failed to get " <<
s <<
" tag.";
32 std::array<std::string, 2> mtdSubdet{{
"BTL",
"ETL"}};
34 for (
const auto&
name : mtdSubdet) {
39 putOne(subdet, subdetPars, ptp);
51 int topoMode = getMTDTopologyMode(
"TopologyMode",
sv);
54 throw cms::Exception(
"MTDParametersFromDD") <<
"Not found " << attribute.c_str() <<
" but needed.";
63 std::array<std::string, 2> mtdSubdet{{
"BTL",
"ETL"}};
65 for (
const auto&
name : mtdSubdet) {
67 for (
auto const& it : vmap) {
68 if (dd4hep::dd::compareEqual(dd4hep::dd::noNamespace(it.first),
name)) {
69 std::vector<int> subdetPars;
70 for (
const auto&
i : it.second)
71 subdetPars.emplace_back(std::round(
i));
72 putOne(subdet, subdetPars, ptp);
77 auto it = vmap.find(
"vPars");
78 if (it !=
end(vmap)) {
79 std::vector<int> tmpVec;
80 for (
const auto&
i : it->second)
81 tmpVec.emplace_back(std::round(
i));
88 mypar.filter(ref, attribute,
"MTD");
90 std::string topoModeS(mypar.specPar(
"mtdNumbering")->strValue(
"TopologyMode"));
91 if (!topoModeS.empty()) {
94 topoMode = static_cast<int>(eparser);
97 throw cms::Exception(
"MTDParametersFromDD") <<
"Not found " << attribute.c_str() <<
" but needed.";