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> |
---|
10 | function stopRKey(evt) { |
---|
11 | var evt = (evt) ? evt : ((event) ? event : null); |
---|
12 | var node = (evt.target) ? evt.target :((evt.srcElement) ? evt.srcElement : null); |
---|
13 | if ((evt.keyCode == 13) && (node.type=="text")) |
---|
14 | {return false;} |
---|
15 | } |
---|
16 | |
---|
17 | document.onkeypress = stopRKey; |
---|
18 | </script> |
---|
19 | <?php |
---|
20 | if($_POST['saved'] == 1) { |
---|
21 | if($_POST['filepath'] != "files/") { |
---|
22 | echo "<font color='red'>SETTINGS SAVED TO FILE</font><br/><br/>"; } |
---|
23 | else { |
---|
24 | echo "<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 | |
---|
34 | The main program is up to the user to write. However, |
---|
35 | <?php $filepath = $_GET["filepath"]; |
---|
36 | echo "<a href='SampleMainPrograms.php?filepath=".$filepath."' target='page'>";?>sample main programs</a> |
---|
37 | are provided. In one such class of programs, key settings of the run |
---|
38 | are read in from a "cards file". For experimental collaborations |
---|
39 | this is actually the most common way to run a program like PYTHIA. |
---|
40 | The commands in such a file may be of two types<br/> |
---|
41 | (a) instructions directly to <code>Pythia</code>, like which |
---|
42 | processes to generate, and<br/> |
---|
43 | (b) instructions to the main program for what it should do, |
---|
44 | like how many events to generate, and how many events should |
---|
45 | be listed.<br/> |
---|
46 | In principle these two kinds could be kept completely separate. |
---|
47 | However, to make life simpler, a number of useful main-program |
---|
48 | settings are defined on this page, so that they are recognized by |
---|
49 | the <code>Settings</code> machinery. They can thus be put among |
---|
50 | the other cards without distinction. It is up to you to decide which |
---|
51 | ones, if any, you actually want to use when you write your main program. |
---|
52 | |
---|
53 | <p/> |
---|
54 | To further reduce the necessary amount of main-program code, some of |
---|
55 | the tasks that you can steer from your main program can also be done |
---|
56 | internally. This in particular relates to some information printing. |
---|
57 | To give an example, the <code>Main:numberToList</code> mode can be |
---|
58 | used by you in your main program to decide to list a few of the |
---|
59 | generated events, whereas <code>Next:numberListEvent</code> is used |
---|
60 | internally in a <code>pythia.next()</code> call to do such a listing |
---|
61 | automatically. Ultimately, in both cases, a |
---|
62 | <code>pythia.event.list()</code> call is the one that generates |
---|
63 | the listing, explicitly in the main program in the former case, |
---|
64 | implicitly called from <code>pythia.next()</code> in the latter. |
---|
65 | |
---|
66 | <p/> |
---|
67 | The settings names on this page thus fall into four main groups |
---|
68 | <ul> |
---|
69 | <li><code>Init:...</code> denote actions that automatically may be |
---|
70 | taken during the <code>pythia.init()</code> call.</li> |
---|
71 | <li><code>Next:...</code> denote actions that automatically may be |
---|
72 | taken during the <code>pythia.next()</code> call.</li> |
---|
73 | <li><code>Stat:...</code> denote actions that automatically may be |
---|
74 | taken during the <code>pythia.stat()</code> call.</li> |
---|
75 | <li><code>Main:...</code> denote actions that you yourself |
---|
76 | have the freedom to make use of in your main program.</li> |
---|
77 | </ul> |
---|
78 | The use of several of the <code>Main:...</code> options is deprecated |
---|
79 | in favour of the other possibilities. |
---|
80 | |
---|
81 | <p/> |
---|
82 | The <code>Main:...</code> options works like this. Once you have used |
---|
83 | the <code>pythia.readFile(fileName)</code> method to read in the cards |
---|
84 | file, where the values have been set, you can interrogate the |
---|
85 | <code>Settings</code> database to make the values available in your |
---|
86 | main 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 |
---|
88 | that you want to extract. To save some typing the same method names are |
---|
89 | found 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 | |
---|
100 | The settings in this section <i>must</i> be under the control of the |
---|
101 | user, 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"/> (<code>default = <strong>1000</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
104 | The 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"/> (<code>default = <strong>10</strong></code>)</td></tr></table> |
---|
108 | Allow this many times that <code>pythia.next()</code> returns false, |
---|
109 | i.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 | (<code>default = <strong>on</strong></code>)<br/> |
---|
117 | Print a list of all processes that will be simulated, with |
---|
118 | their estimated cross section maxima, as used for the |
---|
119 | subsequent Monte Carlo selection. Also print corresponding |
---|
120 | Les 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 | (<code>default = <strong>on</strong></code>)<br/> |
---|
126 | Print initialization information for the multiparton interactions |
---|
127 | machinery. |
---|
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 | (<code>default = <strong>on</strong></code>)<br/> |
---|
133 | Print 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
139 | Print a list of all flag/mode/parameter/word settings. |
---|
140 | Warning: 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 | (<code>default = <strong>on</strong></code>)<br/> |
---|
146 | Print a list of particle and decay data for those particles |
---|
147 | that 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
153 | In the previous listing also include the resonances that are |
---|
154 | initialized at the beginning of a run and thus get new particle |
---|
155 | data, even if these may well agree with the default ones. |
---|
156 | Warning: 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
162 | Print a list of all particle and decay data. |
---|
163 | Warning: 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"/> (<code>default = <strong>0</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
167 | Print particle and decay data for the particle with this particular |
---|
168 | identity 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 | (<code>default = <strong>on</strong></code>)<br/> |
---|
174 | Deprecated. 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
180 | Deprecated. Print a list of all flag/mode/parameter/word settings. |
---|
181 | Warning: 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
187 | Deprecated. Print a list of particle and decay data for those particles |
---|
188 | that 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
194 | Deprecated. In the previous listing also include the resonances that are |
---|
195 | initialized at the beginning of a run and thus get new particle |
---|
196 | data, even if these may well agree with the default ones. |
---|
197 | Warning: 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
203 | Deprecated. Print a list of all particle and decay data. |
---|
204 | Warning: 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"/> (<code>default = <strong>0</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
208 | Deprecated. Print particle and decay data for the particle with this |
---|
209 | particular 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
215 | Write a file with the changed flag/mode/parameter/word settings, in |
---|
216 | a format appropriate to be read in at the beginning of a new |
---|
217 | run, 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"/> (<code>default = <strong>currentSettings.cmnd</strong></code>)</td></tr></table> |
---|
221 | The name of the file to which the changed flag/mode/parameter/word |
---|
222 | settings are written if <code>Main:writeChangedSettings</code> |
---|
223 | is 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
229 | Write a file with all flag/mode/parameter/word settings, in |
---|
230 | a format appropriate to be read in at the beginning of a new |
---|
231 | run, 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"/> (<code>default = <strong>allSettings.cmnd</strong></code>)</td></tr></table> |
---|
235 | The name of the file to which a flag/mode/parameter/word |
---|
236 | settings are written if <code>Main:writeAllSettings</code> |
---|
237 | is 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"/> (<code>default = <strong>1000</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
243 | Print a line telling how many events have been generated so far, |
---|
244 | once every <code>numberCount</code> events. If set zero then no |
---|
245 | lines 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"/> (<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
248 | The number of events to list the Les Houches input information for, |
---|
249 | where 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"/> (<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
253 | The number of events to list the <code>Info</code> information for, |
---|
254 | where 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"/> (<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
258 | The number of events to list the <code>process</code> record for, |
---|
259 | where 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"/> (<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
263 | The number of events to list the <code>event</code> record for, |
---|
264 | where 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
270 | In addition to the normal information in the listing of the |
---|
271 | <code>process</code> and <code>event</code> records, a second line |
---|
272 | per particle provides information on the production scale, |
---|
273 | particle 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
279 | In addition to the normal information in the listing of the |
---|
280 | <code>process</code> and <code>event</code> records, further lines |
---|
281 | list 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"/> (<code>default = <strong>2</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
285 | Deprecated. 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"/> (<code>default = <strong>50</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
289 | Deprecated. Print the number of events generated so far, this many times, |
---|
290 | i.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 | (<code>default = <strong>on</strong></code>)<br/> |
---|
298 | Print the available statistics on number of generated events and |
---|
299 | cross 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
305 | Print the available statistics on number and types of multiparton |
---|
306 | interactions, 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 | (<code>default = <strong>on</strong></code>)<br/> |
---|
312 | Print the available statistics on number and types of |
---|
313 | aborts, 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
319 | Reset the statistics of the above three kinds. The default is that |
---|
320 | all stored statistics information is unaffected by the |
---|
321 | <code>pythia.stat()</code> call. Counters are automatically reset |
---|
322 | in each new <code>pythia.init()</code> call, however, so the only time |
---|
323 | the reset option makes a difference is if <code>stat()</code> |
---|
324 | is 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
330 | Print all available statistics or only the minimal set at the end |
---|
331 | of the run. |
---|
332 | |
---|
333 | |
---|
334 | <h3>Subruns</h3> |
---|
335 | |
---|
336 | You can use <?php $filepath = $_GET["filepath"]; |
---|
337 | echo "<a href='ProgramFlow.php?filepath=".$filepath."' target='page'>";?>subruns</a> to carry out |
---|
338 | several tasks in the same run. In that case you will need repeated |
---|
339 | instances of the first setting below in your command file, and could |
---|
340 | additionally 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"/> (<code>default = <strong>-999</strong></code>; <code>minimum = 0</code>)</td></tr></table> |
---|
343 | The number of the current subrun, a non-negative integer, put as |
---|
344 | first 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 | (<code>default = <strong>off</strong></code>)<br/> |
---|
350 | If you read several Les Houches Event Files that you want to see |
---|
351 | considered 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"/> (<code>default = <strong>0</strong></code>)</td></tr></table> |
---|
357 | The number of subruns you intend to use in your current run. |
---|
358 | Unlike the two settings above, <code>Pythia</code> itself will not |
---|
359 | intepret this number, but you could e.g. have a loop in your main |
---|
360 | program to loop over subruns from 0 through |
---|
361 | <code>numberOfSubruns - 1</code>. |
---|
362 | |
---|
363 | |
---|
364 | <h3>Spares</h3> |
---|
365 | |
---|
366 | For currently unforeseen purposes, a few dummy settings are made |
---|
367 | available here. The user can set the desired value in a "cards file" |
---|
368 | and 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 | (<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 | (<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 | (<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"/> (<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"/> (<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"/> (<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"/> (<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"/> (<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"/> (<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"/> (<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"/> (<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"/> (<code>default = <strong>void</strong></code>)</td></tr></table> |
---|
410 | |
---|
411 | |
---|
412 | <input type="hidden" name="saved" value="1"/> |
---|
413 | |
---|
414 | <?php |
---|
415 | echo "<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 | |
---|
422 | if($_POST["saved"] == 1) |
---|
423 | { |
---|
424 | $filepath = $_POST["filepath"]; |
---|
425 | $handle = fopen($filepath, 'a'); |
---|
426 | |
---|
427 | if($_POST["1"] != "1000") |
---|
428 | { |
---|
429 | $data = "Main:numberOfEvents = ".$_POST["1"]."\n"; |
---|
430 | fwrite($handle,$data); |
---|
431 | } |
---|
432 | if($_POST["2"] != "10") |
---|
433 | { |
---|
434 | $data = "Main:timesAllowErrors = ".$_POST["2"]."\n"; |
---|
435 | fwrite($handle,$data); |
---|
436 | } |
---|
437 | if($_POST["3"] != "on") |
---|
438 | { |
---|
439 | $data = "Init:showProcesses = ".$_POST["3"]."\n"; |
---|
440 | fwrite($handle,$data); |
---|
441 | } |
---|
442 | if($_POST["4"] != "on") |
---|
443 | { |
---|
444 | $data = "Init:showMultipartonInteractions = ".$_POST["4"]."\n"; |
---|
445 | fwrite($handle,$data); |
---|
446 | } |
---|
447 | if($_POST["5"] != "on") |
---|
448 | { |
---|
449 | $data = "Init:showChangedSettings = ".$_POST["5"]."\n"; |
---|
450 | fwrite($handle,$data); |
---|
451 | } |
---|
452 | if($_POST["6"] != "off") |
---|
453 | { |
---|
454 | $data = "Init:showAllSettings = ".$_POST["6"]."\n"; |
---|
455 | fwrite($handle,$data); |
---|
456 | } |
---|
457 | if($_POST["7"] != "on") |
---|
458 | { |
---|
459 | $data = "Init:showChangedParticleData = ".$_POST["7"]."\n"; |
---|
460 | fwrite($handle,$data); |
---|
461 | } |
---|
462 | if($_POST["8"] != "off") |
---|
463 | { |
---|
464 | $data = "Init:showChangedResonanceData = ".$_POST["8"]."\n"; |
---|
465 | fwrite($handle,$data); |
---|
466 | } |
---|
467 | if($_POST["9"] != "off") |
---|
468 | { |
---|
469 | $data = "Init:showAllParticleData = ".$_POST["9"]."\n"; |
---|
470 | fwrite($handle,$data); |
---|
471 | } |
---|
472 | if($_POST["10"] != "0") |
---|
473 | { |
---|
474 | $data = "Init:showOneParticleData = ".$_POST["10"]."\n"; |
---|
475 | fwrite($handle,$data); |
---|
476 | } |
---|
477 | if($_POST["11"] != "on") |
---|
478 | { |
---|
479 | $data = "Main:showChangedSettings = ".$_POST["11"]."\n"; |
---|
480 | fwrite($handle,$data); |
---|
481 | } |
---|
482 | if($_POST["12"] != "off") |
---|
483 | { |
---|
484 | $data = "Main:showAllSettings = ".$_POST["12"]."\n"; |
---|
485 | fwrite($handle,$data); |
---|
486 | } |
---|
487 | if($_POST["13"] != "off") |
---|
488 | { |
---|
489 | $data = "Main:showChangedParticleData = ".$_POST["13"]."\n"; |
---|
490 | fwrite($handle,$data); |
---|
491 | } |
---|
492 | if($_POST["14"] != "off") |
---|
493 | { |
---|
494 | $data = "Main:showChangedResonanceData = ".$_POST["14"]."\n"; |
---|
495 | fwrite($handle,$data); |
---|
496 | } |
---|
497 | if($_POST["15"] != "off") |
---|
498 | { |
---|
499 | $data = "Main:showAllParticleData = ".$_POST["15"]."\n"; |
---|
500 | fwrite($handle,$data); |
---|
501 | } |
---|
502 | if($_POST["16"] != "0") |
---|
503 | { |
---|
504 | $data = "Main:showOneParticleData = ".$_POST["16"]."\n"; |
---|
505 | fwrite($handle,$data); |
---|
506 | } |
---|
507 | if($_POST["17"] != "off") |
---|
508 | { |
---|
509 | $data = "Main:writeChangedSettings = ".$_POST["17"]."\n"; |
---|
510 | fwrite($handle,$data); |
---|
511 | } |
---|
512 | if($_POST["18"] != "currentSettings.cmnd") |
---|
513 | { |
---|
514 | $data = "Main:changedSettingsFile = ".$_POST["18"]."\n"; |
---|
515 | fwrite($handle,$data); |
---|
516 | } |
---|
517 | if($_POST["19"] != "off") |
---|
518 | { |
---|
519 | $data = "Main:writeAllSettings = ".$_POST["19"]."\n"; |
---|
520 | fwrite($handle,$data); |
---|
521 | } |
---|
522 | if($_POST["20"] != "allSettings.cmnd") |
---|
523 | { |
---|
524 | $data = "Main:allSettingsFile = ".$_POST["20"]."\n"; |
---|
525 | fwrite($handle,$data); |
---|
526 | } |
---|
527 | if($_POST["21"] != "1000") |
---|
528 | { |
---|
529 | $data = "Next:numberCount = ".$_POST["21"]."\n"; |
---|
530 | fwrite($handle,$data); |
---|
531 | } |
---|
532 | if($_POST["22"] != "1") |
---|
533 | { |
---|
534 | $data = "Next:numberShowLHA = ".$_POST["22"]."\n"; |
---|
535 | fwrite($handle,$data); |
---|
536 | } |
---|
537 | if($_POST["23"] != "1") |
---|
538 | { |
---|
539 | $data = "Next:numberShowInfo = ".$_POST["23"]."\n"; |
---|
540 | fwrite($handle,$data); |
---|
541 | } |
---|
542 | if($_POST["24"] != "1") |
---|
543 | { |
---|
544 | $data = "Next:numberShowProcess = ".$_POST["24"]."\n"; |
---|
545 | fwrite($handle,$data); |
---|
546 | } |
---|
547 | if($_POST["25"] != "1") |
---|
548 | { |
---|
549 | $data = "Next:numberShowEvent = ".$_POST["25"]."\n"; |
---|
550 | fwrite($handle,$data); |
---|
551 | } |
---|
552 | if($_POST["26"] != "off") |
---|
553 | { |
---|
554 | $data = "Next:showScaleAndVertex = ".$_POST["26"]."\n"; |
---|
555 | fwrite($handle,$data); |
---|
556 | } |
---|
557 | if($_POST["27"] != "off") |
---|
558 | { |
---|
559 | $data = "Next:showMothersAndDaughters = ".$_POST["27"]."\n"; |
---|
560 | fwrite($handle,$data); |
---|
561 | } |
---|
562 | if($_POST["28"] != "2") |
---|
563 | { |
---|
564 | $data = "Main:numberToList = ".$_POST["28"]."\n"; |
---|
565 | fwrite($handle,$data); |
---|
566 | } |
---|
567 | if($_POST["29"] != "50") |
---|
568 | { |
---|
569 | $data = "Main:timesToShow = ".$_POST["29"]."\n"; |
---|
570 | fwrite($handle,$data); |
---|
571 | } |
---|
572 | if($_POST["30"] != "on") |
---|
573 | { |
---|
574 | $data = "Stat:showProcessLevel = ".$_POST["30"]."\n"; |
---|
575 | fwrite($handle,$data); |
---|
576 | } |
---|
577 | if($_POST["31"] != "off") |
---|
578 | { |
---|
579 | $data = "Stat:showPartonLevel = ".$_POST["31"]."\n"; |
---|
580 | fwrite($handle,$data); |
---|
581 | } |
---|
582 | if($_POST["32"] != "on") |
---|
583 | { |
---|
584 | $data = "Stat:showErrors = ".$_POST["32"]."\n"; |
---|
585 | fwrite($handle,$data); |
---|
586 | } |
---|
587 | if($_POST["33"] != "off") |
---|
588 | { |
---|
589 | $data = "Stat:reset = ".$_POST["33"]."\n"; |
---|
590 | fwrite($handle,$data); |
---|
591 | } |
---|
592 | if($_POST["34"] != "off") |
---|
593 | { |
---|
594 | $data = "Main:showAllStatistics = ".$_POST["34"]."\n"; |
---|
595 | fwrite($handle,$data); |
---|
596 | } |
---|
597 | if($_POST["35"] != "-999") |
---|
598 | { |
---|
599 | $data = "Main:subrun = ".$_POST["35"]."\n"; |
---|
600 | fwrite($handle,$data); |
---|
601 | } |
---|
602 | if($_POST["36"] != "off") |
---|
603 | { |
---|
604 | $data = "Main:LHEFskipInit = ".$_POST["36"]."\n"; |
---|
605 | fwrite($handle,$data); |
---|
606 | } |
---|
607 | if($_POST["37"] != "0") |
---|
608 | { |
---|
609 | $data = "Main:numberOfSubruns = ".$_POST["37"]."\n"; |
---|
610 | fwrite($handle,$data); |
---|
611 | } |
---|
612 | if($_POST["38"] != "off") |
---|
613 | { |
---|
614 | $data = "Main:spareFlag1 = ".$_POST["38"]."\n"; |
---|
615 | fwrite($handle,$data); |
---|
616 | } |
---|
617 | if($_POST["39"] != "off") |
---|
618 | { |
---|
619 | $data = "Main:spareFlag2 = ".$_POST["39"]."\n"; |
---|
620 | fwrite($handle,$data); |
---|
621 | } |
---|
622 | if($_POST["40"] != "off") |
---|
623 | { |
---|
624 | $data = "Main:spareFlag3 = ".$_POST["40"]."\n"; |
---|
625 | fwrite($handle,$data); |
---|
626 | } |
---|
627 | if($_POST["41"] != "0") |
---|
628 | { |
---|
629 | $data = "Main:spareMode1 = ".$_POST["41"]."\n"; |
---|
630 | fwrite($handle,$data); |
---|
631 | } |
---|
632 | if($_POST["42"] != "0") |
---|
633 | { |
---|
634 | $data = "Main:spareMode2 = ".$_POST["42"]."\n"; |
---|
635 | fwrite($handle,$data); |
---|
636 | } |
---|
637 | if($_POST["43"] != "0") |
---|
638 | { |
---|
639 | $data = "Main:spareMode3 = ".$_POST["43"]."\n"; |
---|
640 | fwrite($handle,$data); |
---|
641 | } |
---|
642 | if($_POST["44"] != "0.") |
---|
643 | { |
---|
644 | $data = "Main:spareParm1 = ".$_POST["44"]."\n"; |
---|
645 | fwrite($handle,$data); |
---|
646 | } |
---|
647 | if($_POST["45"] != "0.") |
---|
648 | { |
---|
649 | $data = "Main:spareParm2 = ".$_POST["45"]."\n"; |
---|
650 | fwrite($handle,$data); |
---|
651 | } |
---|
652 | if($_POST["46"] != "0.") |
---|
653 | { |
---|
654 | $data = "Main:spareParm3 = ".$_POST["46"]."\n"; |
---|
655 | fwrite($handle,$data); |
---|
656 | } |
---|
657 | if($_POST["47"] != "void") |
---|
658 | { |
---|
659 | $data = "Main:spareWord1 = ".$_POST["47"]."\n"; |
---|
660 | fwrite($handle,$data); |
---|
661 | } |
---|
662 | if($_POST["48"] != "void") |
---|
663 | { |
---|
664 | $data = "Main:spareWord2 = ".$_POST["48"]."\n"; |
---|
665 | fwrite($handle,$data); |
---|
666 | } |
---|
667 | if($_POST["49"] != "void") |
---|
668 | { |
---|
669 | $data = "Main:spareWord3 = ".$_POST["49"]."\n"; |
---|
670 | fwrite($handle,$data); |
---|
671 | } |
---|
672 | fclose($handle); |
---|
673 | } |
---|
674 | |
---|
675 | ?> |
---|
676 | </body> |
---|
677 | </html> |
---|
678 | |
---|
679 | <!-- Copyright (C) 2012 Torbjorn Sjostrand --> |
---|