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
Overview
Content Tools