FLUKA tools

From medphysmc
Jump to: navigation, search

Scripting tools for FLUKA tasks

Plotting tools

Often it is desirable to compare different plots, for example USRBINs from different layers in the detector. Media:USRBINPlotter.txt is a program to do this.

Output the USRBIN to a ASCII (ASC) unit. The program will scan the ASC file for parameters (resolution, names, binning etc.).

> python USRBINPlotter.py <file1.unit> <file2.unit> ...

for example:

> python USRBINPlotter.py input_test001_fort.2*

will plot all units 21, 22, ..., 29.

The output will be a matplotlib plot, where you can scroll through the images with the mouse wheel. See example below (moving gif, not scroll wheel enabled).

Scroll.gif