11 #include <framework/gearbox/GearDir.h>
12 #include <ir/dbobjects/CryostatGeo.h>
17 void CryostatGeo::initialize(
const GearDir& content)
23 addParameter(
"LimitStepLength", content.getInt(
"LimitStepLength"));
25 std::vector<std::string> names = {
"TubeR",
"TubeR2",
"TubeL",
"A1spc1",
"A1spc2",
"B1spc1",
"B1spc2",
"D1spc1",
"E1spc1",
"C1wal1",
"F1wal1"};
27 for (
auto name : names) {
28 GearDir sect(content, name +
"/");
29 addParameters(sect, name);
32 std::string straightSections;
33 for (
const GearDir& straight : content.getNodes(
"Straight")) {
34 std::string name = straight.getString(
"@name");
35 addParameters(straight, name);
36 if (!straightSections.empty()) straightSections +=
" ";
37 straightSections += name;
39 addParameter(
"Straight", straightSections);