Added first try at leakage current analysis.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,6 +10,7 @@ BP_analysis
|
||||
JFMC_CalibWriter_wBP
|
||||
JFMC_BadPixels
|
||||
LP_analysis
|
||||
LC_analysis
|
||||
|
||||
data/
|
||||
plots/
|
||||
|
1143
LC_analysis.cpp
Normal file
1143
LC_analysis.cpp
Normal file
File diff suppressed because it is too large
Load Diff
89
LC_scan.sh
Normal file
89
LC_scan.sh
Normal 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"
|
5
makefile
5
makefile
@ -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
|
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user