Automatic computation of the total counts

Let the th bin be the first bin, for which one of the SWTCs becomes satisfied: from eq. the background counts , used to test the SWTCs, is known.

We conveniently define three intervals: the first of the two
intervals used to fit the background,
(, i.e. ``Before''), that we call ``*pre-burst*'',
the middle one (, i.e. ``GRB''), containing the burst,
therefore, called ``*burst*'', and the last
(,
called ``*post-burst*'',i.e. ``After''):

(22) |

In order to evaluate the contribution of the other bins to
the total counts of the burst, the same coefficients of the fitting
polynomial are used, as expressed in the eq. :

According to eq. , all the bins belonging to the intervals and are taken into account for calculating the total counts.

In order to exclude all the possible bins containing spikes, that
could bias the background fit through the coefficients
, and ,
an iterative fit is performed, once a candidate burst has triggered
a SWTC.
The iterative fit replaces all the bins, whose counts exceed
the background by 3, with the mean of the two contiguous
bins: it ends when no more bins are rejected.
One cycle of this iterative fit is exactly expressed in the eq. :

Once the two background fitting intervals and
have been cleaned from the possible spikes, the net signals
for every th bin belonging to the *burst* and *post-burst* intervals
are defined, according to eq (the quantities denoted with a
tilde are the output of the spike-removing process described just above):

At this point, the originally triggered SWTC is tested again, since the background coefficients might have changed: if this is no longer satisfied, the candidate burst is discarded; otherwise, each bin with potential counts from the burst is tagged with a flag, distinguishing between the bins with burst counts and the others.

For each single bin, the criteria, that must be matched in order to set the signal flag to positive, are expressed by the two following set of equations:

When the bin matches at least one among eqq. and , it is included in the set of ``good'' bins used to estimate the total counts. The values used for the above thresholds are the following: , and . The meaning of the two sets of criteria is easy and reasonable: in eq. in both energy bands there must be some signal, while in eq. enough counts are required in at least three contiguous bins in the GRBM band.

Let be the set of indices of the bins matching at least one of the eqq. and : this set depends on the trigger bin, that is the th one, and on the unit number .

Finally, we have all the elements to define the total counts for both the energy
band, for the GRBM band and for the AC band
( means ``fluence'', that should not be confused with that expressed in
),
for a given detector unit :

The automatic estimate of the total counts of a given candidate burst is very important not only because it gives a rough idea of its brightness, but also because its hardness ratio, as computed in the eq. , is fundamental to classify the event itself, since it must fulfil the eq. .

All these quantities still depend on the th bin, because this is the bin, for which the ratemeters trigger the SWTCs; in other words, the th bin can be identified with the first ``triggering'' bin, and, therefore, with the burst itself. Since the background fit depends on the position of the triggering bin, even the total counts and hardness ratios still keep this little dependence on it, although they express overall properties of the burst.