from psana import * ds = DataSource('exp=xppdaq12:run=54:smd') det = Detector('cspad',ds.env()) for nevent,evt in enumerate(ds.events()): # includes pedestal subtraction, common-mode correction # bad-pixel suppresion, and geometry img = det.image(evt) break import matplotlib.pyplot as plt plt.imshow(img,vmin=-2,vmax=2) plt.show()
Overview
Content Tools