To run charge injection at ASC or elsewhere

See Kaz's comment here.

To control the charge injection procedure, one can look at /reg/g/pcds/dist/pds/current/tools/scanning/take_pedestals --h

take_pedestals -r -f -o 5 -O 12

works fine as a quick sample of 1/7th of the pixels.  Looking at e.g. -G 77,154 works for the linearity check.


To analyze a charge injection run

I do e.g. epix10ka_offset_calibration -e detdaq21 -r 22 -i 0 -G 73,82 --idx=0 --nspace=7 -d DetLab.0:Epix10ka.0.  This produces plots in a directory structure that is labelled by the detector serial ID and the test date. The -i parameter determines which module to analyze for e.g. a quad. The script produces a ton of commentary but what's useful for is is that path information, which I grep doing e.g.

ls /reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/plots/epix10ka_0109_20230201091541_detda*AML*

So for example

/reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/plots/epix10ka_0109_20230201091541_detdaq21_r0016-DetLab-0-Epix10ka-0-seg00-cc031-AML-M-dat-r073-c082-ibr10-ibc11.png

and

/reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/plots/epix10ka_0109_20230201091541_detdaq21_r0016-DetLab-0-Epix10ka-0-seg00-cc031-AML-M-fit-r073-c082-ibr10-ibc11.png

are the sawtooth and single-period plots.

Because the process creates an analysis summary that blocks repeated analysis, if I do another pixel I find the serial ID and do e.g.

rm /reg/g/psdm/detector/gains/epix10k/panels/3791912962-0170007809-3607101462-1663404124-0001354881-3000606721-2650800153/*/*npz


  • No labels

1 Comment

  1. --------- ASC Lab ----------------------

    At the ASC lab, one can take pedestal and charge injection runs by typing:
    > five

    or

    >ci

    respectively at the command line.  

    These are aliases to the following commands:

    five = /reg/g/pcds/dist/pds/current/tools/scanning/take_pedestals
    ci = /reg/g/pcds/dist/pds/current/tools/scanning/take_pedestals --fullCalib -r

    ------------------------------------------


    ---------MFX----------------------------

    At MFX, one can take the pedestal and charge injection runs by:

    pedestal:  
    > takepeds

    charge injection:

    > /reg/g/pcds/dist/pds/current/tools/scanning/take_pedestals --fullCalib -r

    -------------------------------------------