463 lines
22 KiB
XML
Executable File
463 lines
22 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<configuration xmlns="http://www.psi.ch/~ebner/models/scan/1.0" numberOfExecution="1" failOnSensorError="true">
|
|
<data format="txt" fileName="PELLETS_HMOR"/>
|
|
<variable name="K" value="0.0" description="Buffer K spacing for EXAFS k-spacing scans " /><variable name="N_cycles" value="0.0" description="Buffer N_cycles for EXAFS k-spacing scans " /><scan>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ShellAction" checkExitValue="false" command="/sls/X07MB/data/settings/Scripts/GUI_X07MB/X_X07MB_fda_file_to_EPICS.sh ${FILENAME}"/> <preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ShellAction" checkExitValue="false" command="/sls/X07MB/data/settings/Scripts/GUI_X07MB/X_X07MB_fda_write_header.py"/><preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-OP2:START-CSMPL" value="0" operation="put" type="String" delay="0.07"/>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-XMAP:StopAll" value="1" operation="put" type="String" delay="0.07"/>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-XMAP:CollectMode" value="0" operation="put" type="String" delay="0.07"/>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-XMAP:Apply" value="1" operation="put" type="String" delay="0.07"/>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-XMAP:PresetReal" value="0" operation="put" type="String" delay="0.07"/>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="5" operation="put" type="String" delay="0.1"/>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-ES1-PP2:VO5" value="0" operation="put" type="String" delay="0.07"/>
|
|
<preAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-OP-WV1:WT_SET" value="1" operation="put" type="String" delay="0.07"/>
|
|
<dimension zigzag="false" dataGroup="false">
|
|
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RegionPositioner" name="X07MB-OP-MO:E-SET" settlingTime="0.2" readback="X07MB-OP-MO:E-GET" id="Energy">
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="50" />
|
|
<start>1399.0</start>
|
|
<end>1399.5</end><stepSize>0.4</stepSize>
|
|
</region>
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="20" />
|
|
<start>1400.0</start>
|
|
<end>1552.0</end><stepSize>10.0</stepSize>
|
|
</region>
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="20" />
|
|
<start>1552.5</start>
|
|
<end>1580.0</end><stepSize>0.3</stepSize>
|
|
</region>
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="50" />
|
|
<start>1581.0</start>
|
|
<end>1610.0</end><stepSize>1.0</stepSize>
|
|
</region>
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="60" />
|
|
<start>1611.0</start>
|
|
<end>1700.0</end><stepSize>2.0</stepSize>
|
|
</region>
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="60" />
|
|
<start>1705.0</start>
|
|
<end>1819.0</end><stepSize>4.0</stepSize>
|
|
</region>
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="100" />
|
|
<start>1820.0</start>
|
|
<end>1850.0</end><stepSize>6.0</stepSize>
|
|
</region>
|
|
<region>
|
|
<preAction xsi:type="ChannelAction" channel="X07MB-OP2:TOTAL-CYCLES" value="40.0" />
|
|
<start>4.0321673086</start>
|
|
<end>11.0</end><stepSize>0.05</stepSize>
|
|
<function>
|
|
<mapping xsi:type="VariableParameterMapping" name="K" variable="K_v" /><mapping xsi:type="ChannelParameterMapping" channel="X07MB-OP2:TOTAL-CYCLES" type="Double" variable="N_Cycles" /><script>
|
|
def calculate(parameter):
|
|
nc=N_Cycles.getValue()
|
|
nc=nc*1.003
|
|
N_Cycles.setValue(nc)
|
|
E_0=4039.0
|
|
h=6.626e-34
|
|
m=9.109e-31
|
|
k=parameter*1e10
|
|
K_v=k*1e-10
|
|
hk=(h/(2.*3.1415926))*k
|
|
E_joule=hk*hk / (2.*m)
|
|
E_eV=E_joule/1.6021e-19+E_0
|
|
return E_eV
|
|
</script>
|
|
</function>
|
|
</region>
|
|
</positioner>
|
|
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-XMAP:EraseStart" value="1" operation="putq" type="String" delay="0.05"/>
|
|
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-OP2:SMPL" value="1" operation="put" type="String" delay="0.1"/>
|
|
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-OP2:SMPL-DONE" value="1" operation="wait" type="Integer" delay="0.025"/>
|
|
<action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-XMAP:StopAll" value="1" operation="put" type="String" delay="0.025"/>
|
|
<guard>
|
|
<condition channel="ACOAU-ACCU:OP-MODE" value="6" type="Integer"/>
|
|
</guard>
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-ES-MA1:ScanX.VAL" id="ScanX_set" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-ES-MA1:ScanY.VAL" id="ScanY_set" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP-SH2:size.VAL" id="SL2X_set" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP-SV2:size.VAL" id="SL2Y_set" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP-MO:E-SET" id="Energy_set" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP-MO:BEAM-OFS" id="Mono_offset" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="ARIDI-PCT:CURRENT" id="I_SLS" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP2-SAI_07:MEAN" id="I0_KEITHLEY1" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP-KEITH1:setGain" id="KEITHLEY1_GAIN" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP2-SAI_08:MEAN" id="I1_KEITHLEY2" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-OP-KEITH2:setGain" id="KEITHLEY2_GAIN" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.R0" id="D2_OKa" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:SCA0Counts" id="D2_OKa_dxp" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.R1" id="D2_ALKa" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:SCA1Counts" id="D2_ALKa_dxp" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.R2" id="D2_SiKa" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:SCA2Counts" id="D2_SiKa_dxp" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.R3" id="D2_SKa" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:SCA3Counts" id="D2_SKa_dxp" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.R4" id="D2_ClKa" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:SCA4Counts" id="D2_ClKa_dxp" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.R5" id="D2_KKa" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:SCA5Counts" id="D2_KKa_dxp" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.R6" id="D2_CaKa" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:SCA6Counts" id="D2_CaKa_dxp" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:InputCountRate" id="D2_ICR" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:dxp2:OutputCountRate" id="D2_OCR" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.ELTM" id="DD2_ELTM" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.ERTM" id="DD2_ERTM" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScalarDetector" type="Double" name="X07MB-XMAP:mca2.DTIM" id="DD2_DTIM" />
|
|
<detector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ArrayDetector" arraySize="2048" name="X07MB-XMAP:mca2.VAL" id="Spec_2" />
|
|
</dimension>
|
|
<dimension>
|
|
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type=" ArrayPositioner" name="X07MB-ES-MA1:ScanX.VAL" readback="X07MB-ES-MA1:ScanX.RBV" id="ScanX">
|
|
<positions> -20.1</positions>
|
|
</positioner>
|
|
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type=" ArrayPositioner" name="X07MB-ES-MA1:ScanY.VAL" readback="X07MB-ES-MA1:ScanY.RBV" id="ScanY">
|
|
<positions> -19.0</positions>
|
|
</positioner>
|
|
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type=" ArrayPositioner" doneDelay="0.05" type="Integer" done="X07MB-OP-SH2:TRX1.DMOV" settlingTime="0.0" name="X07MB-OP-SH2:size.VAL" id="SL2X">
|
|
<positions> 1.4</positions>
|
|
</positioner>
|
|
<positioner xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type=" ArrayPositioner" doneDelay="0.05" type="Integer" done="X07MB-OP-SV2:TRY1.DMOV" settlingTime="0.0" name="X07MB-OP-SV2:size.VAL" id="SL2Y">
|
|
<positions> 1.35</positions>
|
|
</positioner>
|
|
</dimension>
|
|
<postAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-OP2:START-CSMPL" value="1" operation="put" type="String" delay="0.1" />
|
|
<postAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ShellAction" command="/sls/X07MB/data/settings/Scripts/GUI_X07MB/X_X07MB_write_filename_to_file.sh ${FILENAME}" exitValue="0" />
|
|
<postAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ChannelAction" channel="X07MB-OP2:START-CSMPL" value="1" operation="put" type="String" delay="0.1" />
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_TrueICR">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR) <> 0:
|
|
box = TrueICR
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_OKa_corr">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OKa" variable="a"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(a,b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR*d) <> 0:
|
|
box = a * TrueICR / OCR / d
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="OKa_sum_cps">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OKa_corr " variable="D2_OKa_corr"/>
|
|
<script>import math
|
|
def process(D2_OKa_corr):
|
|
SUM_DET = 0.
|
|
SUM_DET = SUM_DET + D2_OKa_corr
|
|
return SUM_DET </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_ALKa_corr">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ALKa" variable="a"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(a,b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR*d) <> 0:
|
|
box = a * TrueICR / OCR / d
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="ALKa_sum_cps">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ALKa_corr " variable="D2_ALKa_corr"/>
|
|
<script>import math
|
|
def process(D2_ALKa_corr):
|
|
SUM_DET = 0.
|
|
SUM_DET = SUM_DET + D2_ALKa_corr
|
|
return SUM_DET </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_SiKa_corr">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_SiKa" variable="a"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(a,b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR*d) <> 0:
|
|
box = a * TrueICR / OCR / d
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="SiKa_sum_cps">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_SiKa_corr " variable="D2_SiKa_corr"/>
|
|
<script>import math
|
|
def process(D2_SiKa_corr):
|
|
SUM_DET = 0.
|
|
SUM_DET = SUM_DET + D2_SiKa_corr
|
|
return SUM_DET </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_SKa_corr">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_SKa" variable="a"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(a,b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR*d) <> 0:
|
|
box = a * TrueICR / OCR / d
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="SKa_sum_cps">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_SKa_corr " variable="D2_SKa_corr"/>
|
|
<script>import math
|
|
def process(D2_SKa_corr):
|
|
SUM_DET = 0.
|
|
SUM_DET = SUM_DET + D2_SKa_corr
|
|
return SUM_DET </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_ClKa_corr">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ClKa" variable="a"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(a,b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR*d) <> 0:
|
|
box = a * TrueICR / OCR / d
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="ClKa_sum_cps">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ClKa_corr " variable="D2_ClKa_corr"/>
|
|
<script>import math
|
|
def process(D2_ClKa_corr):
|
|
SUM_DET = 0.
|
|
SUM_DET = SUM_DET + D2_ClKa_corr
|
|
return SUM_DET </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_KKa_corr">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_KKa" variable="a"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(a,b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR*d) <> 0:
|
|
box = a * TrueICR / OCR / d
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="KKa_sum_cps">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_KKa_corr " variable="D2_KKa_corr"/>
|
|
<script>import math
|
|
def process(D2_KKa_corr):
|
|
SUM_DET = 0.
|
|
SUM_DET = SUM_DET + D2_KKa_corr
|
|
return SUM_DET </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="D2_CaKa_corr">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_CaKa" variable="a"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_ICR" variable="b"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_OCR" variable="c"/>
|
|
<mapping xsi:type="IDParameterMapping" refid="DD2_ERTM" variable="d"/>
|
|
<script>import math
|
|
def process(a,b,c,d):
|
|
DeadTime = 1.182e-7
|
|
ICR = b
|
|
OCR = c
|
|
|
|
if (OCR) == 0:
|
|
box = 0
|
|
return box
|
|
if (ICR) == 0:
|
|
box = 0
|
|
return box
|
|
|
|
Test = 1.e8
|
|
TestICR = ICR
|
|
n = 0
|
|
while ((Test > DeadTime) and (n < 30)):
|
|
TrueICR = ICR * math.exp(TestICR * DeadTime)
|
|
Test = (TrueICR - TestICR) / TestICR
|
|
TestICR = TrueICR
|
|
n = n + 1
|
|
if (OCR*d) <> 0:
|
|
box = a * TrueICR / OCR / d
|
|
if (OCR*d) == 0:
|
|
box=0.0
|
|
return box </script>
|
|
|
|
</manipulation>
|
|
<manipulation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ScriptManipulation" id="CaKa_sum_cps">
|
|
<mapping xsi:type="IDParameterMapping" refid="D2_CaKa_corr " variable="D2_CaKa_corr"/>
|
|
<script>import math
|
|
def process(D2_CaKa_corr):
|
|
SUM_DET = 0.
|
|
SUM_DET = SUM_DET + D2_CaKa_corr
|
|
return SUM_DET </script>
|
|
|
|
</manipulation>
|
|
</scan>
|
|
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="Energy" y="D2_ICR D2_TrueICR" title="ICR " />
|
|
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="Energy" y="D2_OCR " title="OCR " />
|
|
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="Energy" y="D2_ALKa D2_ALKa_dxp" title="D2_ALKa" />
|
|
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="Energy" y="D2_ALKa_corr" title="D2_ALKa_corr" />
|
|
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="Energy" y="I0_KEITHLEY1" title="KEITHLEY1 (I0)=f(Energy)" />
|
|
<visualization xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LinePlot" x="Energy" y="I1_KEITHLEY2" title="KEITHLEY2 (I1)=f(Energy)" />
|
|
</configuration>
|