Page History
Code Block |
---|
from psana import psana* ds = psana.DataSource('exp=xpptut15:run=54:smd') det = psana.Detector('cspad',ds.env()) for nevent,evt in enumerate(ds.events()): # includes pedestal subtraction, common-mode correction, bad-pixel # bad-pixel suppression, and geometry suppresion, and returns an "unassembled" 3D array of cspad panels calib_array = det.calib(evt) # this is the same as the above, but also uses geometry to # create an "assembled" 2D image (including "fake pixels" in gaps) img = det.image(evt) break import matplotlib.pyplot as plt plt.imshow(img,vmin=-2,vmax=2) plt.show() |
...
Overview
Content Tools