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
  -tm THRSCAN_RMSEVENTS, --thrscan_rmsevents=THR_RMSSCAN_EVENTS
                        number of events to scan data and search for selected
                        threshold on rms for hot pixel mask evaluation
  -v RUNRANGE, --runrange=RUNRANGE
    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
                    validity run range, ex.: 123-567 run orin 123-endbatch
  -qw QUEUEWORKDIR, --queueworkdir=QUEUEWORKDIR
                        queuework namedirectory, ex: psnehq, psfehq, psanacsq. If specified./work
  -c CALIBDIR, --calibdir=CALIBDIR
                        non-standard run in batchcalibration directory, ex: ./calib
  -wx WORKDIRXTCDIR, --workdirxtcdir=WORKDIRXTCDIR
                        work directory, ex: ./work
  -c CALIBDIR, --calibdir=CALIBDIRnon-standard path to xtc directory(<INS>/<EXP>/xtc are
                        non-standard calibration directoryrequired), ex: .mydir/calibxpp/xppi0613/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"

The calibrun application reuses code and approach developed for calibman. At start calibrun loads parameters from configuration file confpars-calibman.txt.  By default this file is the same configuration file as for calibman. If parameters were already set in  confpars-calibman.txt, then calibrun can be started with a single parameter - run number (-r <run-number>) and options for processing (-P) and deployment (-D), for example:

...