source: HiSusy/trunk/Pythia8/pythia8170/phpdoc/MainProgramSettings.php @ 1

Last change on this file since 1 was 1, checked in by zerwas, 11 years ago

first import of structure, PYTHIA8 and DELPHES

File size: 26.7 KB
Line 
1<html>
2<head>
3<title>Main-Program and Related Settings</title>
4<link rel="stylesheet" type="text/css" href="pythia.css"/>
5<link rel="shortcut icon" href="pythia32.gif"/>
6</head>
7<body>
8
9<script language=javascript type=text/javascript>
10function stopRKey(evt) {
11var evt = (evt) ? evt : ((event) ? event : null);
12var node = (evt.target) ? evt.target :((evt.srcElement) ? evt.srcElement : null);
13if ((evt.keyCode == 13) && (node.type=="text"))
14{return false;}
15}
16
17document.onkeypress = stopRKey;
18</script>
19<?php
20if($_POST['saved'] == 1) {
21if($_POST['filepath'] != "files/") {
22echo "<font color='red'>SETTINGS SAVED TO FILE</font><br/><br/>"; }
23else {
24echo "<font color='red'>NO FILE SELECTED YET.. PLEASE DO SO </font><a href='SaveSettings.php'>HERE</a><br/><br/>"; }
25}
26?>
27
28<form method='post' action='MainProgramSettings.php'>
29
30<h2>Main-Program and Related Settings</h2>
31
32<h3>Introduction</h3>
33
34The main program is up to the user to write. However,
35<?php $filepath = $_GET["filepath"];
36echo "<a href='SampleMainPrograms.php?filepath=".$filepath."' target='page'>";?>sample main programs</a>
37are provided. In one such class of programs, key settings of the run
38are read in from a "cards file". For experimental collaborations
39this is actually the most common way to run a program like PYTHIA.
40The commands in such a file may be of two types<br/>
41(a) instructions directly to <code>Pythia</code>, like which
42processes to generate, and<br/>
43(b) instructions to the main program for what it should do,
44like how many events to generate, and how many events should
45be listed.<br/>
46In principle these two kinds could be kept completely separate.
47However, to make life simpler, a number of useful main-program
48settings are defined on this page, so that they are recognized by
49the <code>Settings</code> machinery. They can thus be put among
50the other cards without distinction. It is up to you to decide which
51ones, if any, you actually want to use when you write your main program.
52
53<p/>
54To further reduce the necessary amount of main-program code, some of
55the tasks that you can steer from your main program can also be done
56internally. This in particular relates to some information printing.
57To give an example, the <code>Main:numberToList</code> mode can be
58used by you in your main program to decide to list a few of the
59generated events, whereas <code>Next:numberListEvent</code> is used
60internally in a <code>pythia.next()</code> call to do such a listing
61automatically. Ultimately, in both cases, a
62<code>pythia.event.list()</code> call is the one that generates
63the listing, explicitly in the main program in the former case,
64implicitly called from <code>pythia.next()</code> in the latter. 
65
66<p/>
67The settings names on this page thus fall into four main groups
68<ul>
69<li><code>Init:...</code> denote actions that automatically may be
70taken during the <code>pythia.init()</code> call.</li>
71<li><code>Next:...</code> denote actions that automatically may be
72taken during the <code>pythia.next()</code> call.</li>
73<li><code>Stat:...</code> denote actions that automatically may be
74taken during the <code>pythia.stat()</code> call.</li>
75<li><code>Main:...</code> denote actions that you yourself
76have the freedom to make use of in your main program.</li>
77</ul>
78The use of several of the <code>Main:...</code> options is deprecated
79in favour of the other possibilities.
80
81<p/>
82The <code>Main:...</code> options works like this. Once you have used
83the <code>pythia.readFile(fileName)</code> method to read in the cards
84file, where the values have been set, you can interrogate the
85<code>Settings</code> database to make the values available in your
86main program. A slight complication is that you need to use a different 
87<code>Settings</code> method for each of the four possible return types
88that you want to extract. To save some typing the same method names are
89found directly in the <code>Pythia</code> class, and just send on to the
90<code>Settings</code> ones to do the job, e.g.
91<pre>
92  bool   showCS = pythia.flag("Main:showChangedSettings");
93  int    nEvent = pythia.mode("Main:numberOfEvents");
94  double spare1 = pythia.parm("Main:spareParm1");
95  string file   = pythia.word("Main:allSettingsFile");
96</pre>
97
98<h3>Main-program settings</h3>
99
100The settings in this section <i>must</i> be under the control of the
101user, i.e. there are no internal equivalents.
102
103<br/><br/><table><tr><td><strong>Main:numberOfEvents </td><td></td><td> <input type="text" name="1" value="1000" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>1000</strong></code>; <code>minimum = 0</code>)</td></tr></table>
104The number of events to be generated.
105 
106
107<br/><br/><table><tr><td><strong>Main:timesAllowErrors </td><td></td><td> <input type="text" name="2" value="10" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>10</strong></code>)</td></tr></table>
108Allow this many times that <code>pythia.next()</code> returns false,
109i.e. that an event is flawed, before aborting the run.
110 
111
112<h3>Initialization settings</h3>
113
114<br/><br/><strong>Init:showProcesses</strong>  <input type="radio" name="3" value="on" checked="checked"><strong>On</strong>
115<input type="radio" name="3" value="off"><strong>Off</strong>
116 &nbsp;&nbsp;(<code>default = <strong>on</strong></code>)<br/>
117Print a list of all processes that will be simulated, with
118their estimated cross section maxima, as used for the
119subsequent Monte Carlo selection. Also print corresponding
120Les Houches initialization data, where relevant.
121 
122
123<br/><br/><strong>Init:showMultipartonInteractions</strong>  <input type="radio" name="4" value="on" checked="checked"><strong>On</strong>
124<input type="radio" name="4" value="off"><strong>Off</strong>
125 &nbsp;&nbsp;(<code>default = <strong>on</strong></code>)<br/>
126Print initialization information for the multiparton interactions
127machinery.
128 
129
130<br/><br/><strong>Init:showChangedSettings</strong>  <input type="radio" name="5" value="on" checked="checked"><strong>On</strong>
131<input type="radio" name="5" value="off"><strong>Off</strong>
132 &nbsp;&nbsp;(<code>default = <strong>on</strong></code>)<br/>
133Print a list of the changed flag/mode/parameter/word settings.
134 
135
136<br/><br/><strong>Init:showAllSettings</strong>  <input type="radio" name="6" value="on"><strong>On</strong>
137<input type="radio" name="6" value="off" checked="checked"><strong>Off</strong>
138 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
139Print a list of all flag/mode/parameter/word settings.
140Warning: this will be a long list.
141 
142
143<br/><br/><strong>Init:showChangedParticleData</strong>  <input type="radio" name="7" value="on" checked="checked"><strong>On</strong>
144<input type="radio" name="7" value="off"><strong>Off</strong>
145 &nbsp;&nbsp;(<code>default = <strong>on</strong></code>)<br/>
146Print a list of particle and decay data for those particles
147that were changed (one way or another).
148 
149
150<br/><br/><strong>Init:showChangedResonanceData</strong>  <input type="radio" name="8" value="on"><strong>On</strong>
151<input type="radio" name="8" value="off" checked="checked"><strong>Off</strong>
152 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
153In the previous listing also include the resonances that are
154initialized at the beginning of a run and thus get new particle
155data, even if these may well agree with the default ones.
156Warning: this will be a rather long list.
157 
158
159<br/><br/><strong>Init:showAllParticleData</strong>  <input type="radio" name="9" value="on"><strong>On</strong>
160<input type="radio" name="9" value="off" checked="checked"><strong>Off</strong>
161 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
162Print a list of all particle and decay data.
163Warning: this will be a long list.
164 
165
166<br/><br/><table><tr><td><strong>Init:showOneParticleData </td><td></td><td> <input type="text" name="10" value="0" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0</strong></code>; <code>minimum = 0</code>)</td></tr></table>
167Print particle and decay data for the particle with this particular
168identity code. Default means that no particle is printed.
169 
170
171<br/><br/><strong>Main:showChangedSettings</strong>  <input type="radio" name="11" value="on" checked="checked"><strong>On</strong>
172<input type="radio" name="11" value="off"><strong>Off</strong>
173 &nbsp;&nbsp;(<code>default = <strong>on</strong></code>)<br/>
174Deprecated. Print a list of the changed flag/mode/parameter/word settings.
175 
176
177<br/><br/><strong>Main:showAllSettings</strong>  <input type="radio" name="12" value="on"><strong>On</strong>
178<input type="radio" name="12" value="off" checked="checked"><strong>Off</strong>
179 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
180Deprecated. Print a list of all flag/mode/parameter/word settings.
181Warning: this will be a long list.
182 
183
184<br/><br/><strong>Main:showChangedParticleData</strong>  <input type="radio" name="13" value="on"><strong>On</strong>
185<input type="radio" name="13" value="off" checked="checked"><strong>Off</strong>
186 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
187Deprecated. Print a list of particle and decay data for those particles
188that were changed (one way or another).
189 
190
191<br/><br/><strong>Main:showChangedResonanceData</strong>  <input type="radio" name="14" value="on"><strong>On</strong>
192<input type="radio" name="14" value="off" checked="checked"><strong>Off</strong>
193 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
194Deprecated. In the previous listing also include the resonances that are
195initialized at the beginning of a run and thus get new particle
196data, even if these may well agree with the default ones.
197Warning: this will be a rather long list.
198 
199
200<br/><br/><strong>Main:showAllParticleData</strong>  <input type="radio" name="15" value="on"><strong>On</strong>
201<input type="radio" name="15" value="off" checked="checked"><strong>Off</strong>
202 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
203Deprecated. Print a list of all particle and decay data.
204Warning: this will be a long list.
205 
206
207<br/><br/><table><tr><td><strong>Main:showOneParticleData </td><td></td><td> <input type="text" name="16" value="0" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0</strong></code>; <code>minimum = 0</code>)</td></tr></table>
208Deprecated. Print particle and decay data for the particle with this
209particular identity code. Default means that no particle is printed.
210 
211
212<br/><br/><strong>Main:writeChangedSettings</strong>  <input type="radio" name="17" value="on"><strong>On</strong>
213<input type="radio" name="17" value="off" checked="checked"><strong>Off</strong>
214 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
215Write a file with the changed flag/mode/parameter/word settings, in
216a format appropriate to be read in at the beginning of a new 
217run, using the <code>pythia.readFile(fileName)</code> method.
218 
219
220<br/><br/><table><tr><td><strong>Main:changedSettingsFile </td><td></td><td> <input type="text" name="18" value="currentSettings.cmnd" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>currentSettings.cmnd</strong></code>)</td></tr></table>
221The name of the file to which the changed flag/mode/parameter/word
222settings are written if <code>Main:writeChangedSettings</code>
223is on.
224 
225
226<br/><br/><strong>Main:writeAllSettings</strong>  <input type="radio" name="19" value="on"><strong>On</strong>
227<input type="radio" name="19" value="off" checked="checked"><strong>Off</strong>
228 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
229Write a file with all flag/mode/parameter/word settings, in
230a format appropriate to be read in at the beginning of a new 
231run, using the <code>pythia.readFile(fileName)</code> method.
232 
233
234<br/><br/><table><tr><td><strong>Main:allSettingsFile </td><td></td><td> <input type="text" name="20" value="allSettings.cmnd" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>allSettings.cmnd</strong></code>)</td></tr></table>
235The name of the file to which a flag/mode/parameter/word
236settings are written if <code>Main:writeAllSettings</code>
237is on.
238 
239
240<h3>Event-generation settings</h3>
241
242<br/><br/><table><tr><td><strong>Next:numberCount </td><td></td><td> <input type="text" name="21" value="1000" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>1000</strong></code>; <code>minimum = 0</code>)</td></tr></table>
243Print a line telling how many events have been generated so far,
244once every <code>numberCount</code> events. If set zero then no
245lines are ever printed.
246
247<br/><br/><table><tr><td><strong>Next:numberShowLHA </td><td></td><td> <input type="text" name="22" value="1" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table>
248The number of events to list the Les Houches input information for,
249where relevant.
250 
251
252<br/><br/><table><tr><td><strong>Next:numberShowInfo </td><td></td><td> <input type="text" name="23" value="1" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table>
253The number of events to list the <code>Info</code> information for,
254where relevant.
255 
256
257<br/><br/><table><tr><td><strong>Next:numberShowProcess </td><td></td><td> <input type="text" name="24" value="1" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table>
258The number of events to list the <code>process</code> record for,
259where relevant.
260 
261
262<br/><br/><table><tr><td><strong>Next:numberShowEvent </td><td></td><td> <input type="text" name="25" value="1" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table>
263The number of events to list the <code>event</code> record for,
264where relevant.
265 
266
267<br/><br/><strong>Next:showScaleAndVertex</strong>  <input type="radio" name="26" value="on"><strong>On</strong>
268<input type="radio" name="26" value="off" checked="checked"><strong>Off</strong>
269 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
270In addition to the normal information in the listing of the
271<code>process</code> and <code>event</code> records, a second line
272per particle provides information on the production scale,
273particle polarization and production vertex.
274 
275
276<br/><br/><strong>Next:showMothersAndDaughters</strong>  <input type="radio" name="27" value="on"><strong>On</strong>
277<input type="radio" name="27" value="off" checked="checked"><strong>Off</strong>
278 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
279In addition to the normal information in the listing of the
280<code>process</code> and <code>event</code> records, further lines
281list all the mothers and daughters of each particle.
282 
283
284<br/><br/><table><tr><td><strong>Main:numberToList </td><td></td><td> <input type="text" name="28" value="2" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>2</strong></code>; <code>minimum = 0</code>)</td></tr></table>
285Deprecated. The number of events to list.
286 
287
288<br/><br/><table><tr><td><strong>Main:timesToShow </td><td></td><td> <input type="text" name="29" value="50" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>50</strong></code>; <code>minimum = 0</code>)</td></tr></table>
289Deprecated. Print the number of events generated so far, this many times,
290i.e. once every <code>numberOfEvents/numberToShow</code> events.
291 
292
293<h3>Statistics</h3>
294
295<br/><br/><strong>Stat:showProcessLevel</strong>  <input type="radio" name="30" value="on" checked="checked"><strong>On</strong>
296<input type="radio" name="30" value="off"><strong>Off</strong>
297 &nbsp;&nbsp;(<code>default = <strong>on</strong></code>)<br/>
298Print the available statistics on number of generated events and
299cross sections, where relevant.
300 
301
302<br/><br/><strong>Stat:showPartonLevel</strong>  <input type="radio" name="31" value="on"><strong>On</strong>
303<input type="radio" name="31" value="off" checked="checked"><strong>Off</strong>
304 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
305Print the available statistics on number and types of multiparton
306interactions, where relevant.
307 
308
309<br/><br/><strong>Stat:showErrors</strong>  <input type="radio" name="32" value="on" checked="checked"><strong>On</strong>
310<input type="radio" name="32" value="off"><strong>Off</strong>
311 &nbsp;&nbsp;(<code>default = <strong>on</strong></code>)<br/>
312Print the available statistics on number and types of
313aborts, errors and warnings.
314 
315
316<br/><br/><strong>Stat:reset</strong>  <input type="radio" name="33" value="on"><strong>On</strong>
317<input type="radio" name="33" value="off" checked="checked"><strong>Off</strong>
318 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
319Reset the statistics of the above three kinds. The default is that
320all stored statistics information is unaffected by the
321<code>pythia.stat()</code> call. Counters are automatically reset
322in each new <code>pythia.init()</code> call, however, so the only time
323the reset option makes a difference is if <code>stat()</code>
324is called several times in a (sub)run. 
325 
326
327<br/><br/><strong>Main:showAllStatistics</strong>  <input type="radio" name="34" value="on"><strong>On</strong>
328<input type="radio" name="34" value="off" checked="checked"><strong>Off</strong>
329 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
330Print all available statistics or only the minimal set at the end
331of the run.
332 
333
334<h3>Subruns</h3>
335
336You can use <?php $filepath = $_GET["filepath"];
337echo "<a href='ProgramFlow.php?filepath=".$filepath."' target='page'>";?>subruns</a> to carry out
338several tasks in the same run. In that case you will need repeated
339instances of the first setting below in your command file, and could
340additionally use the second and third as well.
341
342<br/><br/><table><tr><td><strong>Main:subrun </td><td></td><td> <input type="text" name="35" value="-999" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>-999</strong></code>; <code>minimum = 0</code>)</td></tr></table>
343The number of the current subrun, a non-negative integer, put as
344first line in a section of lines to be read for this particular subrun.
345 
346
347<br/><br/><strong>Main:LHEFskipInit</strong>  <input type="radio" name="36" value="on"><strong>On</strong>
348<input type="radio" name="36" value="off" checked="checked"><strong>Off</strong>
349 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
350If you read several Les Houches Event Files that you want to see
351considered as one single combined event sample you can set this flag
352<code>on</code> after the first subrun to skip (most of) the 
353(re-)initialization step.
354 
355
356<br/><br/><table><tr><td><strong>Main:numberOfSubruns </td><td></td><td> <input type="text" name="37" value="0" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0</strong></code>)</td></tr></table>
357The number of subruns you intend to use in your current run. 
358Unlike the two settings above, <code>Pythia</code> itself will not
359intepret this number, but you could e.g. have a loop in your main
360program to loop over subruns from 0 through
361<code>numberOfSubruns - 1</code>.
362 
363
364<h3>Spares</h3>
365
366For currently unforeseen purposes, a few dummy settings are made
367available here. The user can set the desired value in a "cards file"
368and then use that value in the main program as desired.
369
370<br/><br/><strong>Main:spareFlag1</strong>  <input type="radio" name="38" value="on"><strong>On</strong>
371<input type="radio" name="38" value="off" checked="checked"><strong>Off</strong>
372 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
373 
374
375<br/><br/><strong>Main:spareFlag2</strong>  <input type="radio" name="39" value="on"><strong>On</strong>
376<input type="radio" name="39" value="off" checked="checked"><strong>Off</strong>
377 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
378 
379
380<br/><br/><strong>Main:spareFlag3</strong>  <input type="radio" name="40" value="on"><strong>On</strong>
381<input type="radio" name="40" value="off" checked="checked"><strong>Off</strong>
382 &nbsp;&nbsp;(<code>default = <strong>off</strong></code>)<br/>
383 
384
385<br/><br/><table><tr><td><strong>Main:spareMode1 </td><td></td><td> <input type="text" name="41" value="0" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0</strong></code>)</td></tr></table>
386 
387
388<br/><br/><table><tr><td><strong>Main:spareMode2 </td><td></td><td> <input type="text" name="42" value="0" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0</strong></code>)</td></tr></table>
389 
390
391<br/><br/><table><tr><td><strong>Main:spareMode3 </td><td></td><td> <input type="text" name="43" value="0" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0</strong></code>)</td></tr></table>
392 
393
394<br/><br/><table><tr><td><strong>Main:spareParm1 </td><td></td><td> <input type="text" name="44" value="0." size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0.</strong></code>)</td></tr></table>
395 
396
397<br/><br/><table><tr><td><strong>Main:spareParm2 </td><td></td><td> <input type="text" name="45" value="0." size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0.</strong></code>)</td></tr></table>
398 
399
400<br/><br/><table><tr><td><strong>Main:spareParm3 </td><td></td><td> <input type="text" name="46" value="0." size="20"/>  &nbsp;&nbsp;(<code>default = <strong>0.</strong></code>)</td></tr></table>
401 
402
403<br/><br/><table><tr><td><strong>Main:spareWord1 </td><td></td><td> <input type="text" name="47" value="void" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>void</strong></code>)</td></tr></table>
404 
405
406<br/><br/><table><tr><td><strong>Main:spareWord2 </td><td></td><td> <input type="text" name="48" value="void" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>void</strong></code>)</td></tr></table>
407 
408
409<br/><br/><table><tr><td><strong>Main:spareWord3 </td><td></td><td> <input type="text" name="49" value="void" size="20"/>  &nbsp;&nbsp;(<code>default = <strong>void</strong></code>)</td></tr></table>
410 
411
412<input type="hidden" name="saved" value="1"/>
413
414<?php
415echo "<input type='hidden' name='filepath' value='".$_GET["filepath"]."'/>"?>
416
417<table width="100%"><tr><td align="right"><input type="submit" value="Save Settings" /></td></tr></table>
418</form>
419
420<?php
421
422if($_POST["saved"] == 1)
423{
424$filepath = $_POST["filepath"];
425$handle = fopen($filepath, 'a');
426
427if($_POST["1"] != "1000")
428{
429$data = "Main:numberOfEvents = ".$_POST["1"]."\n";
430fwrite($handle,$data);
431}
432if($_POST["2"] != "10")
433{
434$data = "Main:timesAllowErrors = ".$_POST["2"]."\n";
435fwrite($handle,$data);
436}
437if($_POST["3"] != "on")
438{
439$data = "Init:showProcesses = ".$_POST["3"]."\n";
440fwrite($handle,$data);
441}
442if($_POST["4"] != "on")
443{
444$data = "Init:showMultipartonInteractions = ".$_POST["4"]."\n";
445fwrite($handle,$data);
446}
447if($_POST["5"] != "on")
448{
449$data = "Init:showChangedSettings = ".$_POST["5"]."\n";
450fwrite($handle,$data);
451}
452if($_POST["6"] != "off")
453{
454$data = "Init:showAllSettings = ".$_POST["6"]."\n";
455fwrite($handle,$data);
456}
457if($_POST["7"] != "on")
458{
459$data = "Init:showChangedParticleData = ".$_POST["7"]."\n";
460fwrite($handle,$data);
461}
462if($_POST["8"] != "off")
463{
464$data = "Init:showChangedResonanceData = ".$_POST["8"]."\n";
465fwrite($handle,$data);
466}
467if($_POST["9"] != "off")
468{
469$data = "Init:showAllParticleData = ".$_POST["9"]."\n";
470fwrite($handle,$data);
471}
472if($_POST["10"] != "0")
473{
474$data = "Init:showOneParticleData = ".$_POST["10"]."\n";
475fwrite($handle,$data);
476}
477if($_POST["11"] != "on")
478{
479$data = "Main:showChangedSettings = ".$_POST["11"]."\n";
480fwrite($handle,$data);
481}
482if($_POST["12"] != "off")
483{
484$data = "Main:showAllSettings = ".$_POST["12"]."\n";
485fwrite($handle,$data);
486}
487if($_POST["13"] != "off")
488{
489$data = "Main:showChangedParticleData = ".$_POST["13"]."\n";
490fwrite($handle,$data);
491}
492if($_POST["14"] != "off")
493{
494$data = "Main:showChangedResonanceData = ".$_POST["14"]."\n";
495fwrite($handle,$data);
496}
497if($_POST["15"] != "off")
498{
499$data = "Main:showAllParticleData = ".$_POST["15"]."\n";
500fwrite($handle,$data);
501}
502if($_POST["16"] != "0")
503{
504$data = "Main:showOneParticleData = ".$_POST["16"]."\n";
505fwrite($handle,$data);
506}
507if($_POST["17"] != "off")
508{
509$data = "Main:writeChangedSettings = ".$_POST["17"]."\n";
510fwrite($handle,$data);
511}
512if($_POST["18"] != "currentSettings.cmnd")
513{
514$data = "Main:changedSettingsFile = ".$_POST["18"]."\n";
515fwrite($handle,$data);
516}
517if($_POST["19"] != "off")
518{
519$data = "Main:writeAllSettings = ".$_POST["19"]."\n";
520fwrite($handle,$data);
521}
522if($_POST["20"] != "allSettings.cmnd")
523{
524$data = "Main:allSettingsFile = ".$_POST["20"]."\n";
525fwrite($handle,$data);
526}
527if($_POST["21"] != "1000")
528{
529$data = "Next:numberCount = ".$_POST["21"]."\n";
530fwrite($handle,$data);
531}
532if($_POST["22"] != "1")
533{
534$data = "Next:numberShowLHA = ".$_POST["22"]."\n";
535fwrite($handle,$data);
536}
537if($_POST["23"] != "1")
538{
539$data = "Next:numberShowInfo = ".$_POST["23"]."\n";
540fwrite($handle,$data);
541}
542if($_POST["24"] != "1")
543{
544$data = "Next:numberShowProcess = ".$_POST["24"]."\n";
545fwrite($handle,$data);
546}
547if($_POST["25"] != "1")
548{
549$data = "Next:numberShowEvent = ".$_POST["25"]."\n";
550fwrite($handle,$data);
551}
552if($_POST["26"] != "off")
553{
554$data = "Next:showScaleAndVertex = ".$_POST["26"]."\n";
555fwrite($handle,$data);
556}
557if($_POST["27"] != "off")
558{
559$data = "Next:showMothersAndDaughters = ".$_POST["27"]."\n";
560fwrite($handle,$data);
561}
562if($_POST["28"] != "2")
563{
564$data = "Main:numberToList = ".$_POST["28"]."\n";
565fwrite($handle,$data);
566}
567if($_POST["29"] != "50")
568{
569$data = "Main:timesToShow = ".$_POST["29"]."\n";
570fwrite($handle,$data);
571}
572if($_POST["30"] != "on")
573{
574$data = "Stat:showProcessLevel = ".$_POST["30"]."\n";
575fwrite($handle,$data);
576}
577if($_POST["31"] != "off")
578{
579$data = "Stat:showPartonLevel = ".$_POST["31"]."\n";
580fwrite($handle,$data);
581}
582if($_POST["32"] != "on")
583{
584$data = "Stat:showErrors = ".$_POST["32"]."\n";
585fwrite($handle,$data);
586}
587if($_POST["33"] != "off")
588{
589$data = "Stat:reset = ".$_POST["33"]."\n";
590fwrite($handle,$data);
591}
592if($_POST["34"] != "off")
593{
594$data = "Main:showAllStatistics = ".$_POST["34"]."\n";
595fwrite($handle,$data);
596}
597if($_POST["35"] != "-999")
598{
599$data = "Main:subrun = ".$_POST["35"]."\n";
600fwrite($handle,$data);
601}
602if($_POST["36"] != "off")
603{
604$data = "Main:LHEFskipInit = ".$_POST["36"]."\n";
605fwrite($handle,$data);
606}
607if($_POST["37"] != "0")
608{
609$data = "Main:numberOfSubruns = ".$_POST["37"]."\n";
610fwrite($handle,$data);
611}
612if($_POST["38"] != "off")
613{
614$data = "Main:spareFlag1 = ".$_POST["38"]."\n";
615fwrite($handle,$data);
616}
617if($_POST["39"] != "off")
618{
619$data = "Main:spareFlag2 = ".$_POST["39"]."\n";
620fwrite($handle,$data);
621}
622if($_POST["40"] != "off")
623{
624$data = "Main:spareFlag3 = ".$_POST["40"]."\n";
625fwrite($handle,$data);
626}
627if($_POST["41"] != "0")
628{
629$data = "Main:spareMode1 = ".$_POST["41"]."\n";
630fwrite($handle,$data);
631}
632if($_POST["42"] != "0")
633{
634$data = "Main:spareMode2 = ".$_POST["42"]."\n";
635fwrite($handle,$data);
636}
637if($_POST["43"] != "0")
638{
639$data = "Main:spareMode3 = ".$_POST["43"]."\n";
640fwrite($handle,$data);
641}
642if($_POST["44"] != "0.")
643{
644$data = "Main:spareParm1 = ".$_POST["44"]."\n";
645fwrite($handle,$data);
646}
647if($_POST["45"] != "0.")
648{
649$data = "Main:spareParm2 = ".$_POST["45"]."\n";
650fwrite($handle,$data);
651}
652if($_POST["46"] != "0.")
653{
654$data = "Main:spareParm3 = ".$_POST["46"]."\n";
655fwrite($handle,$data);
656}
657if($_POST["47"] != "void")
658{
659$data = "Main:spareWord1 = ".$_POST["47"]."\n";
660fwrite($handle,$data);
661}
662if($_POST["48"] != "void")
663{
664$data = "Main:spareWord2 = ".$_POST["48"]."\n";
665fwrite($handle,$data);
666}
667if($_POST["49"] != "void")
668{
669$data = "Main:spareWord3 = ".$_POST["49"]."\n";
670fwrite($handle,$data);
671}
672fclose($handle);
673}
674
675?>
676</body>
677</html>
678
679<!-- Copyright (C) 2012 Torbjorn Sjostrand -->
Note: See TracBrowser for help on using the repository browser.