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

Compare with Current View Page History

« Previous Version 11 Next »

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

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  /reg/g/psdm/tutorials/examplePython3/detNames.py:

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

detNames = DetNames()
print('*** Detector Names (Full-Name, DAQ-Alias, User-Alias) ***')
for detname in DetNames(): 
    print(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:

  1. a "full-name" defined by the DAQ which can be complex
  2. a "daq-alias" defined by the DAQ at the time when data is taken
  3. a "user-alias" defined by the user on a per-experiment basis (to be implemented)
  • No labels