Skip to content

Commit 183a736

Browse files
authored
Merge pull request #2034 from farhi/2-mcxtrace-fix-ssrl-vals
mcxtrace: fix SSRL values. Low stat.
2 parents acad6f0 + 78d040e commit 183a736

2 files changed

Lines changed: 4 additions & 17 deletions

File tree

mcxtrace-comps/examples/SSRL/SSRL_bl_11_2_not_white_src/SSRL_bl_11_2_not_white_src.instr

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* You may scan like so for example:
2222
* mxrun -n 1e7 SSRL_bl_11_2_not_white_src.instr -N601 Etohit=6900,7500
2323
*
24-
* %Example: Etohit=6900 Detector: EnergyMonitor_first_I=5.22652e+12
24+
* %Example: Etohit=6900 Detector: EnergyMonitor_first_I=1.3e+10
2525
*
2626
* %Parameters
2727
* Etohit: [eV.] Energy used to calculate the bragg angle the monochromator is put at. This is the energy we select.
@@ -58,7 +58,7 @@ AT (0, 0, 0) ABSOLUTE
5858

5959
COMPONENT src = Wiggler(
6060
E0=Etohit/1000,
61-
dE=100/1000,
61+
dE=100.0/1000,
6262
B=2,
6363
Nper=13,
6464
Ie=0.1,
@@ -156,12 +156,5 @@ COMPONENT EnergyMonitor_fourth = COPY(EnergyMonitor_first)(
156156
xwidth=4.3e-3,yheight=4.3e-3,filename="EnergyMonitor_fourth")
157157
AT (0,0,0) RELATIVE PREVIOUS
158158

159-
SAVE %{
160-
%}
161-
162-
FINALLY
163-
%{
164-
%}
165-
166159
END
167160

mcxtrace-comps/examples/SSRL/SSRL_bl_11_2_white_src/SSRL_bl_11_2_white_src.instr

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* You may scan like so for example:
2121
* mxrun -n 1e7 SSRL_bl_11_2_white_src.instr -N601 Etohit=6900,7500 detuning_percentage=40
2222
*
23-
* %Example: Etohit=6900 Detector: EnergyMonitor_first_I=7.3e+09
23+
* %Example: Etohit=6900 Detector: EnergyMonitor_first_I=4.24366e+07
2424
*
2525
* %Parameters
2626
* Etohit: [eV.] Energy used to calculate the bragg angle the monochromator is put at. This is the energy we select.
@@ -65,7 +65,7 @@ AT (0, 0, 0) ABSOLUTE
6565

6666
COMPONENT src = Wiggler(
6767
E0=22,
68-
dE=18,
68+
dE=1,
6969
B=2,
7070
Nper=13,
7171
Ie=0.1,
@@ -164,12 +164,6 @@ COMPONENT EnergyMonitor_fourth = COPY(EnergyMonitor_first)(
164164
xwidth=4.3e-3,yheight=4.3e-3,filename="EnergyMonitor_fourth")
165165
AT (0,0,0) RELATIVE PREVIOUS
166166

167-
SAVE %{
168-
%}
169-
170-
FINALLY
171-
%{
172-
%}
173167

174168
END
175169

0 commit comments

Comments
 (0)