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

how to change pet scanner #351

Open
jizhang02 opened this issue Feb 7, 2024 · 1 comment
Open

how to change pet scanner #351

jizhang02 opened this issue Feb 7, 2024 · 1 comment

Comments

@jizhang02
Copy link
Contributor

Hello,

I use pet = pet_biograph.add_pet(sim, "pet") as a pet scanner. The problem is the simulation result under this default setting can not cover the whole body.

I would like to ask if I want to add more rings, how can I change them? In siementsbiograph.py there is code like:

    # 4 rings
    ring = sim.add_volume("Tubs", f"{name}_ring")
    ring.mother = pet.name
    ring.rmax = 460 * mm
    ring.rmin = 410 * mm
    ring.dz = 56 * mm / 2
    ring.translation = get_grid_repetition([1, 1, 4], [0, 0 * mm, 56 * mm])
    ring.material = "G4_AIR"
    ring.color = transparent

I changed the number [1, 1, 4] to [1, 1, 20],, there was an error:

image

@jizhang02
Copy link
Contributor Author

Hi,

I solved this by changing the code in siementsbiograph.py:

image
then the gap between rings and overlap exceptions are gone.

I hope in the future, the ring number can be as a parameter to pass in the function pet_biograph.add_pet(sim, "pet")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant