How to get one count level

One count level can be calculated from g-factor.

The conversion between count rate and the flux is

Cn,iH=Jn,iHGn,iHEiΔt

Thus, the one count level can be calculated as

J0,n,iH=1Gn,iHEiΔ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)]