How to get one count levelΒΆ

One count level can be calculated from g-factor.

The conversion between count rate and the flux is

\[C_{n,i}^{H} = J_{n,i}^{H} \cdot G_{n,i}^{H} \cdot E_i \cdot \Delta t\]

Thus, the one count level can be calculated as

\[J_{0,n,i}^{H} = \frac{1}{G_{n,i}^{H} \cdot E_i \cdot \Delta t}\]

Using pyana.cena.cena_flux module, a simple code can be written as follows.

import cena_flux
flx = cena_flux.Count2Flux()

# one for 16 energy and 7 channels
one_count_level = [[flx.getFlux(1, ie, id) for ie in range(16)] for id in range(7)]