Versions Compared

Key

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

Beam Line Data is smaller data that can be delivered to all hutches (i.e. not associated with the DAQ system in one hutch).  This script lives in /reg/g/psdmsdf/group/lcls/ds/ana/tutorials/examplePython3psana1_examples/bld.py.

Code Block
from psana import *
ds = DataSource('exp=xpptut15:run=59:smd')
ebeamDet = Detector('EBeam')
for nevent,evt in enumerate(ds.events()):
    ebeam = ebeamDet.get(evt)
    if ebeam is None: continue
    print(ebeam.ebeamPhotonEnergy())
    break