Potpourri¶
Subsystem Channel Map¶
You can quickly retrieve any subsystem (geds, spms, PULS01/PULS01ANA/BSLN01/MUON01 aux channels) channel map in the following way:
import legend_data_monitor as ldm
geds = ldm.Subsystem('geds', experiment='L200', period='p18', runs=0, type='phy', path='/global/cfs/cdirs/m2676/data/lngs/l200/public/prodenv/prod-blind/', version='auto/latest')
geds.channel_map
How to build runinfo.yaml¶
You can build the .yaml file containing all run summary information (start/end timestamps, livetime in seconds) using the following command:
$ legend-data-monitor get_runinfo --path /global/cfs/cdirs/m2676/data/lngs/l200/public/prodenv/prod-blind --output output/ --data_version tmp-auto
How to evaluate exposure¶
You can extract the exposure using the following command:
$ legend-data-monitor get_exposure --period p03 --run r000 r001 r002 --runinfo_path output/runinfo.yaml --path /global/cfs/cdirs/m2676/data/lngs/l200/public/prodenv/prod-blind --data_version tmp-auto