Content
Intro
In April 2021 we introduce a new approach to dark runs processing for Jungfrau detectors. This approach is pretty much similar to epix10ka dark calibration based on per-panel processing of constants. Entire dark calibration is split for two stages. At first stage specialized dark runs for three gain modes or regular runs with "drop-shots" are processed and results per-panel are saved in the repository. At second stage, per-panel constants are merged for particular detector or set of panels (for DRP) and deployed in the regular calibration directory. This approach allows to manage each panel and its gain ranges separately.
Repository organization
- /reg/g/psdm/detector/gains/jungfrau/panels/ # repository for jungfrau per-panel constants
- 190408-181206-50c246df50010d/ # e.g. - for one of the panel ids
- rms/ # subdirectory for calibration constant's type
- status/
- dark_max/
- dark_min/
- pedestals/
- jungfrau_0001_20201201073354_cxilu9218_r0230_pedestals_gm0-Normal.dat # e.g. - panel constants for gain mode 0: Normal
jungfrau_0001_20201201073425_cxilu9218_r0231_pedestals_gm1-ForcedGain1.dat
jungfrau_0001_20201201073453_cxilu9218_r0232_pedestals_gm2-ForcedGain2.dat
jungfrau_0001_20201201085333_cxilu9218_r0238_pedestals_gm0-Normal.dat
jungfrau_0001_20201201085333_cxilu9218_r0238_pedestals.txt # e.g. - per-panel. constants merged for three gain modes valid for runs >=238
- jungfrau_0001_20201201073354_cxilu9218_r0230_pedestals_gm0-Normal.dat # e.g. - panel constants for gain mode 0: Normal
- merge_tmp/
- CxiDs1.0:Jungfrau.0-20201201085333-cxilu9218-r0238-pedestals.txt # merged constants for detector in run 238
- logs/
- 2021_log_jungfrau_dark_proc.txt # log files with single record per job for each script
2021_log_jungfrau_deploy_constants.txt - 2021/ # anual directory for job submission commands
- 2021-04-23T142354_log_jungfrau_dark_proc_dubrovin.txt # log file for each job
2021-04-23T154102_log_jungfrau_deploy_constants_dubrovin.txt
- 2021-04-23T142354_log_jungfrau_dark_proc_dubrovin.txt # log file for each job
- 2021_log_jungfrau_dark_proc.txt # log files with single record per job for each script
- 190408-181206-50c246df50010d/ # e.g. - for one of the panel ids
Calibration file naming conventions
File name example: jungfrau_0001_20201201073354_cxilu9218_r0230_pedestals_gm0-Normal.dat
Fields meaning: <panel-type>_<panel-unique-numeric-alias>_<run-time-stamp>_<experiment>_r<run-number>_<constants-type>_gm<gain-mode-index-and-name>.dat
Log file naming conventions
File name example: 2021-04-23T142354_log_jungfrau_dark_proc_dubrovin.txt
Fields meaning: <job-submission-time-stamp>_<script-name>_<login-name>.txt
Dark processing
jungfrau_dark_processing
Proceses jungfrau dark data
jungfrau_dark_proc -d <dataset> -s <source> ...
Ex.1: jungfrau_dark_proc -d exp=cxilu9218:run=242,243,244:smd -s CxiDs1.0:Jungfrau.0 # regular dark processing
Ex.2: jungfrau_dark_proc -d exp=cxilu9218:run=242,243,244:smd -s CxiDs1.0:Jungfrau.0 -I1 # speed-up for single panel
Ex.3: jungfrau_dark_proc -d exp=cxilu9218:run=238:smd -s CxiDs1.0:Jungfrau.0 --evcode 162 # use drop-shots as dark events
Help: jungfrau_dark_proc -h
Merging and deployment of constants
jungfrau_merge_constants
Deployment jungfrau calibration parameters
jungfrau_deploy_constants -e <experiment> -d <detector> -r <run-number> [-D] [-L <logging-mode>] [...]
TEST COMMAND:
Ex.1: jungfrau_deploy_constants -e cxilu9218 -d CxiDs1.0:Jungfrau.0 -r238
Ex.2: jungfrau_deploy_constants -e cxilu9218 -d CxiDs1.0:Jungfrau.0 -r238 -D -c ./calib
REGULAR COMMAND:
Ex.3: jungfrau_deploy_constants -e cxilu9218 -d CxiDs1.0:Jungfrau.0 -r238 -D
Help: jungfrau_deploy_constants -h
Example for parallel processing with time comparison
Dataset exp=xpplw4319:run=1 contains three calib-cycles with dark data for 2-panel XppEndstation.0:Jungfrau.0
process all steps (all gain ranges) and all panels takes 306 sec on psanagpu103 with command
jungfrau_dark_proc -d exp=xpplw4319:run=1:smd:stream=0-79 -s XppEndstation.0:Jungfrau.0
process all steps for a single panel (--segind=1 is selected from 0,1) takes 103 sec
jungfrau_dark_proc -d exp=xpplw4319:run=1:smd:stream=0-79 -s XppEndstation.0:Jungfrau.0 --segind=1
process a single step (--stepnum=2 is selected from 0,1,2) for all panels takes 83 sec with command
jungfrau_dark_proc -d exp=xpplw4319:run=1:smd:stream=0-79 -s XppEndstation.0:Jungfrau.0 --stepnum=2
process a single step (--stepnum=2) for a single panel (--segind=1) takes 44 sec with command
jungfrau_dark_proc -d exp=xpplw4319:run=1:smd:stream=0-79 -s XppEndstation.0:Jungfrau.0 --stepnum=2 --segind=1
Then results have to be deployed in the calib directory using command
jungfrau_deploy_constants -e xpplw4319 -d XppEndstation.0:Jungfrau.0 -r1 -D