Empty USERDUMP output file for positron

Dear Experts,

I am having issue getting results from USERDUMP scoring, for one particular particle, positron. In my mgdraw.f, I am recording data for electron, positron, proton, pion- and pion+. I got normal output data for all particles except positron, which only has empty output files (no data). The same simulation was done 6 months ago on a cluster ( Using FLUKA 4-3.4), at that time I got data for positron. However, after the machine was updated to FLUKA 4-4.0. I started to have the problems above.

Here is the .inp and mgdraw.f I used.
C_1200_Ta_0.inp (10.2 KB)
mgdraw.f (13.2 KB)

Here are the sizes for all the generated files (a shortwhile after sim started):

48K ./C_1200_Ta_0.inp
24K ./fort.1
24K ./fort.2
24K ./fort.11
24K ./fort.15
12K ./C_1200_Ta_0001.log
312K ./C_1200_Ta_0001.out
24K ./.timer.out
84K ./fort.16
24K ./fort.19
36K ./C_1200_Ta_0001.err
380K ./pi+_outcel1
364K ./pi-_outcel1
2.4M ./e-_outcel1
36K ./e+_outcel1
220K ./p+_outcel1
24K ./ranC_1200_Ta_0002
24K ./chk.py
4.1M .

Thank you!
Kail

I see that in your uploaded mgdraw the line following the positron condition

         IF(JTRACK .EQ. 4) WRITE(96,'(1P,8G25.15)')

is commented out:

*     &      XSCO, YSCO, ZSCO, ETRACK, CXTRCK, CYTRCK, CZTRCK, WTRACK

(note the asterisk at the beginning) which explains your issue (independent of the FLUKA upgrade).

Thank you! I think this is the problem.