Page History
Pedestals
psana -c ana-cxii0212/psana-cxii0212-r0104-pedestals.cfg
where ana-cxii0212/psana-cxii0212-r0104-pedestals.cfg
Code Block |
---|
[psana]
files = /reg/d/psdm/cxi/cxii0212/xtc/e165-r0104-s00-c00.xtc \
/reg/d/psdm/cxi/cxii0212/xtc/e165-r0104-s02-c00.xtc
events = 1000
modules = ImgAlgos.CSPadArrAverage
[ImgAlgos.CSPadArrAverage]
source = DetInfo(CxiDs1.0:Cspad.0)
key =
avefile = ana-cxii0212/cspad-cxii0212-r0104-pedestals-ave.dat
rmsfile = ana-cxii0212/cspad-cxii0212-r0104-pedestals-rms.dat
print_bits = 15
evts_stage1 = 100
evts_stage2 = 100
gate_width1 = 200
gate_width2 = 20
|
./PlotCSPadArrayFromFile.py ana-cxii0212/cspad-cxii0212-r0104-pedestals-ave.dat 800 1400
Copy the pedestal file:
bq: cp ana-cxii0212/cspad-cxii0212-r0104-pedestals-ave.dat ana-cxii0212/calib/CsPad::CalibV1/CxiDs1.0:Cspad.0/pedestals/0-end.data
Background
Averaged background for 1000 events is obtained from:
...
./PlotCSPadArrayFromFile.py ana-cxii0212/cspad-cxii0212-r0091-mask-bkgd.dat -1 2
...
Noisy-pixel mask
From peak finder output
./PlotCSPadArrayFromFile.py ana-cxii0212/cspad-cxii0212-r0091-noise-mask-out.dat -1 2
Peak finder / selector
psana -c ana-cxii0212/psana-cxii0212-r0091-peak-finder.cfg
...
Code Block |
---|
[psana] files = \ /reg/d/psdm/cxi/cxii0212/xtc/e165-r0091-s00-c00.xtc \ /reg/d/psdm/cxi/cxii0212/xtc/e165-r0091-s00-c01.xtc \ /reg/d/psdm/cxi/cxii0212/xtc/e165-r0091-s02-c00.xtc \ /reg/d/psdm/cxi/cxii0212/xtc/e165-r0091-s02-c01.xtc #skip-events = 100 #events = 1000 experiment = cxii0212 calib-dir = ana-cxii0212/calib modules = cspad_mod.CsPadCalib \ ImgAlgos.CSPadMaskApply \ ImgAlgos.CSPadArrPeakFinder \ PSXtcOutput.XtcOutputModule [cspad_mod.CsPadCalib] inputKey = outputKey = calibrated doPedestals = yes doPixelStatus = no doCommonMode = yes [ImgAlgos.CSPadMaskApply] source = DetInfo(CxiDs1.0:Cspad.0) inkey = calibrated outkey = masked_arr mask_fname = ana-cxii0212/cspad-cxii0212-r0091-mask-badregs.dat masked_amp = -1 0 print_bits = 5 mask_control_bits = 15 [ImgAlgos.CSPadArrPeakFinder] source = DetInfo(CxiDs1.0:Cspad.0) key = masked_arr key_peaks_out = peaks hot_pix_mask_inp_file = ana-cxii0212/cspad-cxii0212-r0091-noise-mask-ini.dat hot_pix_mask_out_file = ana-cxii0212/cspad-cxii0212-r0091-noise-mask-out.dat frac_noisy_evts_file = ana-cxii0212/cspad-cxii0212-r0091-noise-frac.dat evt_file_out = tmp/cspad-ev- rmin = 48 dr = 1 SoNThr_noise = 3 SoNThr_signal = 4 frac_noisy_imgs = 0.9 peak_npix_min = 45 peak_npix_max = 500 peak_amp_tot_thr = 0. peak_SoN_thr = 5. event_npeak_min = 34 event_npeak_max = 1000 event_amp_tot_thr = 0. nevents_mask_update = 0 nevents_mask_accum = 50 selection_mode = SELECTION_ON out_file_bits = 15 print_bits = 1601 [PSXtcOutput.XtcOutputModule] dirName = ./xtc |
SummaryIntermediate:
Code Block |
---|
[info:ImgAlgos.CSPadArrPeakFinder] NFrames: 20808 1000 NHits: 517 ( 0.25%70%) Time: 3783220.226357 sec ( 54.500538 fps) [info:TimeInterval::stopTime] Time to process 20808 events is 3783.23 sec, or 0.181816 sec/event |
Selected events:
ImgAlgos.CSPadArrPeakFinder] NFrames: 2000 NHits: 15 ( 0.75%) Time: 436.159 sec ( 4.585 fps)
[info:ImgAlgos.CSPadArrPeakFinder] NFrames: 3000 NHits: 25 ( 0.83%) Time: 651.769 sec ( 4.603 fps)
[info:ImgAlgos.CSPadArrPeakFinder] NFrames: 4000 NHits: 33 ( 0.82%) Time: 872.068 sec ( 4.587 fps)
[info:ImgAlgos.CSPadArrPeakFinder] NFrames: 5000 NHits: 38 ( 0.76%) Time: 1087.951 sec ( 4.596 fps)
|
Selected events:
Code Block |
---|
Code Block |
tmp/cspad-ev-000306-r0091-2012-05-15-001110.941625287-peaks.txt tmp/cspad-ev-000553-r0091-2012-05-15-001135.646752814-peaks.txt tmp/cspad-ev-000823-r0091-2012-05-15-001202.650968368-peaks.txt tmp/cspad-ev-000930-r0091-2012-05-15-001213.354293959-peaks.txt tmp/cspad-ev-001047-r0091-2012-05-15-001225.058570990-peaks.txt tmp/cspad-ev-001418-r0091-2012-05-15-001302.172902215-peaks.txt tmp/cspad-ev-001509-r0091-2012-05-15-001311.276967953-peaks.txt tmp/cspad-ev-001575000049-r0091-2012-05-15-001317001045.879585151234643687-peaks.txt tmp/cspad-ev-002286000257-r0091-2012-05-15-001429001106.008349593040495738-peaks.txt tmp/cspad-ev-003655000290-r0091-2012-05-15-001645001109.931535488341278610-peaks.txt tmp/cspad-ev-003960000405-r0091-2012-05-15-001716001120.436622269843585383-peaks.txt tmp/cspad-ev-004211000553-r0091-2012-05-15-001741001135.541492733646752814-peaks.txt tmp/cspad-ev-004430000757-r0091-2012-05-15-001803001156.446489292050227355-peaks.txt tmp/cspad-ev-004553000823-r0091-2012-05-15-001815001202.751236420650968368-peaks.txt tmp/cspad-ev-004632001047-r0091-2012-05-15-001823001225.655158305058570990-peaks.txt tmp/cspad-ev-004716001378-r0091-2012-05-15-001832001258.059028739171085846-peaks.txt tmp/cspad-ev-005157001393-r0091-2012-05-15-001916001259.170239065671736030-peaks.txt tmp/cspad-ev-005175001509-r0091-2012-05-15-001917001311.970253957276967953-peaks.txt tmp/cspad-ev-005439001678-r0091-2012-05-15-001944001328.371234637182259445-peaks.txt tmp/cspad-ev-005993001914-r0091-2012-05-15-002039001351.782288895792593865-peaks.txt tmp/cspad-ev-006135001969-r0091-2012-05-15-002053001357.983075762295585954-peaks.txt tmp/cspad-ev-006371001991-r0091-2012-05-15-002117001359.585955573496636193-peaks.txt tmp/cspad-ev-006500002185-r0091-2012-05-15-002130001418.487718090904297816-peaks.txt tmp/cspad-ev-007162002214-r0091-2012-05-15-002236001421.691310584805401099-peaks.txt tmp/cspad-ev-007391002286-r0091-2012-05-15-002259001429.591911945008349593-peaks.txt tmp/cspad-ev-008005002361-r0091-2012-05-15-002400001436.999914990511386761-peaks.txt tmp/cspad-ev-009016002564-r0091-2012-05-15-002542001456.118978291817729702-peaks.txt tmp/cspad-ev-009369002608-r0091-2012-05-15-002617001501.427152390218988796-peaks.txt tmp/cspad-ev-009609002751-r0091-2012-05-15-002641001515.436266699523954494-peaks.txt tmp/cspad-ev-009947002896-r0091-2012-05-15-002715001530.245061266028242293-peaks.txt tmp/cspad-ev-010340002927-r0091-2012-05-15-002754001533.545533496129495321-peaks.txt tmp/cspad-ev-010864002985-r0091-2012-05-15-002846001538.944592637931948039-peaks.txt tmp/cspad-ev-011354003003-r0091-2012-05-15-002935001540.944231879732602249-peaks.txt tmp/cspad-ev-011973003598-r0091-2012-05-15-003037001640.838419852231630346-peaks.txt tmp/cspad-ev-012442003603-r0091-2012-05-15-003124001640.744879854731596354-peaks.txt tmp/cspad-ev-013186003609-r0091-2012-05-15-003239001641.162135169331563485-peaks.txt tmp/cspad-ev-013633003692-r0091-2012-05-15-003323001649.893364840631654569-peaks.txt tmp/cspad-ev-014558003713-r0091-2012-05-15-003456001651.420819224731763017-peaks.txt tmp/cspad-ev-014637003774-r0091-2012-05-15-003504001657.320304670832338070-peaks.txt tmp/cspad-ev-016357003870-r0091-2012-05-15-003756001707.320371180434251204-peaks.txt tmp/cspad-ev-016787004087-r0091-2012-05-15-003839001729.310318768139940879-peaks.txt tmp/cspad-ev-017064004211-r0091-2012-05-15-003907001741.007776135541492733-peaks.txt tmp/cspad-ev-018088004325-r0091-2012-05-15-004049001752.424145753942562495-peaks.txt tmp/cspad-ev-018322004338-r0091-2012-05-15-004112001754.826097523242951955-peaks.txt tmp/cspad-ev-018352004768-r0091-2012-05-15-004115001837.826064756261195747-peaks.txt tmp/cspad-ev-018360-r0091-2012-05-15-004116.626048661-peaks.txt tmp/cspad-ev-018434-r0091-2012-05-15-004124.026129375-peaks.txt tmp/cspad-ev-018501-r0091-2012-05-15-004130.726616425-peaks.txt tmp/cspad-ev-018838-r0091-2012-05-15-004204.431468969-peaks.txt tmp/cspad-ev-019839-r0091-2012-05-15-004344.830850260-peaks.txt tmp/cspad-ev-020027-r0091-2012-05-15-004403.635232348-peaks.txt |
Images 257, 485, 553, and 823: