Versions Compared

Key

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

...

Code Block
lrwxrwxrwx 1 dubrovin ps-data   4 Apr 30 11:56 170505-149520170815-3d00b0-20171025000000 -> M068
lrwxrwxrwx 1 dubrovin ps-data   4 Apr 30 11:56 170505-149520170815-3d00f7-20171025000000 -> M088
drwxr-sr-x 2 dubrovin ps-data   2 Apr 30 12:01 171113-154920171025-3d00b0 -> M068
drwxr-sr-x 2 dubrovin ps-data   2 Apr 30 12:01 171113-154920171025-3d00f7 -> M088
lrwxrwxrwx 1 dubrovin ps-data   4 Apr 30 11:55 171113-154920171025-3d00fb-20180306000000 -> M044
drwxr-sr-x 2 dubrovin ps-data  12 Mar 27 12:11 M044
drwxr-sr-x 2 dubrovin ps-data  11 Mar 27 12:10 M068
drwxr-sr-x 2 dubrovin ps-data  11 Mar 27 12:10 M088

...

This command dumps full name of the detector found in configuration object, number of panels and detector Id:

Code Block
titleresult of jungfrau_id
collapsetrue
Finding Jungfrau Id in dataset "exp=xpptut15:run=430" using name pattern Jungfrau
Found source: MfxEndstation.0-Jungfrau.0, number of panels: 2
Jungfrau id: 171113-154920171025-3d00b0_171113-154920171025-3d00f7

...

It is assumed that panel calibration constants for pixel_gain and pixel_offset are supplied by the detector group for all known panels and . These constants should be available under the directory /reg/g/psdm/detector/gains/jungfrau/ in files like

/reg/g/psdm/detector/gains/jungfrau/<panel-id>[-<time-stamp>]/g<index-of-gain-range>-<gain-or-gainoffset>.npy.

...

Generator of constants

Example of the command to produce calibration constants for entire detector looks like:

jungfrau_gain_constants -d exp=xcsls3716:run=631 [-D] [-U] [-s Jungfrau.0]
  • By default constants are saved in local directory in files with long names.name containing fields of experiment, run, source, detector Id, constant type and extension txt or npy,
  • option -d specifies dataset containing jungfrau data and configuration to define detector numeric Id, e.g. 170505-149520170815-3d00b0_170505-149520170815-3d00f7,
  • option -Option -D deploys calibration constants in the calib directory for specified experiment with and beginning of the validity range defined by the specified run number.,
  • Option option -U shows commands (dcs add ...) to upload constants in repository.from local directory to global repository under /reg/d/psdm/detector/calib/jungfrau,
  • option Option -s is required to distinguish between multiple detectors if specified dataset (experiment and run) data set has more than one jungfrau detector.

...

Use command jungfrau_gain_constants with option -U to see commands for deployment (dcs add ...) . Then, apply these commands to add calibration constants to the detector associated hdf5 file located under directory

  • /reg/d/psdm/detector/calib/jungfrau/ - real repository or
  • /reg/g/psdm/detector/calib/jungfrau/ - test directoryrepository

Questions

  • format of integers in the panel name fields: hex(v).lsplit('0x'), e.g. "171113-154920171025-3d00fb"
  • calibration versions: use time-stamp in format YYYYMMDDHHMMSS dash-concatenated to the panel Id, e.g. "171113-154920171025-3d00fb-2018030600000"

...