Added first try at leakage current analysis.

This commit is contained in:
redford_s
2019-02-20 11:41:51 +01:00
parent 86788909a6
commit 06faf076cb
5 changed files with 1238 additions and 1 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@ BP_analysis
JFMC_CalibWriter_wBP
JFMC_BadPixels
LP_analysis
LC_analysis
data/
plots/

1143
LC_analysis.cpp Normal file

File diff suppressed because it is too large Load Diff

89
LC_scan.sh Normal file
View File

@ -0,0 +1,89 @@
#!/bin/bash
# to run do: bash LC_scan.sh
# prerequisites:
# - the hostname is set
# - export PATH=/afs/psi.ch/project/sls_det_software/latest_slsDetectorPackage/build/bin:$PATH
# - export LD_LIBRARY_PATH=/afs/psi.ch/project/sls_det_software/latest_slsDetectorPackage/build/bin:$LD_LIBRARY_PATH
# - detector is on
sls_detector_put powerchip 1
# set ADCINVERSionreg (by trial and error)
sls_detector_put reg 0x43 0x453b2a9c
sls_detector_put period 1.0
sls_detector_put vhighvoltage 200
sls_detector_put frames 10
# configure for receiver on mpc2012
sls_detector_put rx_udpport 32410
sls_detector_put rx_udpip 10.1.3.105
sls_detector_put rx_udpmac 3C:FD:FE:A2:14:D9
sls_detector_put detectorip 10.1.3.9
sls_detector_put detectormac 00:ab:be:cc:dd:e2
sls_detector_put configuremac 0
echo "The receiver should be waiting for data"
echo "Please check and press any key to continue, or press q to exit this script"
read -n 1 -s input
if [[ $input = "q" ]]; then
echo "Exiting script"
exit 1
fi
for tint in {5..45..5}
do
tint_sec=$(printf %.6f $(echo "$tint/1000000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sleep 1
sls_detector_put status start
sleep 11
done
for tint in {5..45..5}
do
tint_sec=$(printf %.6f $(echo "$tint/100000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sleep 1
sls_detector_put status start
sleep 11
done
for tint in {5..45..5}
do
tint_sec=$(printf %.6f $(echo "$tint/10000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sleep 1
sls_detector_put status start
sleep 11
done
for tint in {5..45..5}
do
tint_sec=$(printf %.6f $(echo "$tint/1000" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sleep 1
sls_detector_put status start
sleep 11
done
for tint in {5..45..5}
do
tint_sec=$(printf %.6f $(echo "$tint/100" | bc -l))
echo "setting integration time to (s) " $tint_sec
sls_detector_put exptime $tint_sec
sleep 1
sls_detector_put status start
sleep 11
done
echo "Finished scan"
echo "Script finished"

View File

@ -30,4 +30,7 @@ JFMC_BadPixels: JFMC_BadPixels.cpp
g++ -Wall -O3 -m64 -I$(ROOTSYS)/include -L$(ROOTSYS)/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic JFMC_BadPixels.cpp -o JFMC_BadPixels
LP_analysis: LP_analysis.cpp
g++ -Wall -O3 -m64 -I$(ROOTSYS)/include -L$(ROOTSYS)/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic LP_analysis.cpp -o LP_analysis
g++ -Wall -O3 -m64 -I$(ROOTSYS)/include -L$(ROOTSYS)/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic LP_analysis.cpp -o LP_analysis
LC_analysis: LC_analysis.cpp
g++ -Wall -O3 -m64 -I$(ROOTSYS)/include -L$(ROOTSYS)/lib -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic LC_analysis.cpp -o LC_analysis

View File

@ -1054,6 +1054,7 @@ Module 250
./CuFluo_analysis 250 HG0 /mnt/pcmoench_jungfrau_calib/data/Module_250_Calib pedeHG0_M250_2019-02-15 CuFluoHG0_M250_2019-02-15
./BP_analysis 250 /mnt/pcmoench_jungfrau_calib/data/Module_250_Calib/BP_M250_2019-02-14
./CS_analysis 250 /mnt/pcmoench_jungfrau_calib/data/Module_250_Calib CS_M250_2019-02-14
./LC_analysis 250 /mnt/pcmoench_jungfrau_calib/data/Module_250_Calib/LC_M250_2019-02-19
./JFMC_CalibWriter_wBP 250