I would like to import some content from a tab.lis file. The file is the output of a USRDBX set to score the current (I1,LinE,LinOmega) due to a 3 MeV electron beam with three detectors of: BEAMPART (1000 Ebins), ELECTRON (1000 Ebins) and PHOTON (3000 Ebins). The beam interacts with a few materials before detection. My aim is to import the file and use the thee energy spectra inside a Mathematica program. However, how the tab.lis file is formatted is not fully clear to me. For instance, in the first 4-columns section (BEAMPART, detector 1), the number of lines is 1092, instead of 1000, indeed it is commented as “N. of energy intervals 1092” – I don’t understand what this additional 92 (zero-valued) lines are. On the other hand, further below in the file, the next 4-columns section, due to ELECTRON (detector 2, line #3292), consists of 1000 lines, i.e. there are no additional 92 lines.I upload the tab.lis file in case you want to inspect it. I am not able to guess a fixed rule for importing. I have searched in the manual and in the forum, but cannot find information about it. Where can I find an explanation of the tab.lis format?
I believe that the following Fluka presentation will give you a clue, how to treat _tab.lis files.
In general, structure of the _tab.lis file is split into 2 sections for the each detector.
The first is simpler, the you have values integral over the angle:
Column 1 - beginning of the interval
Column 2 - end of the interval
Column 3 - scored value
Column 4 - standard deviation of the scored value.
The second section is a way to represent actually two dimensional array. It is similar to the first, but you have block that represent the range of angles. You have two more columns and header line above, to indicate the angle range.
thank you very much for your kind reply and for the linked PDF, very useful indeed. However, my concerns about those additional 92 lines are still there, because I did not use a logarithmic scale. I upload the Flair project so you can see my settings just in case you’d like to.
the additional 92 lines reflect the low energy neutron group structure above the lower energy limit you input and can be safely disregarded. In fact, when you select BEAMPART instead of ELECTRON, FLUKA prudently admits the possibility that your beam may be made of neutrons and so, having the group-wise treatment on by default, it considers in parallel also their fixed energy binning.
I also thank you for the reply. I figured out that the added range is related to the BEAMPART scoring, but did not know that it is reserved for the low energy neutron group. It is good to know it.
Depending on your motivation, and waiting for ours , you could consider to adjust the usxsuw post-processing tool (that is responsible for the generation of the _tab.lis file), modifying its Fortran source in src/tools, and then recompiling it by executing the make command in the upstream directory. In fact, it should be enough to comment out lines 861-862, 1078-1081, and 1106 in usxsuw.f. @illia.zymak may be able to kindly confirm that this way it works as intended.
I am not at all into compiling, indeed a couple of weeks ago @amario very kindly guided me hand by hand through another compilation. I guess it’s better if I just skip the 92 lines for now. Thank you for replying and suggesting the solution!