Table of Contents

.bins file

The main goal of AtRIS is to calculate how particles of given energy are stopped within a certain atmosphere (how deep they penetrate). In other words, for a particle with an initial energy $E$, we determine how much energy on average the particle losses in each atmospheric sheet. In addition, AtRIS calculates what is the typical contribution to the Absorbed dose in each atmospheric sheet.

These results are best summarized in form of a pair of two dimensional histograms:

Technically, this has been achieved using Geant4's csv analysis library. However, the author wanted to give the user explicit control over the energy binning. Therefor, the user has to provide a file containing the energy bins which are going to be used for the creation of the specified histograms. This file has a simple structure:

Here you can find an example file.

.diff file

The summarizes how average effects of energetic particles in atmospheres are obtained and stored. In a real world, we are not interested what on average a single particle does, but instead we want to know what effect a certain particle flux produces. The authors provide several python scripts which take as input a differential flux and fold the ionization rate matrices in such a way to determine:

Using the .diff file we specify the differential particle flux. Here are some facts about the format:

Note that the .bins and .diff file are interrelated. Typical, one will start with a .diff file and produce with this a .bins file. This requires careful consideration on how the original data has been derived. We give below one particular example generated using python+numpy.

import numpy as np
diff = np.loadspec('proxcen.diff')         # we load the data
binwidths = (diff[1:]-diff[:-1])*0.5       # we calculate the bin widths
bins      = [diff[0]-binwidths[0]]         # We add the first binedge, since
for k in range(binwidths.shape[0]):        # it is special. Now we can do a for loop
    bins.append(diff[k]+binwidths[k])      # We add the remaining binedges
np.savetxt('proxcen.bins',bins,fmt=".4f")  # We save the data

In this particular approach, we have defined the .diff energies to be “running mids” of energy bins. How you define your bins depends on how your differential spectrum data has been obtained. Feel free to experiment! The above .bins has been generated using this code from this .diff file example1).

Folding the .diff to obtain .spec

We can now see a further interdependence of two files :


1) Note that the example has three columns. The second and the third column both describe differential fluxes. In this particular case one represents an upper limit, while the other represents a lower limit. We have implemented in to our analysis scripts the possibility to specify the index of the differential flux column which should be used, making easy switching possible.