Dear FLUKA experts,
I am currently running a simulation involving the production of muons (mu+/-). To facilitate muon production, I have enabled photonuclear interactions with a bias-interaction length of 0.001.
I’m interested on saving informations regarding the muon when it is generated (position, momentum and weight).
So, I followed this logic:
- I create a routine mgdraw.f that uses the USDRAW entry. So, whenever any particle interacts it “activates”.
- I check if there are muons among its secondaries
- If there are muons, then I save the interaction vertex and the properties of the muon (momentum, weight, etc)
Here is the code snippet I am using to accomplish this:
DO n=1, NP
IF ((KPART(n).eq.10).or.(KPART(n).eq.11)) THEN
WRITE(IODRAW, '(4(I15, ","), 7(ES15.7,","), ES15.7)')
& NCASE, JTRACK, ICODE, KPART(n),
& XSCO, YSCO, ZSCO,
& PLR(n), CXR(n), CYR(n), CZR(n), WEI(n)
END IF
END DO
However, I have noticed that I am not saving the muons that are produced through photonuclear interactions. Instead of seeing muons with photons as their parent particles in the dump, I only observe muons with other muons as their secondaries.
Therefore, I would appreciate your guidance on whether my logic is flawed or if there is a better approach to achieve my objective.
Thank you for your assistance.