ECLAIRsDetectorEffectDefault

class ECLAIRsDetectorEffectDefault[source]

Bases: object

Read ARF, IRF, RMF and return values/products or processing expected by ECPI

Warning

2015 version with old mask so IRF isn’t update, ARF is in approximative percent format

Attributes Summary

chan_boundary
chan_center
chan_step

Methods Summary

arf_percent()
chan_nb()
get_irf_array_ijecpi([channel]) Return raw IRF array from EIC
get_irf_val_ecllos(y_pix, z_pix[, channel, …]) Return IRF value at position with ECLLos referential in pixel unit
get_list_rv_rmf()
get_rmf_norm(channel)
get_rmf_raw(channel)
plot_irf([p_mes])
reduce_channel(nb_chan)
simu_rmf_channel(channel, nb_photon)

Attributes Documentation

chan_boundary
chan_center
chan_step

Methods Documentation

arf_percent()[source]
chan_nb()[source]
get_irf_array_ijecpi(channel=None)[source]

Return raw IRF array from EIC

Parameters:channel (uint) – energy channel in EIC convention
Returns:raw IRF array, ie IRF value for pixel center in array 199x199
Return type:2D numpy array 199x199
get_irf_val_ecllos(y_pix, z_pix, channel=None, NGP=False, verbose=False)[source]

Return IRF value at position with ECLLos referential in pixel unit

Warning

problem with border with array 199x199 ? Need to extrapolate ?

Parameters:y_pix (Any float) – y position in ECLLos referential in pixel unit

:param z_pix:z position in ECLLos referential in pixel unit :type z_pix:ny float :param channel: Energy channel index in EIC convention :type channel: Any int :param verbose: print IRF value :type verbose: Boolean

Returns:value of IRF at (y_pix, z_pix)
Return type:float
get_list_rv_rmf()[source]
get_rmf_norm(channel)[source]
get_rmf_raw(channel)[source]
plot_irf(p_mes='')[source]
reduce_channel(nb_chan)[source]
simu_rmf_channel(channel, nb_photon)[source]