DREAM Detector Diagnostics#

This page is primarily intended for instrument scientists and other experts.

ESSdiffraction has some tools for inspecting the DREAM detector based on recorded event data. This notebook gives an overview of the available tools.

Voxel Viewer#

The FlatVoxelViewer is an interactive visualization for inspecting individual voxels. It shows a 2D histogram of recorded events. The image axes correspond to a chosen pair of logical dimensions combined with all other dimensions. Each bin in the image corresponds to exactly one detector voxel.

Tick marks indicate the values of the chosen dimensions. E.g., all pixels between module=2 and module=3 tick marks belong to module 2.

[1]:
import scipp as sc

from ess import dream
from ess.dream.data import simulated_diamond_sample
from ess.dream.diagnostics import FlatVoxelViewer
[2]:
%matplotlib widget

Load simulated test data and compute histograms:

[3]:
raw = dream.io.load_geant4_csv(simulated_diamond_sample())
dg = sc.DataGroup({
    k: v['events'].hist()
    for k, v in raw['instrument'].items()
})

Display 2D view:

[4]:
FlatVoxelViewer(dg)
[4]: