Versions Compared

Key

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

Gain information

To build gain files from PSI information, see code in

/cds/home/p/philiph/jungfrau

E.g. we have

pslogin03:~/jungfrau$ ls M354/

g0_ordered_gain.npy  g2_ordered_gain.npy

g1_ordered_gain.npy  gainMaps_M354_2020-01-31.bin

I use

extractGainsFromBin.py

to make the npy files.

Then one can use copyToDB_2024.py - but this needs updating to work on sdf, so next time move all the above to sdf.


Gain directories in Mikhail's structure used to be built and populated using e.g.

/cds/home/p/philiph/psana/jungfrau/2021/makeVndirs.py

Currently it's simplest to scp the files from /cds/home/p/philiph/jungfrau by hand. The directories are under

/sdf/group/lcls/ds/ana/detector/gains/jungfrau/

Thus I have done

(ana-4.0.62-py3) [philiph@sdfiana004 jungfrau]$ cp M277V3/g0_offset.npy M354V3/.

(ana-4.0.62-py3) [philiph@sdfiana004 jungfrau]$ cp M277V3/g0_offset.npy M354V3/g1_offset.npy

(ana-4.0.62-py3) [philiph@sdfiana004 jungfrau]$ cp M277V3/g0_offset.npy M354V3/g2_offset.npy

(ana-4.0.62-py3) [philiph@sdfiana004 jungfrau]$ scp psexport:/reg/g/psdm/detector/gains/jungfrau/M354/g*gain* M354V3/



To handle a new config object associated with the spring/summer 4M work, from

/sdf/home/p/philiph/psana/jungfrau
I've trivially updated and run
python make_calib_links.py -v 3 cxic00121 75
and
jungfrau_gain_constants -d exp=cxic00121:run=75 -s CxiDs1.0:Jungfrau.0 -D -c calib -t 20240528154000
This appears to have made the relevant links and deployed them as recorded in
/sdf/group/lcls/ds/ana/detector/gains/jungfrau/logs/2024/2024-05-28T154144_log_jungfrau_gain_constants_cxic00121-r75_philiph.txt

After the new module was installed and I fixed the M354V3 directory by hand as above, I did

jungfrau_gain_constants -d exp=cxic00121:run=85 -s CxiDs1.0:Jungfrau.0 -D -c calib -t 20240701131700

which I think worked.


In the same directory, see e.g.

-rw-r--r--+ 1 philiph ec  52 Feb 12 16:37 deployDeployment_0.5M_12Feb2024.sh

-rw-r--r--+ 1 philiph ec  67 Feb 12 16:51 deployOffsets_0.5M_12Feb2024.sh


/sdf/group/lcls/ds/tools/engineering_tools/engineering_tools/scripts/makepeds_psana --experiment cxic00121 --run 80 --queue milano