source: HiSusy/trunk/Pythia8/pythia8170/xmldoc/EventStatistics.xml @ 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: 5.9 KB
Line 
1<chapter name="Event Statistics">
2
3<h2>Event Statistics</h2>
4
5At the end of the run you will want to write out the final statistics
6on number of events generated, the corresponding cross sections and
7the number of errors encountered. This is done either with the 
8<code>pythia.stat()</code> method or the <code>pythia.statistics()</code> 
9one, assuming <code>pythia</code> is an instance of the
10<code>Pythia</code> class.The former method is steered entirely by
11settings values, see <aloc href="MainProgramSettings">here</aloc>
12The latter, deprecated one instead takes two arguments:
13 
14<method name="void Pythia::statistics(bool all = false, bool reset = false)">
15write out statistics on cross sections and errors. This is based on
16calls to the methods below, for the two kinds of information.
17<argument name="all"> 
18if <code>true</code> it allows a more extensive listing than the default
19one, see multiparton-interactions statistics below.
20</argument>
21<argument name="reset"> if <code>true</code> it implies that all counters,
22e.g on events generated and errors experienced, are reset to zero whenever
23the routine is called. The default instead is that all stored
24statistics information is unaffected by the call.
25Counters are automatically reset in each new <code>Pythia::init()</code> 
26call, however, so the only time the <code>reset</code> option makes a
27difference is if <code>statistics(...)</code> is called several times
28in a (sub)run.
29</argument>
30</method>
31
32<h3>Cross-section statistics</h3>
33
34The <code>ProcessLevel::statistics()</code> method cannot be accessed
35directly, but only via the <code>Pythia::stat()</code> and
36<code>Pythia::statistics(...)</code> calls above.
37When called it will loop over the list of existing processes, and for
38each write out name, code, the number of tried, selected and accepted
39events, the cross section and the estimated error on the latter.
40The three different event numbers are related to the Monte Carlo method
41used, whereby an initial upper estimate of the cross section is used to
42select a large number of trial phase-space points, whereof then not all
43survive. Rejections are normally done by the internal machinery, but can
44also be obtained by <aloc href="UserHooks">user hooks</aloc>.
45Therefore:
46<ul>
47<li><b>tried</b> events reflect the original number of
48phase-space points probed, as part of the upper estimate;</li>
49<li><b>selected</b> events correspond to those that survive
50the internal Monte-Carlo selection procedure;</li> 
51<li><b>accepted</b> events are those that also survive
52the additional user cuts.</li>
53</ul> 
54In most runs there would be no user hooks implemented, and then the
55numbers of selected and of accepted events will agree. Aborted events
56(see below) usually appear in the selected statistics but not in the
57accepted one.
58
59<p/>
60For Les Houches events the total cross section will be correctly
61displayed; however the (optional) error value will not be used, so that
62the reported error will be smaller than the correct statistical ones,
63and often vanish completely. Furthermore, while the number of events
64is shown for each user process, the cross section is only for the sum
65of them.
66
67<h3>Error messages</h3>
68
69When Pythia is run, errors may occur, and give rise to warning messages.
70These may be of varying severity, as follows:
71<ul>
72<li><b>Abort</b> means things went seriously wrong, and the
73initialization or event generation failed. In the former case it is
74not possible to generate events at all, in the latter the current
75event is flawed and should be skipped. In either case the respective
76method, <code>Pythia::init()</code> or <code>Pythia::next()</code>,
77then also returns the value <code>false</code>. There are occasions
78where an abort may be deliberate, such as when a file of Les Houches
79Events is read and the end of the file is reached.</li>
80<li><b>Error</b> normally is less severe. Typically the program will
81back up one step and try again. There are cases where this is not possible,
82in particular during the initialization and the generation of a hard
83process, and then the error may be followed by an abort as a direct
84consequence (with two separate messages).</li>   
85<li><b>Warning</b> is even less severe. In some cases the program will
86try again, with  good chances of success, in others no measure at all
87need to be taken.</li> 
88</ul>
89
90<p/>
91The error messages is handled by a small part of the <code>Info</code> 
92class. It is handed any abort, error or warning messages during the event
93generation phase, and will store each distinct message, with a counter
94for how many times it is issued. Thus it is possible to limit the number
95of identical messages issued, currently hardcoded so that each kind of
96error message is only printed once
97(<code>static const int TIMESTOPRINT = 1</code>).
98This can be overridden by the calling routine, so that all messages of
99this kind are shown, which is particularly relevant for the
100initialization  stage.
101The summary table printed by <code>Pythia::statistics()</code> 
102provides a table with all the different messages issued, in
103alphabetical order, with the total number of times each was generated.
104
105<h3>Multiparton-interactions statistics</h3>
106
107If you call <code>Pythia::statistics(true)</code>, i.e. with the first
108optional argument <code>true</code>, also statistics on multiparton
109interactions is printed, comprising a list of all allowed subprocesses
110with how many times each of them has been generated. For the minimum-bias
111process this also includes the hardest interaction, while else the
112hardest process is excluded from the statistics. (This is because
113the hardest process is of the same character and generated by the same
114machinery in the former case but not in the latter. Also, for the
115former case only, the standard statistics listing only lists
116minimum bias as one single process, i.e. does not further specify
117the character of the hardest subprocess, so there is not any overlap
118between the two.)
119
120</chapter>
121
122<!-- Copyright (C) 2012 Torbjorn Sjostrand -->
Note: See TracBrowser for help on using the repository browser.