Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
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 suppression, and geometry
    img = det.image(evt)
    break
import matplotlib.pyplot as plt
plt.imshow(img,vmin=-2,vmax=2)
plt.show()

 

Script with advanced graphics

Similar script with elaborated matplotlib graphics working in style of event browser

  • makes large image figure
  • add color bar
  • draw events in the event loop
  • hold control on image for the last event (10)

...

You can find a version with more advanced graphics here.