Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small errors in proton CT example #593

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/source/figures/proton_ct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ GATE 10
add_spiral_insert(sim, spiral, f"SpiralInsert{i:02d}", translation=[posx[i] * mm, posy[i] * mm, 0])

# Spiral rotation
sim.run_timing_intervals = gate.runtiming.range_timing(0, 1 * sec, n)
tr, rot = gate.geometry.utility.volume_orbiting_transform("z", 0, 360, n, spiral.translation, spiral.rotation)
spiral.add_dynamic_parametrisation(translation=tr, rotation=rot)

Expand Down Expand Up @@ -202,9 +201,9 @@ GATE 10
source.energy.type = "mono"
source.position.type = "box"
source.position.size = [1 * nm, 16 * mm, 1 * nm]
source.position.translation = [-1060 * mm, 0 * mm, 0 * mm]
source.position.translation = [1060 * mm, 0 * mm, 0 * mm]
source.direction.type = "focused"
source.direction.focus_point = [-1000 * mm, 0 * mm, 0 * mm]
source.direction.focus_point = [1000 * mm, 0 * mm, 0 * mm]
source.n = 720000 / sim.number_of_threads


Expand Down Expand Up @@ -324,8 +323,8 @@ GATE 10
phase_space.filters.append(filter)
return phase_space

phsp_actor_in = add_detector(sim, "In", [-110 * mm, 0 * mm, 0 * mm])
phsp_actor_out = add_detector(sim, "Out", [110 * mm, 0 * mm, 0 * mm])
phsp_actor_in = add_detector(sim, "In", [110 * mm, 0 * mm, 0 * mm])
phsp_actor_out = add_detector(sim, "Out", [-110 * mm, 0 * mm, 0 * mm])
phsp_actor_in.output_filename = "PhaseSpaceIn.root"
phsp_actor_out.output_filename = "PhaseSpaceOut.root"

Expand Down
Loading