Skip to content

Conversation

@ZainaHurani
Copy link

Updated MACACO1 camera configuration with new components and sizes.

Updated MACACO1 camera configuration with new components and sizes.
Copy link
Collaborator

@anetxe anetxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Zaina,
Can you verify these few things and make the changes accordingly? thank!

camera.size = [4 * cm, 4 * cm, 7.6 * cm]
camera.color = [1, 1, 1, 1] # white
camera.size = [16 * cm, 40 * cm, 7.6 * cm]
camera.translation = [0, 0, 8.3 * cm]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, put by default the camera at the center of the world. The user should then place it in the main simulation file.

# Scatterer
holder1 = sim.add_volume("Box", f"{name}_Holder1")
holder1.mother = camera.name
holder1.material = "G4_PLASTIC_SC_VINYLTOLUENE"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not. But check please if this material corresponds to the one defined previously
Plastic: d=1.18 g/cm3 ; n=3; state=solid
+el: name=Carbon ; n=5
+el: name=Hydrogen ; n=8
+el: name=Oxygen ; n=2

pcb_scatt.mother = camera.name
pcb_scatt.material = "PCB"
pcb_scatt.size = [10.89 * cm, 20.7 * cm, 0.4 * cm]
pcb_scatt.translation = [0, 6.25 * cm, -2.26 * cm]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check translation. Is not -2.46 cm?

# Absorber
holder2 = sim.add_volume("Box", f"{name}_Holder2")
holder2.mother = camera.name
holder2.material = "G4_PLASTIC_SC_VINYLTOLUENE"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here. Check density and composition please

Thanks for the review!
I updated the default camera position to be at the world center, as suggested and fixed the coordinate of pcb_scatt. For the material, I checked the G4 files and it's not the same at all, I'm not sure why I used it in my code before, so I fixed it here and on vs.
@dsarrut dsarrut merged commit ca79a0e into OpenGATE:coresi_ccmod Dec 18, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants