Flat top in simulated HPGe spectrum

Dear All
Greetings! I am having a small problem while using DETECT card to score energy deposition in HPGe detector. The peaks in the output of detect card show a flat top as shown in this picture


. Can someone please help me out with the possible issues? The input files and the source files are attached.
DSQ_activation_analysis_25_tab.lis (350.0 KB)
DSQ_NAA_2nd_step.inp (10.4 KB)
source_newgen_NAA.f (21.0 KB)
DSQ_NAA_2nd_step.flair (21.5 KB)

thanks & regards
saurabh

Dear @sxm3816,

There may well be nothing wrong with your simulation (I did not check). But looking at the *tab.lis file, you can see that you have a bin width of 3-4 keV, e.g. from 1097-1100 keV, exactly where you see the flat top in the first peak. This has to do with the number of digits printed by detsuw (the relevant processing utility invoked by Flair), which is limited for an HPGe spectrum where the binning is well below 1 keV.

You can modify detsuw.f under /pathtofluka/src/tools, specifically the format line labelled 9501 almost at the end of the file:
9501 FORMAT (4(1P,1X,E10.4))

Add a digit (or two) e.g. by changing to E11.5, save, then, in the tools directory where you are:
make clean
make
to recompile the utilities.

Reprocess the simulation results (Clean/Process) and you should see a more reasonable plot.

Best regards,
Andrea

Dear Andrea
thank you for your quick reply. your suggestion worked. changing detsuw.f didn’t help as much as changing the bin width in tab.lis file. I changed the bin width in tab.lis file to ~ 0.3 keV, that seem to work. except now, the peak 1100 keV is gone!

thanks & regards
saurabh

DSQ_activation_analysis_25_tab.lis (3.4 MB)

Dear @sxm3816,

I suspect you are mixing output files and plots. E.g. the latest *tab.lis file is clearly not the one used in the last plot. In fact it displays all the problems we previously discussed with many bins having identical lower and upper bin limits and several lines sharing the exact same value, especially above 1 MeV. As I explained, you cannot describe sub-keV binning above 1 MeV printing only 3 decimal figures.

By the way, I notice now that the output file you shared is not the DETECT output, but no scoring is saved to unit 25 in the flair file you shared. So of course changing detsuw.f made no difference.

Could you please send a consistent set of files?:

  • an input file with your desired (DETECT) binning (e.g. ~0.3 keV/channel)
  • the *tab_lis file corresponding to exactly this input
  • the corresponding plot

Best regards,
Andrea

Dear Andrea
thank you for the reply. I didnt make things clear in the beginning. This simulation is in two steps. In the first step, I irradiate a sample with neutron beam and let it cool down for few days. Then I record the gamma rays coming out of it using a USRBDX card. The fluka files for the first steps are-
DSQ_activation_analysis.inp (7.3 KB)
DSQ_activation_analysis.flair (10.0 KB)
source_newgen_NAA.f (20.8 KB)
full_neutron_spectrum.dat (3.1 KB)

The file that comes out of this simulation is-
DSQ_activation_analysis_23_tab.lis (1.7 MB). It has 10k energy bins.

This file is used as source for the second step of simulations. The fluka files are-
DSQ_NAA_2nd_step.inp (10.6 KB)
DSQ_NAA_2nd_step.flair (21.8 KB)
source_newgen_NAA_2nd_step.f (21.0 KB)

The output of the DETECT card in 2nd step fluka files is plotted below (poor statistics).

So, i think i should try to increase the number of digits in the output of USRBDX card in the first step. can you please help me with that?
thanks & regard
saurabh

Dear andrea,
To achieve sub kev binning in the *tab.lis file, I tried to change usxsuw.f. It has a line similar to what you mentioned- `9501 FORMAT (4(1P,1X,E10.4))'. I changed E10.4 to E11.5, like you suggested for DETECT card. This change seems to help. now the tab.lis files has numbers upto desired decimal points. THe spectrum looks better too.

thanks for help.
sincerely
saurabh

saurabh