Skip to content

Commit e597470

Browse files
authored
mcxtrace: soleil-lucia: fix test (#2048)
go johnny go
1 parent 40af863 commit e597470

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

mcxtrace-comps/examples/SOLEIL/SOLEIL_LUCIA/SOLEIL_LUCIA.instr

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,31 @@
1212
*
1313
* %Description
1414
* The HU52 undulator, a DCM, a fluorescence sample, and monitors.
15+
* This model does not contain any focusing mirror.
16+
* The sample is a kind of biological cell.
1517
*
16-
* %Example: -n 1e7 E0=3 Detector: mon_spl_fluo_I=8.42337e+13
18+
* Position | Element
19+
* ---------|--------------------------------------------------------------------
20+
* 0 | HU52 undulator "Apple II" type, 32 periods, gap 15-150mm
21+
* 20 | Si(111) DCM, 40x40x10 mm^3 E0=5-16 keV
22+
* 29 | Sample location
23+
* 29.1 | Fluorescence Detector at 90 deg
24+
*
25+
* %Example: -n 1e7 E0=3 Detector: mon_spl_fluo_I=9.77125e+09
1726
*
1827
* %Parameters
19-
* E0: [keV] Nominal energy at the Wiggler.
20-
* dE: [keV] Energy half-bandwidth at the Wiggler
21-
* sample_material: [str] Absorption data file for the sample
28+
* E0: [keV] Nominal energy at the source, in 0.6-8 keV.
29+
* dE: [keV] Energy half-bandwidth at the source.
30+
* sample_material: [str] Absorption data file for the sample.
2231
* sample_geometry: [str] OFF/PLY file name for sample 3D geometry, or NULL for a box.
23-
* dcm_theta: [deg] Rotation angle of the DCM. 0=set from energy E0
32+
* dcm_theta: [deg] Rotation angle of the DCM. 0=set from energy E0.
2433
*
2534
* %Link
2635
* https://www.synchrotron-soleil.fr/en/beamlines/lucia
2736
*
2837
* %End
2938
*******************************************************************************/
30-
DEFINE INSTRUMENT SOLEIL_LUCIA(E0=3, dE=0.1, dcm_theta=0,
39+
DEFINE INSTRUMENT SOLEIL_LUCIA(E0=3.09, dE=0.02, dcm_theta=38.9,
3140
string sample_material="CaCO3AlP", string sample_geometry="plant_cell.ply")
3241

3342
DECLARE
@@ -138,7 +147,7 @@ AT (0,0,8.13) RELATIVE mon_dcm_e
138147

139148
COMPONENT fluo_rotated = Arm()
140149
AT (0,0,0) RELATIVE PREVIOUS
141-
ROTATED (0,30,0) RELATIVE PREVIOUS
150+
ROTATED (0,90,0) RELATIVE PREVIOUS
142151

143152
COMPONENT sample = Fluorescence(
144153
xwidth=100e-6, yheight=100e-6, zdepth=50e-6,
@@ -151,9 +160,9 @@ COMPONENT transmission = COPY(mon_src_xy)(
151160
AT (0,0,0.1) RELATIVE sample_stage
152161

153162
COMPONENT mon_spl_SDD = Fluo_detector(
154-
xwidth=0.1, yheight=0.1, nE=512,
163+
radius=0.1, nE=512,
155164
Emin=0, Emax=E0+dE*1.5, restore_xray=1)
156-
AT (0,0,0.1) RELATIVE fluo_rotated
165+
AT (0,0,0) RELATIVE sample
157166

158167
COMPONENT mon_spl_fluo = Monitor_nD(options="energy",
159168
xwidth=0.1, yheight=0.1, bins=1000,

0 commit comments

Comments
 (0)