Page History
...
Anchor | ||||
---|---|---|---|---|
|
Geometry
Anchor | ||||
---|---|---|---|---|
|
Metrology
Metrology tool processes xlsx
files from opitcal measurements, produces calibration constants of types geometry
, center
and tilt
, and deploy them in calibration directory.
xlsx
files are human-made, so, one has to be careful and check that the text file, produced in auto-conversion by command #2 has correct format.
anchor
Alignment
...
Alignment tool works with geometry
files, produced in Metrology tool and allows to tune quad or other sensor positions in the detector, using image with real objects (rings, shadows, etc).
More details about this tool can be found in Detector Alignment Tool.
Anchor | ||||
---|---|---|---|---|
|
Configuration
Configuration
...
Configuration
Configuration tool has its own tab bar switching between panels with sets of parameters.
...
- Dir work button - launch directory selection window for
work
directory. Selected directory shows up in the next right information field. - Dir results button - launch directory selection window for
results
directory. Selected directory shows up in the next right information field. This directory is not currently in use. - File prefix editable field - sets common prefix of all files created in the work directory, excluding the log file.
- Queue combo box - sets the queue name for batch jobs from available list containing psnehq, psfehq, etc.
- Event start/end editable fields - set the first and last event in current run for calibration processing job.
- Threshold RMS, ADU (editable field) - sets the threshold on RMS in ADU (Analog to Digit Units) for hot pixel mask. If RMS for pixel exceeds this threshold - pixel is marked as hot in the hot pixel mask file. "Zero" is a special value, indicating that no pixels will be flagged as hot pixels because of noise.
- Threshold MIN/MAX (editable fields) - if a pixel's pedestal is outside the MIN/MAX range it will be flagged in the hot pixel mask file.
- Deploy hotpix mask check box - if checked - hotpixel mask file will be deployed along with pedestal file at click on Deploy button in the List of run items.
...
Note |
---|
Modal dialog assumes that one of the buttons in this type of dialog window need to be clicked, otherwise UI will be frozen. |
Project status
2015-0104-20 08 status corresponds to:
Code Block |
---|
relinfo Pkg/Rel TEST BASE(ana-0.13.1318) CalibManager HEAD V00-00-76-83 ImgAlgos HEAD V00-03-80 PSCalib HEAD V00-02-33 PSQt HEAD - |
Completely implemented applications under calibman
tabs:
- Dark
- ROI - mask conversion will be available since ana-0.13.14
- File Manager
- Single File Manager
- Single File Manager
- Group File Manager
- Configuration - new list of queues will be available since ana-0.13.14
- Geometry
- Metrology - implemented for CSPAD CXI-V1, XPP-V2, CSPAD2x2
- Alignment
calibrun
- command-line application is fully functional
Recommended updates
...
On 2015-01-20
Use default version of all involved packages and wait for ana-0.13.14
Patches to ana-0.13.13 in order to work with new list of queues and/or ROI mask converter:
Code Block |
---|
addpkg CalibManager HEAD
addpkg CorAna HEAD |
04-15: ana-current (a.k.a. ana-0.14.01) does not need in updates.
How to get and run calibman
...
Code Block |
---|
cd <your-favorite-directory>;
sit_setup ana-current;
calibman; |
Get latest version, compile, and run
The latest version of this application with recent modifications for packages can be created and executed from the local release directory. Login to psana, then run use commands with appropriate substitutions for <...> fields:
Code Block |
---|
cd <your-favorite-test-directory>;
newrel ana-current test-CalibManager;
cd test-CalibManager;
sit_setup <release-tag>;
addpkg CalibManager HEAD;
addpkg <package2> HEAD;
addpkg <package3> HEAD;
...
scons;
calibman; |
First session
First session
No matter what tool tab No matter what tool tab is opening by default in the first session, it would be better to make sure that configuration parameters are set correctly. To do that click on tab Configuration, which opens Configuration Settings panel, then click on tab Parameters. Most parameters can be used with default values, but it is important to check, that
...
Available since release ana-0.10.16 (CalibManager V00-00-40
).16.
Command line interface for dark-run calibration of detectors is implemented by P.O.C.s request. It can be started by the command calibrun
with parameters. The list of parameters can be dumped on terminal by the command:
...
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 required), ex: .mydir/xpp/xppi0613/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" |
...
By default the calibrun
command produces quite extensive output on terminal which in most cases is sufficient to figure out what is going on. If the print-control option (-p 0) is provided, the major output will be suppressed and only begin, end of job comments, and warning messages will be printed. Most complete output can be found in the session log file auto-saved in the work directory with relevant time stamp in the name, for example: ./work/2014-04-16-16:43:52-log.txt
GUI-based calibration manager calibman
has the name, for example: ./work/2014-04-16-16:43:52-log.txt
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.
References
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 using option -x <path-to-xtc>
. This option sets non-standard path to xtc files. For example:
Code Block |
---|
calibrun <options> -x /reg/d/ffb/cxi/cxi12345/xtc <more-options> |
The "live" mode is turning on automatically if the directory path has "ffb" sub-folder.