<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Hi Peter,
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">as an example I took the <span style=" color:#008000;">BTsimple.instr <font color="#000">from the template section.</font>
</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The command to run McStas is:
<span style=" color:#0000ff;">mcrun BTsimple.instr -d BTsimple_20230418_115509 <b>-n 1000</b> lambda=10 dlambda=9.9 maxhd=3 maxvd=3 gw=0.1 gh=0.1 gL=50 gm=6 delta1=0 delta2=0</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><style type="text/css">p, li { white-space: pre-wrap; }</style></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">and the reads (just as an example)
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><b><font face="monospace">BT_in.dat </font></b></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"># Format: McCode with text headers
# URL: <a class="moz-txt-link-freetext" href="http://www.mccode.org">http://www.mccode.org</a>
# Creator:
# Instrument: BTsimple.instr
<b># Ncount:</b><b> 2000</b>
# Trace: no
# Gravitation: no
# Seed: 1681811710726221
# Directory: /Users/wagnerrichard/BTsimple_20230418_115509
# Param: lambda=10
# Param: dlambda=9.9
# Param: maxhd=3
# Param: maxvd=3
# Param: gw=0.1
# Param: gh=0.1
# Param: gL=50
# Param: gm=6
# Param: delta1=0
# Param: delta2=0
# Date: Tue Apr 18 11:55:10 2023 (1681811710)
# type: array_1d(101)
# Source: BTsimple (BTsimple.instr)
# component: BT_in
# position: 0 0 2
# title: Wavelength monitor
# Ncount: 2000
# filename: BT_in.dat
# statistics: X0=2.95806; dX=1.79349;
# signal: Min=0; Max=1.42052e+11; Mean=7.26371e+09;
# values: 7.33634e+11 2.44642e+11 34
# xvar: L
# yvar: (I,I_err)
# xlabel: Wavelength [AA]
# ylabel: Intensity
# xlimits: 0.1 19.9
# variables: L I I_err N
0.198019802 0.06290653129 0.06290653129 1
0.3940594059 0 0 0
0.5900990099 0 0 0
0.7861386139 0 0 0
0.9821782178 8.634588395e+10 8.634588395e+10 1
1.178217822 1.129377287e+11 1.129377287e+11 1
1.374257426 0 0 0
1.57029703 0 0 0
1.766336634 0 0 0
1.962376238 0 0 0
2.158415842 0 0 0
2.354455446 0 0 0
2.55049505 1.045974734e+11 1.045974734e+11 1
2.746534653 0 0 0
2.942574257 8.997598489e+10 8.997598489e+10 1
3.138613861 7.835386438e+10 7.835386438e+10 1
3.334653465 1.420521026e+11 1.004534555e+11 2
3.530693069 0 0 0
3.726732673 0 0 0
3.922772277 4.930911027e+10 4.930911027e+10 1
4.118811881 0 0 0
4.314851485 0 0 0
4.510891089 0 0 0
4.706930693 0 0 0
4.902970297 0 0 0
5.099009901 0 0 0
5.295049505 0 0 0
5.491089109 0 0 0
5.687128713 0 0 0
5.883168317 2.834814784e+10 2.005320461e+10 2
6.079207921 0 0 0
6.275247525 0 0 0
6.471287129 0 0 0
6.667326733 1.878195926e+10 1.328092168e+10 2
6.863366337 0 0 0
7.059405941 0 0 0
7.255445545 0 0 0
7.451485149 0 0 0
7.647524752 5150986989 5150986989 1
7.843564356 0 0 0
8.03960396 4013292994 4013292994 1
8.235643564 3595007505 3595007505 1
8.431683168 0 0 0
8.627722772 0 0 0
8.823762376 0 0 0
9.01980198 0 0 0
9.215841584 2189836065 2189836065 1
9.411881188 1988533204 1988533204 1
9.607920792 0 0 0
9.803960396 0 0 0
10 1492967095 1492967095 1
10.1960396 0 0 0
10.39207921 0 0 0
10.58811881 0 0 0
10.78415842 0 0 0
10.98019802 0 0 0
11.17623762 0 0 0
11.37227723 848524385.4 848524385.4 1
11.56831683 776540913.4 776540913.4 1
11.76435644 704975245.4 704975245.4 1
11.96039604 0 0 0
12.15643564 0 0 0
12.35247525 0 0 0
12.54851485 0 0 0
12.74455446 0 0 0
12.94059406 0 0 0
13.13663366 0 0 0
13.33267327 0 0 0
13.52871287 0 0 0
13.72475248 361109386.4 361109386.4 1
13.92079208 0 0 0
14.11683168 0 0 0
14.31287129 0 0 0
14.50891089 272324491.7 272324491.7 1
14.7049505 0 0 0
14.9009901 241800376.7 241800376.7 1
15.0970297 224371882.4 224371882.4 1
15.29306931 203464827.5 203464827.5 1
15.48910891 0 0 0
15.68514851 182210050 182210050 1
15.88118812 173421371.5 173421371.5 1
16.07722772 0 0 0
16.27326733 0 0 0
16.46930693 0 0 0
16.66534653 140822062.6 140822062.6 1
16.86138614 0 0 0
17.05742574 124243190.4 124243190.4 1
17.25346535 0 0 0
17.44950495 0 0 0
17.64554455 0 0 0
17.84158416 0 0 0
18.03762376 91358644.93 91358644.93 1
18.23366337 90222429.45 90222429.45 1
18.42970297 0 0 0
18.62574257 0 0 0
18.82178218 0 0 0
19.01782178 0 0 0
19.21386139 0 0 0
19.40990099 65966180.97 65966180.97 1
19.60594059 0 0 0
19.8019802 0 0 0
<span style=" color:#008000;"></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#008000;">
</span></p>
<p><style type="text/css">p, li { white-space: pre-wrap; }</style></p>
<div class="moz-cite-prefix">Holds for the rest of the dat-files and
for simulations with higer n numbers<br>
</div>
<div class="moz-cite-prefix">I just took n = 1000 for demonstration
purposes. <br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Best</div>
<div class="moz-cite-prefix">Richard<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 18/04/2023 12:07, Peter Kjær
Willendrup wrote:<br>
</div>
<blockquote type="cite"
cite="mid:992C3873-952B-410C-A814-E3B6BD058B7E@fysik.dtu.dk">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hi Richard,
<div><br>
</div>
<div><br>
</div>
<div>Hmm, no this sounds strange?</div>
<div><br>
</div>
<div>Could you help by providing a little bit more context? I.e. </div>
<div><br>
</div>
<div>* What are you running?</div>
<div>* How?</div>
<div>* Where do you read off the resulting Ncount?</div>
<div>
<div><br>
</div>
<div>Best,</div>
<div>Peter</div>
<div><br>
<blockquote type="cite">
<div>On 18 Apr 2023, at 11.58, Richard Wagner
<a class="moz-txt-link-rfc2396E" href="mailto:wagnerrichard@ill.fr"><wagnerrichard@ill.fr></a> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div>
<p>Dear McStas Experts and Community</p>
<p>Is there a reason that the in Mcstas 3.3 Ncount is twice as high then the "Ray count" selected?</p>
<p>eg.:<i> -n 1000</i> -> <i># Ncount: 2000 </i>
</p>
<p>Best</p>
<p>Richard
</p>
<div class="moz-signature">-- <br>
<b>Richard Wagner</b><br>
Postdoctoral Research Engineer<br>
Nuclear and Particle Physics Group<br>
Institut Laue-Langevin - ILL<br>
71, avenue des Martyrs<br>
CS 20156<br>
38042 Grenoble Cedex 9<br>
France <br>
<br>
<a href="x-msg://1/www.ill.eu" moz-do-not-send="true"><font
color="#3984c6">www.ill.eu</font></a>
<p>
</p>
</div>
</div>
_______________________________________________<br>
mcstas-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:mcstas-users@mcstas.org">mcstas-users@mcstas.org</a><br>
<a class="moz-txt-link-freetext" href="https://mailman2.mcstas.org/mailman/listinfo/mcstas-users">https://mailman2.mcstas.org/mailman/listinfo/mcstas-users</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<div class="moz-signature">-- <br>
<b>Richard Wagner</b><br>
Postdoctoral Research Engineer<br>
Nuclear and Particle Physics Group<br>
Institut Laue-Langevin - ILL<br>
71, avenue des Martyrs<br>
CS 20156<br>
38042 Grenoble Cedex 9<br>
France <br>
<br>
<a href="www.ill.eu"><font color="#3984c6">www.ill.eu</font></a>
<p>
</p>
</div>
</body>
</html>