Skip to content

Conversation

@ManuelHu
Copy link
Contributor

No description provided.

@tdixon97
Copy link
Contributor

I think for the background model we also want for some sources to give a different weighting, I am thinking of 2vbb where you want this proportional to mass*enrichment.
Easy to add?

@gipert
Copy link
Member

gipert commented Jan 29, 2026

not sure how to implement? we would somehow need to extract the density of an isotope in the volume in the confinement code

@tdixon97
Copy link
Contributor

Well enrichement fraction attached to the G4PhysicalVolume no?

@gipert
Copy link
Member

gipert commented Jan 29, 2026

There is no such thing attached to the G4 object

@ManuelHu
Copy link
Contributor Author

surely we can calculate the mass fraction of an isotope, similar to what this PR already does to get the materials density. certainly not straightforward (the material api is horrible), but doable.

@ManuelHu
Copy link
Contributor Author

I had a quick look, getting the mass of an isotope in a volume is ~ 10 lines of code.

@ManuelHu
Copy link
Contributor Author

should now be all implemented and tested

@tdixon97
Copy link
Contributor

tdixon97 commented Jan 31, 2026 via email

@ManuelHu ManuelHu merged commit 178f135 into legend-exp:main Feb 5, 2026
8 of 9 checks passed
@ManuelHu ManuelHu deleted the sample-mass branch February 5, 2026 14:02
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