Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 13, 2024
1 parent 5a01798 commit 172751c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BeamPipeChain_geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector /
xml_comp_t pipe(pipe_coll);

names.push_back(getAttrOrDefault<string>(pipe, _Unicode(name), ""));
ids.push_back (getAttrOrDefault<int>(pipe, _Unicode(id), 0));
ids.push_back(getAttrOrDefault<int>(pipe, _Unicode(id), 0));

// Vectors momentarily filled with zeros for pipes in between magnets
xCenters.push_back(getAttrOrDefault<double>(pipe, _Unicode(xcenter), 0));
Expand Down Expand Up @@ -116,7 +116,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector /
assembly.placeVolume(v_vacuum, Transform3D(RotationY(thetas[pipeN]),
Position(xCenters[pipeN], 0, zCenters[pipeN])));

DetElement vacuum_element(sdet, names[pipeN]+"_vacuum", ids[pipeN]);
DetElement vacuum_element(sdet, names[pipeN] + "_vacuum", ids[pipeN]);
vacuum_element.setPlacement(placed_vacuum);
}

Expand Down

0 comments on commit 172751c

Please sign in to comment.