55 double stepSize = content.getLength(
"stepSize", 5 * CLHEP::um);
59 vector<double> bar_fei4 = content.getArray(
"bar_fei4");
60 B2INFO(
"Contents of bar_fei4: ");
61 for (
double value : bar_fei4) {
62 B2INFO(
"value: " << value);
66 for (
const GearDir& activeParams : content.getNodes(
"Active")) {
69 G4Box* s_FEI4 =
new G4Box(
"s_FEI4",
70 activeParams.getLength(
"fei4_dx")*CLHEP::cm,
71 activeParams.getLength(
"fei4_dy")*CLHEP::cm,
72 activeParams.getLength(
"fei4_dz")*CLHEP::cm);
74 string matFEI4 = activeParams.getString(
"MaterialFEI4");
78 l_FEI4->SetUserLimits(
new G4UserLimits(stepSize));
81 G4ThreeVector FEI4pos = G4ThreeVector(
82 activeParams.getLength(
"x_fei4") * CLHEP::cm,
83 activeParams.getLength(
"y_fei4") * CLHEP::cm,
84 activeParams.getLength(
"z_fei4") * CLHEP::cm
87 G4RotationMatrix* rot_fei4 =
new G4RotationMatrix();
88 rot_fei4->rotateX(activeParams.getAngle(
"AngleX"));
89 rot_fei4->rotateY(activeParams.getAngle(
"AngleY"));
90 rot_fei4->rotateZ(activeParams.getAngle(
"AngleZ"));
93 new G4PVPlacement(rot_fei4, FEI4pos, l_FEI4,
"p_FEI4", &topVolume,
false, fei4Nb);