Versions Compared

Key

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

The list of detector names in a run can be found from the unix command-line like this:

Code Block
detnames exp=xpptut15:run=59     (print out names of standard detectors)
detnames -e exp=xpptut15:run=59  (print out names of EPICS variables)

The same information can be obtained in a python script like  /sdf/group/reglcls/gds/psdmana/tutorials/examplePythonpsana1_examples/detNames.py:

Code Block
from psana import *
ds = DataSource('exp=xpptut15:run=59:smd')

detNames = DetNames()
epicsNames = DetNamesprint('epics')
print '*** Detector Names (Full-Name, DAQ-Alias, User-Alias) ***')
for detname in DetNames(): 
    print detname(detname)

epicsNames = DetNames('epics')
print ('*** Some Epics Names (Full-Name, DAQ-Alias, User-Alias) ***')
for ename in epicsNames[:4]: 
    print (ename) # only print a few

In general, each detector can have 3 names.  Only the first is guaranteed to exist for all detectors:

...