Versions Compared

Key

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

...

Note that LCLS-II psana is not compatible with LCLS-I psana, so environments must activate one or the other, but not both.

Public Practice Data

Publicly accessible practice data is located in the directory /cds/data/psdm/prj/public01/xtc.  Use of this data requires the additional "dir=" keyword to the DataSource object.

ExperimentRunComment
tmoc00118222Generic TMO dark data


Detector Names

Use this command to see non-epics detector names (see "Detector Interface" example below):

Code Block
(ps-4.1.0) psanagpu101:lcls2$ detnames exp=tmoc00118,run=123222,dir=/cds/data/psdm/prj/public01/xtc
---------------------
Name      | Data Type
---------------------
epicsinfo | epicsinfo
timing    | raw      
hsd       | raw      
gmdstr0   | raw    
etc.  

...

Code Block
languagepy
from psana import DataSource
ds = DataSource(exp='tmoc00118', run=123=222, dir='/cds/data/psdm/prj/public01/xtc', max_events=10)
myrun = next(ds.runs())
opal = myrun.Detector('tmoopal')
epics_det = myrun.Detector('IM2K4_XrayPower')
for evt in myrun.events():
    img = opal.raw.image(evt)
    epics_val = epics_det(evt)
	# check for missing data
    if img is None or epics_val is None:
        print('none')
        continue
    print(img.shape,epics_val)

...