Exemplo n.º 1
0
def list_of_sources_for_det (det_name='CSPAD') :
    """Returns the list of sources for specified detector in style of psana, for example 'CxiDs1.0:Cspad.0'
    """
    pattern = det_name.lower() + '-'
    lst = [src.replace("|",":").replace("-",".") for src in experiment_info.unique_detector_names() if src.lower().find(pattern) != -1 and src.find('NoDet') == -1]
    #for i, det in enumerate(lst) : print '%4d : %s' %(i, det)
    return lst
Exemplo n.º 2
0
def unique_detector_names() :
    """Returns complete list of available detectors at LCLS"""
    return experiment_info.unique_detector_names()