Page History
...
- and saves the corrected ndarray<
const
double,NDim> in the event with keykey_out
- In ImgAlgos V00-02-01 implemented detectors: CsPad, CsPad2x2, Pnccd, Princeton, Andor, Opal1000, Opal4000
Control on corrections
Code Block | ||
---|---|---|
| ||
A_cor = A_raw (1) - pedestal | if do_peds==true and pedestals are available in calib store (2) - common mode | if do_cmod==true and common_mode parameters are available in calib store (3) - N*background | if do_bkgd==true and the file name is specified in the parameter fname_bkgd and bkgd_ind_* are set (4) * gain | if do_gain==true and pixel_gain are available in calib store (5) apply bad pixel status | if do_stat==true and pixel_status are available in calib store (6) apply mask | if do_mask==true and the file name is specified in the parameter fname_mask and parameter masked_value is set (7) apply N*RMS threshold | if do_nrms==true and pixel_rms are available in calib store, parameters threshold_nrms and below_thre_value are set (8) apply common threshold | if do_thre==true and parameters threshold and below_thre_value are set |
...
parameter | default value | description |
---|---|---|
| DetInfo(:Camera) | source of data |
|
| key for input |
| calibrated | output key for calibrated image saved in event |
| false | true: pedestals subtracted if available in calib store |
| false | true: common mode correction is evaluated and applied [Ref.] |
| false | true: bad/hot pixels in pixel_status are masked |
| false | true: mask is applied if the file |
| false | true: normalized background is subtracted if the file |
| false | true: |
| false | true: per-pixel threshold is applied if |
| false | true: low level |
|
| input file name for background, applied if the file name is specified |
|
| input file name for mask, applied if the file name is specified |
| 0. | intensity value (in ADU) substituted for masked pixels |
| 3. | threshold as a number of sigmas to |
| 0. | common low level threshold in ADU |
| 0. | intensity substituted for pixels below threshold |
| 0 | minimal index in flatten ndarray, which is used for background normalization |
| 100 | maximal index in flatten ndarray, which is used for background normalization |
| 2 | index increment in flatten ndarray, which is used for background normalization |
| 0 | verbosity:
|
To add implementation for any other new detector "Det":
Code Block |
---|
1) add file pdscalibdata/DetBaseV1.h
2) in PSCalib/src/GenericCalibPars.cpp add
#include "pdscalibdata/DetBaseV1.h"
...
template class PSCalib::GenericCalibPars<pdscalibdata::Opal4000BaseV1>;
3) in PSCalib/include/CalibParsStore.h add
#include "pdscalibdata/DetBaseV1.h"
...
return new PSCalib::GenericCalibPars<pdscalibdata::DetBaseV1>(calibdir, type_group, src, runnum, prbits); |
Doxygen documentation for interface: CalibParsStore, GenericCalibPars
See See also Example for Module ImgAlgos::NDArrCalib.
Module ImgAlgos::ImgAverage
...