/usr/share/doc/pythia8-doc/html/MainProgramSettings.html is in pythia8-doc-html 8.1.86-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 | <html>
<head>
<title>Main-Program and Related Settings</title>
<link rel="stylesheet" type="text/css" href="pythia.css"/>
<link rel="shortcut icon" href="pythia32.gif"/>
</head>
<body>
<h2>Main-Program and Related Settings</h2>
<h3>Introduction</h3>
The main program is up to the user to write. However,
<a href="SampleMainPrograms.html" target="page">sample main programs</a>
are provided. In one such class of programs, key settings of the run
are read in from a "cards file". For experimental collaborations
this is actually the most common way to run a program like PYTHIA.
The commands in such a file may be of two types<br/>
(a) instructions directly to <code>Pythia</code>, like which
processes to generate, and<br/>
(b) instructions to the main program for what it should do,
like how many events to generate, and how many events should
be listed.<br/>
In principle these two kinds could be kept completely separate.
However, to make life simpler, a number of useful main-program
settings are defined on this page, so that they are recognized by
the <code>Settings</code> machinery. They can thus be put among
the other cards without distinction. It is up to you to decide which
ones, if any, you actually want to use when you write your main program.
<p/>
To further reduce the necessary amount of main-program code, some of
the tasks that you can steer from your main program can also be done
internally. This in particular relates to some information printing.
To give an example, the <code>Main:numberToList</code> mode can be
used by you in your main program to decide to list a few of the
generated events, whereas <code>Next:numberListEvent</code> is used
internally in a <code>pythia.next()</code> call to do such a listing
automatically. Ultimately, in both cases, a
<code>pythia.event.list()</code> call is the one that generates
the listing, explicitly in the main program in the former case,
implicitly called from <code>pythia.next()</code> in the latter.
<p/>
The settings names on this page thus fall into four main groups
<ul>
<li><code>Init:...</code> denote actions that automatically may be
taken during the <code>pythia.init()</code> call.</li>
<li><code>Next:...</code> denote actions that automatically may be
taken during the <code>pythia.next()</code> call.</li>
<li><code>Stat:...</code> denote actions that automatically may be
taken during the <code>pythia.stat()</code> call.</li>
<li><code>Main:...</code> denote actions that you yourself
have the freedom to make use of in your main program.</li>
</ul>
The use of several of the <code>Main:...</code> options is deprecated
in favour of the other possibilities.
<p/>
The <code>Main:...</code> options works like this. Once you have used
the <code>pythia.readFile(fileName)</code> method to read in the cards
file, where the values have been set, you can interrogate the
<code>Settings</code> database to make the values available in your
main program. A slight complication is that you need to use a different
<code>Settings</code> method for each of the four possible return types
that you want to extract. To save some typing the same method names are
found directly in the <code>Pythia</code> class, and just send on to the
<code>Settings</code> ones to do the job, e.g.
<pre>
bool showCS = pythia.flag("Main:showChangedSettings");
int nEvent = pythia.mode("Main:numberOfEvents");
double spare1 = pythia.parm("Main:spareParm1");
string file = pythia.word("Main:allSettingsFile");
</pre>
<h3>Main-program settings</h3>
The settings in this section <i>must</i> be under the control of the
user, i.e. there are no internal equivalents.
<p/><code>mode </code><strong> Main:numberOfEvents </strong>
(<code>default = <strong>1000</strong></code>; <code>minimum = 0</code>)<br/>
The number of events to be generated.
<p/><code>mode </code><strong> Main:timesAllowErrors </strong>
(<code>default = <strong>10</strong></code>)<br/>
Allow this many times that <code>pythia.next()</code> returns false,
i.e. that an event is flawed, before aborting the run.
<h3>Initialization settings</h3>
<p/><code>flag </code><strong> Init:showProcesses </strong>
(<code>default = <strong>on</strong></code>)<br/>
Print a list of all processes that will be simulated, with
their estimated cross section maxima, as used for the
subsequent Monte Carlo selection. Also print corresponding
Les Houches initialization data, where relevant.
<p/><code>flag </code><strong> Init:showMultipartonInteractions </strong>
(<code>default = <strong>on</strong></code>)<br/>
Print initialization information for the multiparton interactions
machinery.
<p/><code>flag </code><strong> Init:showChangedSettings </strong>
(<code>default = <strong>on</strong></code>)<br/>
Print a list of the changed flag/mode/parameter/word settings.
<p/><code>flag </code><strong> Init:showAllSettings </strong>
(<code>default = <strong>off</strong></code>)<br/>
Print a list of all flag/mode/parameter/word settings.
Warning: this will be a long list.
<p/><code>flag </code><strong> Init:showChangedParticleData </strong>
(<code>default = <strong>on</strong></code>)<br/>
Print a list of particle and decay data for those particles
that were changed (one way or another).
<p/><code>flag </code><strong> Init:showChangedResonanceData </strong>
(<code>default = <strong>off</strong></code>)<br/>
In the previous listing also include the resonances that are
initialized at the beginning of a run and thus get new particle
data, even if these may well agree with the default ones.
Warning: this will be a rather long list.
<p/><code>flag </code><strong> Init:showAllParticleData </strong>
(<code>default = <strong>off</strong></code>)<br/>
Print a list of all particle and decay data.
Warning: this will be a long list.
<p/><code>mode </code><strong> Init:showOneParticleData </strong>
(<code>default = <strong>0</strong></code>; <code>minimum = 0</code>)<br/>
Print particle and decay data for the particle with this particular
identity code. Default means that no particle is printed.
<p/><code>flag </code><strong> Main:showChangedSettings </strong>
(<code>default = <strong>on</strong></code>)<br/>
Deprecated. Print a list of the changed flag/mode/parameter/word settings.
<p/><code>flag </code><strong> Main:showAllSettings </strong>
(<code>default = <strong>off</strong></code>)<br/>
Deprecated. Print a list of all flag/mode/parameter/word settings.
Warning: this will be a long list.
<p/><code>flag </code><strong> Main:showChangedParticleData </strong>
(<code>default = <strong>off</strong></code>)<br/>
Deprecated. Print a list of particle and decay data for those particles
that were changed (one way or another).
<p/><code>flag </code><strong> Main:showChangedResonanceData </strong>
(<code>default = <strong>off</strong></code>)<br/>
Deprecated. In the previous listing also include the resonances that are
initialized at the beginning of a run and thus get new particle
data, even if these may well agree with the default ones.
Warning: this will be a rather long list.
<p/><code>flag </code><strong> Main:showAllParticleData </strong>
(<code>default = <strong>off</strong></code>)<br/>
Deprecated. Print a list of all particle and decay data.
Warning: this will be a long list.
<p/><code>mode </code><strong> Main:showOneParticleData </strong>
(<code>default = <strong>0</strong></code>; <code>minimum = 0</code>)<br/>
Deprecated. Print particle and decay data for the particle with this
particular identity code. Default means that no particle is printed.
<p/><code>flag </code><strong> Main:writeChangedSettings </strong>
(<code>default = <strong>off</strong></code>)<br/>
Write a file with the changed flag/mode/parameter/word settings, in
a format appropriate to be read in at the beginning of a new
run, using the <code>pythia.readFile(fileName)</code> method.
<p/><code>word </code><strong> Main:changedSettingsFile </strong>
(<code>default = <strong>currentSettings.cmnd</strong></code>)<br/>
The name of the file to which the changed flag/mode/parameter/word
settings are written if <code>Main:writeChangedSettings</code>
is on.
<p/><code>flag </code><strong> Main:writeAllSettings </strong>
(<code>default = <strong>off</strong></code>)<br/>
Write a file with all flag/mode/parameter/word settings, in
a format appropriate to be read in at the beginning of a new
run, using the <code>pythia.readFile(fileName)</code> method.
<p/><code>word </code><strong> Main:allSettingsFile </strong>
(<code>default = <strong>allSettings.cmnd</strong></code>)<br/>
The name of the file to which a flag/mode/parameter/word
settings are written if <code>Main:writeAllSettings</code>
is on.
<h3>Event-generation settings</h3>
<p/><code>mode </code><strong> Next:numberCount </strong>
(<code>default = <strong>1000</strong></code>; <code>minimum = 0</code>)<br/>
Print a line telling how many events have been generated so far,
once every <code>numberCount</code> events. If set zero then no
lines are ever printed.
<p/><code>mode </code><strong> Next:numberShowLHA </strong>
(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)<br/>
The number of events to list the Les Houches input information for,
where relevant.
<p/><code>mode </code><strong> Next:numberShowInfo </strong>
(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)<br/>
The number of events to list the <code>Info</code> information for,
where relevant.
<p/><code>mode </code><strong> Next:numberShowProcess </strong>
(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)<br/>
The number of events to list the <code>process</code> record for,
where relevant.
<p/><code>mode </code><strong> Next:numberShowEvent </strong>
(<code>default = <strong>1</strong></code>; <code>minimum = 0</code>)<br/>
The number of events to list the <code>event</code> record for,
where relevant.
<p/><code>flag </code><strong> Next:showScaleAndVertex </strong>
(<code>default = <strong>off</strong></code>)<br/>
In addition to the normal information in the listing of the
<code>process</code> and <code>event</code> records, a second line
per particle provides information on the production scale,
particle polarization and production vertex.
<p/><code>flag </code><strong> Next:showMothersAndDaughters </strong>
(<code>default = <strong>off</strong></code>)<br/>
In addition to the normal information in the listing of the
<code>process</code> and <code>event</code> records, further lines
list all the mothers and daughters of each particle.
<p/><code>mode </code><strong> Main:numberToList </strong>
(<code>default = <strong>2</strong></code>; <code>minimum = 0</code>)<br/>
Deprecated. The number of events to list.
<p/><code>mode </code><strong> Main:timesToShow </strong>
(<code>default = <strong>50</strong></code>; <code>minimum = 0</code>)<br/>
Deprecated. Print the number of events generated so far, this many times,
i.e. once every <code>numberOfEvents/numberToShow</code> events.
<h3>Statistics</h3>
<p/><code>flag </code><strong> Stat:showProcessLevel </strong>
(<code>default = <strong>on</strong></code>)<br/>
Print the available statistics on number of generated events and
cross sections, where relevant.
<p/><code>flag </code><strong> Stat:showPartonLevel </strong>
(<code>default = <strong>off</strong></code>)<br/>
Print the available statistics on number and types of multiparton
interactions, where relevant.
<p/><code>flag </code><strong> Stat:showErrors </strong>
(<code>default = <strong>on</strong></code>)<br/>
Print the available statistics on number and types of
aborts, errors and warnings.
<p/><code>flag </code><strong> Stat:reset </strong>
(<code>default = <strong>off</strong></code>)<br/>
Reset the statistics of the above three kinds. The default is that
all stored statistics information is unaffected by the
<code>pythia.stat()</code> call. Counters are automatically reset
in each new <code>pythia.init()</code> call, however, so the only time
the reset option makes a difference is if <code>stat()</code>
is called several times in a (sub)run.
<p/><code>flag </code><strong> Main:showAllStatistics </strong>
(<code>default = <strong>off</strong></code>)<br/>
Print all available statistics or only the minimal set at the end
of the run.
<h3>Subruns</h3>
You can use <a href="ProgramFlow.html" target="page">subruns</a> to carry out
several tasks in the same run. In that case you will need repeated
instances of the first setting below in your command file, and could
additionally use the second and third as well.
<p/><code>mode </code><strong> Main:subrun </strong>
(<code>default = <strong>-999</strong></code>; <code>minimum = 0</code>)<br/>
The number of the current subrun, a non-negative integer, put as
first line in a section of lines to be read for this particular subrun.
<p/><code>flag </code><strong> Main:LHEFskipInit </strong>
(<code>default = <strong>off</strong></code>)<br/>
If you read several Les Houches Event Files that you want to see
considered as one single combined event sample you can set this flag
<code>on</code> after the first subrun to skip (most of) the
(re-)initialization step.
<p/><code>mode </code><strong> Main:numberOfSubruns </strong>
(<code>default = <strong>0</strong></code>)<br/>
The number of subruns you intend to use in your current run.
Unlike the two settings above, <code>Pythia</code> itself will not
interpret this number, but you could e.g. have a loop in your main
program to loop over subruns from 0 through
<code>numberOfSubruns - 1</code>.
<h3>Spares</h3>
For currently unforeseen purposes, a few dummy settings are made
available here. The user can set the desired value in a "cards file"
and then use that value in the main program as desired.
<p/><code>flag </code><strong> Main:spareFlag1 </strong>
(<code>default = <strong>off</strong></code>)<br/>
<p/><code>flag </code><strong> Main:spareFlag2 </strong>
(<code>default = <strong>off</strong></code>)<br/>
<p/><code>flag </code><strong> Main:spareFlag3 </strong>
(<code>default = <strong>off</strong></code>)<br/>
<p/><code>mode </code><strong> Main:spareMode1 </strong>
(<code>default = <strong>0</strong></code>)<br/>
<p/><code>mode </code><strong> Main:spareMode2 </strong>
(<code>default = <strong>0</strong></code>)<br/>
<p/><code>mode </code><strong> Main:spareMode3 </strong>
(<code>default = <strong>0</strong></code>)<br/>
<p/><code>parm </code><strong> Main:spareParm1 </strong>
(<code>default = <strong>0.</strong></code>)<br/>
<p/><code>parm </code><strong> Main:spareParm2 </strong>
(<code>default = <strong>0.</strong></code>)<br/>
<p/><code>parm </code><strong> Main:spareParm3 </strong>
(<code>default = <strong>0.</strong></code>)<br/>
<p/><code>word </code><strong> Main:spareWord1 </strong>
(<code>default = <strong>void</strong></code>)<br/>
<p/><code>word </code><strong> Main:spareWord2 </strong>
(<code>default = <strong>void</strong></code>)<br/>
<p/><code>word </code><strong> Main:spareWord3 </strong>
(<code>default = <strong>void</strong></code>)<br/>
</body>
</html>
<!-- Copyright (C) 2014 Torbjorn Sjostrand -->
|