-
Notifications
You must be signed in to change notification settings - Fork 5
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
New example to generate decay spectra as a tree #103
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
Nice! On top of energy perhaps angular distribution could be registered, and use a TH2D histogram as an input for the generator later on. |
Perhaps it would be good to have a |
I just noticed the example 08 is failing for some reason, even tough this PR does not modify any code files... 🤔 |
Perhaps a PR at geant4lib was merged and breaks this example. Those examples are not being validated at the geant4lib, that's why I suspect the source of the problem could be there. |
It also seems that restG4 validation is not present inside the framework pipelines. So, any change in framework or geant4lib could break restG4 without noticing. |
Perhaps something has changed in framework? Just trigger master validation to check. I think we should trigger |
Apparently something has changed in Last validation succeed happened on the 7th of March, so we should check what changed in between. My best guess is this PR rest-for-physics/framework#387 |
…-for-physics/restG4 into lobis-decay-spectra-example * 'lobis-decay-spectra-example' of https://github.com/rest-for-physics/restG4: use solid detector
It could be also something that changed on geant4lib |
I have added a new example which illustrates how to use restG4 to generate the decay spectra of a given decay.
It stores an energy distribution as a separate TTree for gamma, e-, e+ and alpha particles produced by the decay. This tree is generated by a macro present in the example. A root histogram could also be produced which could be used as the primary energy distribution in a simulation.
The example could also be modified to compute the energy spectra after the decay products go through some material (e.g. 1cm of lead).