]>
Commit | Line | Data |
---|---|---|
5ad4eb21 | 1 | <chapter name="Error Checks"> |
2 | ||
3 | <h2>Error Checks</h2> | |
4 | ||
5 | There is a few settings related to error checking during program | |
6 | execution. Many other checks are performed as well, but do not | |
7 | have any specific setting related to themselves. | |
8 | ||
9 | <flag name="Check:particleData" default="off"> | |
10 | Check the particle data tables for potential problems during | |
11 | initialization. This includes inconsistent use of charge in particle | |
12 | names, inconsistent setup of mass, mass range, width and lifetime, | |
13 | sum of branching ratios not unity (allowed but discouraged) or charge | |
14 | not conserved in a decay channel. Warnings should be viewed as reasons | |
15 | to check further, but need not indicate a true problem, and also not all | |
16 | problems may be caught. | |
17 | The <code>pythia.particleData.checkTable(level)</code> method, | |
18 | used for these checks, may also be called directly. | |
19 | </flag> | |
20 | ||
21 | <modepick name="Check:levelParticleData" default="1"> | |
22 | The level of verbosity and checks of particle data, if switched on. | |
23 | <option value="0">mimimal amount of checks, e.g. that no channels open. | |
24 | </option> | |
25 | <option value="1">further warning if individual channels closed, | |
26 | except for resonances.</option> | |
27 | <option value="2">also print branching-ratio-averaged threshold mass | |
28 | except for resonances.</option> | |
29 | <option value="11">as 1, but include resonances in detailed checks. | |
30 | </option> | |
31 | <option value="12">as 2, but include resonances in detailed checks. | |
32 | </option> | |
33 | </modepick> | |
34 | ||
35 | <flag name="Check:event" default="on"> | |
36 | When an event has been successfully generated, check that the | |
37 | final event record in <code>event</code> does not contain any | |
38 | unphysical particles, or nonconserved charge or energy-momentum. | |
39 | If this check fails, then <code>pythia.next()</code> obtains the | |
40 | value <code>false</code>, i.e. the event is counted as aborted. | |
41 | </flag> | |
42 | ||
43 | <modeopen name="Check:nErrList" default="0"> | |
44 | The number of erroneous events, in the above check, for which | |
45 | event listing and other detailed information will be printed. | |
46 | After that, only the normal error messages will be issued. | |
47 | Error counters are always updated, and accumulated numbers can be | |
48 | shown with <code>pythia.statistics()</code> at the end of the run. | |
49 | </modeopen> | |
50 | ||
51 | <parm name="Check:epTolErr" default="1e-4"> | |
52 | Maximum allowed summed deviation of <ei>E</ei>, <ei>p_x</ei>, | |
53 | <ei>p_y</ei> and <ei>p_z</ei> between the incoming beams and the | |
54 | final state, as a fraction of the initial energy, above which the | |
55 | event is counted as aborted. | |
56 | (Unfortunetely roundoff errors do not scale linearly with the energy, | |
57 | and also have a very long tail. So while most events at lower energies | |
58 | may be correct to better than 1e-10, at LHC it does not have to signal | |
59 | any fundamental bug if also the default tolerance above is violated | |
60 | occasionally.) | |
61 | </parm> | |
62 | ||
63 | <parm name="Check:epTolWarn" default="1e-6"> | |
64 | A check on the same summed deviation as above, but counted as a | |
65 | warning rather than an error, and not leading to the event being | |
66 | classified as aborted. | |
67 | </parm> | |
68 | ||
69 | </chapter> | |
70 | ||
71 | <!-- Copyright (C) 2008 Torbjorn Sjostrand --> |