You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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 /sdf/group/lcls/ds/ana/tutorials/psana1_examples/bld.py.

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
  • No labels