Versions Compared

Key

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

...

Code Block
Usage:   calibrun [options] args
Example: calibrun -e xppi0613 -d CSPAD,OPAL1000 -c ./calib -P -D -r 173

calibrun - command line calibration utility

Options:
  -h, --help            show this help message and exit
  -e EXP, --exp=EXP     experiment name, ex.: cxi12345
  -r RUNNUM, --run=RUNNUM
                        run number
  -n NUM_EVENTS, --num_events=NUM_EVENTS
                        number of events to process
  -s SKIP_EVENTS, --skip_events=SKIP_EVENTS
                        number of events to skip before processing
  -m SCAN_EVENTS, --scan_events=SCAN_EVENTS
                        number of events to scan data and search for selected
                        detector(s)
  -f EVENT_CODE, --event_code=EVENT_CODE
                        event code for dark event selection
  -t THR_RMS, --thr_rms=THR_RMS
                        threshold on rms for hot pixel mask evaluation
  -v RUNRANGE, --runrange=RUNRANGE
                        validity run range, ex.: 123-567 or 123-end
  -q QUEUE, --queue=QUEUE
                        queue name, ex: psnehq, psfehq, psanacsq. If specified
                        - run in batch
  -w WORKDIR, --workdir=WORKDIR
                        work directory, ex: ./work
  -c CALIBDIR, --calibdir=CALIBDIR
                        non-standard calibration directory, ex: ./calib
  -x XTCDIR, --xtcdir=XTCDIR
                        non-standard path to xtc directory(<INS>/<EXP>/xtc are
                        required), ex: .mydir/xpp/xppi0613/xtc, or
                        /reg/d/ffb/cxi/cxi12345/xtc
  -d DETECTOR, --detector=DETECTOR
                        detector names separated by comma,
                        ex:CSPAD,CSPAD2x2,PNCCD
  -p PRINT_BITS, --print_bits=PRINT_BITS
                        0-print nothing, +1-debug, +2-info, +4-warning,
                        +8-error, +16-critical; default=036, minimal
                        recommended=020
  -P, --process         process xtc files and produce calib files under the
                        "work" directory
  -D, --deploy          deploy calibrated files under the "calib" directory
  -L, --loadcfg         load and use configuration parameters from file after
                        "calibman"

...

GUI-based calibration manager calibman has the same file name conventions and can always be used to inspect all output files and problems generated by the command line application  calibrun.

How to run on ffb data

Command calibrun can work on ffb data. In this case command option "-x <path-to-xtc>" needs to be specified. This option sets non-standard path to xtc files:

Code Block
calibrun <options> -x /reg/d/ffb/cxi/cxi12345/xtc <more-options> 

References