]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PYTHIA8/pythia8140/xmldoc/LesHouchesAccord.xml
coverity
[u/mrichter/AliRoot.git] / PYTHIA8 / pythia8140 / xmldoc / LesHouchesAccord.xml
CommitLineData
b584e2f5 1<chapter name="Les Houches Accord">
2
3<h2>Les Houches Accord</h2>
4
5The Les Houches Accord (LHA) for user processes <ref>Boo01</ref> is the
6standard way to input parton-level information from a
7matrix-elements-based generator into PYTHIA. The conventions for
8which information should be stored has been defined in a Fortran context,
9as two commonblocks. Here a C++ equivalent is defined, as a single class.
10
11<p/>
12The <code>LHAup</code> class is a base class, containing reading and
13printout functions, plus two pure virtual functions, one to set
14initialization information and one to set information on each new event.
15Derived classes have to provide these two virtual functions to do
16the actual work. The existing derived classes are for reading information
17from a Les Houches Event File (LHEF), from the respective Fortran
18commonblocks, or from PYTHIA 8 itself.
19
20<p/>
21You are free to write your own derived classes, using the rules and
22methods to be described below. Normally, pointers to objects of such
23derived classes should be handed in with the
24<code><aloc href="ProgramFlow">Pythia::init( LHAup*)</aloc></code>
25method. However, with the LHEF format a filename can replace the
26pointer, see further below.
27
28<p/>
29Let us now describe the methods at your disposal to do the job.
30
31<method name="LHAup::LHAup( int strategy = 3)">
32the base class constructor takes the choice of mixing/weighting
33strategy as optional input argument, and calls <code>setStrategy</code>,
34see below. It also reserves some space for processes and particles.
35</method>
36
37<method name="virtual LHAup::~LHAup()">
38the destructor does not need to do anything.
39</method>
40
41<method name="void LHAup::setPtr(Info* infoPtr)">
42this method only sets the pointer that allows some information
43to be accessed, and is automatically called by
44<code>Pythia::init(...)</code>.
45</method>
46
47<h3>Initialization</h3>
48
49The <code>LHAup</code> class stores information equivalent to the
50<code>/HEPRUP/</code> commonblock, as required to initialize the event
51generation chain. The main difference is that the vector container
52now allows a flexible number of subprocesses to be defined. For the
53rest, names have been modified, since the 6-character-limit does not
54apply, and variables have been regrouped for clarity, but nothing
55fundamental is changed.
56
57<method name="virtual bool LHAup::setInit()">
58this pure virtual method has to be implemented in the derived class,
59to set relevant information when called. It should return false if it
60fails to set the info.
61</method>
62
63<p/>
64Inside <code>setInit()</code>, such information can be set by the following
65methods:
66<method name="void LHAup::setBeamA( int identity, double energy,
67int pdfGroup, int pdfSet)">
68</method>
69<methodmore name="void LHAup::setBeamB( int identity, double energy,
70int pdfGroup, int pdfSet)">
71sets the properties of the first and second incoming beam, respectively
72(cf. the Fortran <code>IDBMUP(1), EBMUP(i), PDFGUP(i), PDFSUP(i)</code>,
73with <code>i</code> 1 or 2). The parton distribution information
74defaults to zero. These numbers can be used to tell which PDF sets were
75used when the hard process was generated, while the normal
76<aloc href="PDFSelection">PDF Selection</aloc> is used for the further
77event generation in PYTHIA.
78</methodmore>
79
80<method name="void LHAup::setStrategy( int strategy)">
81sets the event weighting and cross section strategy. The default,
82provided in the class constructor, is 3, which is the natural value
83e.g. for an LHEF.
84<argument name="strategy">
85chosen strategy (cf. <code>IDWTUP</code>; see <ref>Sjo06</ref>
86section 9.9.1 for extensive comments).
87<argoption value="1"> events come with non-negative weight, given in units
88of pb, with an average that converges towards the cross section of the
89process. PYTHIA is in charge of the event mixing, i.e. for each new
90try decides which process should be generated, and then decides whether
91is should be kept, based on a comparison with <code>xMax</code>.
92Accepted events therefore have unit weight.</argoption>
93<argoption value="-1"> as option 1, except that cross sections can now be
94negative and events after unweighting have weight +-1. You can use
95<code><aloc href="EventInformation">Info::weight()</aloc></code>
96to find the weight of the current event. A correct event mixing requires
97that a process that can take both signs should be split in two, one limited
98to positive or zero and the other to negative or zero values, with
99<code>xMax</code> chosen appropriately for the two.</argoption>
100<argoption value="2"> events come with non-negative weight, in unspecified
101units, but such that <code>xMax</code> can be used to unweight the events
102to unit weight. Again PYTHIA is in charge of the event mixing.
103The total cross section of a process is stored in
104<code>xSec</code>.</argoption>
105<argoption value="-2"> as option 2, except that cross sections can now be
106negative and events after unweighting have weight +-1. As for option -1
107processes with indeterminate sign should be split in two.</argoption>
108<argoption value="3"> events come with unit weight, and are thus accepted
109as is. The total cross section of the process is stored in
110<code>xSec</code>.</argoption>
111<argoption value="-3"> as option 3, except that events now come with weight
112+-1. Unlike options -1 and -2 processes with indeterminate sign need not be
113split in two, unless you intend to mix with internal PYTHIA processes
114(see below).</argoption>
115<argoption value="4"> events come with non-negative weight, given in units
116of pb, with an average that converges towards the cross section of the
117process, like for option 1. No attempt is made to unweight the events,
118however, but all are generated in full, and retain their original weight.
119For consistency with normal PYTHIA units, the weight stored in
120<code>Info::weight()</code> has been converted to mb, however.
121</argoption>
122<argoption value="-4"> as option 4, except that events now can come
123either with positive or negative weights.</argoption>
124<note>Note 1</note>: if several processes have already been mixed and
125stored in a common event file, either LHEF or some private format, it
126would be problematical to read back events in a different order. Since it
127is then not feasible to let PYTHIA pick the next process type, strategies
128+-1 and +-2 would not work. Instead strategy 3 would be the recommended
129choice, or -3 if negative-weight events are required.
130<note>Note 2</note>: it is possible to switch on internally implemented
131processes and have PYTHIA mix these with LHA ones according to their relative
132cross sections for strategies +-1, +-2 and 3. It does not work for strategy
133-3 unless the positive and negative sectors of the cross sections are in
134separate subprocesses (as must always be the case for -1 and -2), since
135otherwise the overall mixture of PYTHIA and LHA processes will be off.
136Mixing is not possible for strategies +-4, since the weighting procedure
137is not specified by the standard. (For instance, the intention may be to
138have events biased towards larger <ei>pT</ei> values in some particular
139functional form.)
140</argument>
141</method>
142
143<method name="void LHAup::addProcess( int idProcess, double xSec,
144double xErr, double xMax)">
145sets info on an allowed process (cf. <code>LPRUP, XSECUP, XERRUP,
146XMAXUP</code>).
147Each new call will append one more entry to the list of processes.
148The choice of strategy determines which quantities are mandatory:
149<code>xSec</code> for strategies +-2 and +-3,
150<code>xErr</code> never, and
151<code>xMax</code> for strategies +-1 and +-2.
152</method>
153
154<note>Note</note>: PYTHIA does not make active use of the (optional)
155<code>xErr</code> values, but calculates a statistical cross section
156error based on the spread of event-to-event weights. This should work
157fine for strategy options +-1, but not for the others. Specifically,
158for options +-2 and +-3 the weight spread may well vanish, and anyway
159is likely to be an underestimate of the true error. If the author of the
160LHA input information does provide error information you may use that -
161this information is displayed at initialization. If not, then a relative
162error decreasing like <ei>1/sqrt(n_acc)</ei>, where <ei>n_acc</ei>
163is the number of accepted events, should offer a reasonable estimate.
164
165<method name="void LHAup::setXSec( int i, double xSec)">
166update the <code>xSec</code> value of the <code>i</code>'th process
167added with <code>addProcess</code> method (i.e. <code>i</code> runs
168from 0 through <code>sizeProc() - 1</code>, see below).
169</method>
170
171<method name="void LHAup::setXErr( int i, double xErr)">
172update the <code>xErr</code> value of the <code>i</code>'th process
173added with <code>addProcess</code> method.
174</method>
175
176<method name="void LHAup::setXMax( int i, double xMax)">
177update the <code>xMax</code> value of the <code>i</code>'th process
178added with <code>addProcess</code> method.
179</method>
180
181<p/>
182Information is handed back by the following methods
183(that normally you would not need to touch):
184<method name="int LHAup::idBeamA()">
185</method>
186<methodmore name="int LHAup::idBeamB()">
187</methodmore>
188<methodmore name="double LHAup::eBeamA()">
189</methodmore>
190<methodmore name="double LHAup::eBeamB()">
191</methodmore>
192<methodmore name="int LHAup::pdfGroupBeamA()">
193</methodmore>
194<methodmore name="int LHAup::pdfGroupBeamB()">
195</methodmore>
196<methodmore name="int LHAup::pdfSetBeamA()">
197</methodmore>
198<methodmore name="int LHAup::pdfSetBeamB()">
199for the beam properties.
200</methodmore>
201<method name="int LHAup::strategy()">
202for the strategy choice.
203</method>
204<method name="int LHAup::sizeProc()">
205for the number of subprocesses.
206</method>
207<method name="int LHAup::idProcess(i)">
208</method>
209<methodmore name="double LHAup::xSec(i)">
210</methodmore>
211<methodmore name="double LHAup::xErr(i)">
212</methodmore>
213<methodmore name="double LHAup::xMax(i)">
214for process <code>i</code> in the range <code>0 &lt;= i &lt;
215sizeProc()</code>.
216</methodmore>
217
218<method name="void LHAup::listInit(ostream& os = cout)">
219prints the above initialization information. This method is
220automatically called from <code>Pythia::init(...)</code>,
221so would normally not need to be called directly by the user.
222</method>
223
224<h3>Event input</h3>
225
226The <code>LHAup</code> class also stores information equivalent to the
227<code>/HEPEUP/</code> commonblock, as required to hand in the next
228parton-level configuration for complete event generation. The main
229difference is that the vector container now allows a flexible number
230of partons to be defined. For the rest, names have been modified,
231since the 6-character-limit does not apply, and variables have been
232regrouped for clarity, but nothing fundamental is changed.
233
234<p/>
235The LHA standard is based on Fortran arrays beginning with
236index 1, and mother information is defined accordingly. In order to
237be compatible with this convention, the zeroth line of the C++ particle
238array is kept empty, so that index 1 also here corresponds to the first
239particle. One small incompatibility is that the <code>sizePart()</code>
240method returns the full size of the particle array, including the
241empty zeroth line, and thus is one larger than the true number of
242particles (<code>NUP</code>).
243
244<method name="virtual bool LHAup::setEvent(int idProcess = 0)">
245this pure virtual method has to be implemented in the derived class,
246to set relevant information when called. For strategy options +-1
247and +-2 the input <code>idProcess</code> value specifies which process
248that should be generated, while <code>idProcess</code> is irrelevant
249for strategies +-3 and +-4. The method should return false if it fails
250to set the info, i.e. normally that the supply of events in a file is
251exhausted. If so, no event is generated, and <code>Pythia::next()</code>
252returns false. You can then interrogate
253<code><aloc href="EventInformation">Info::atEndOfFile()</aloc></code>
254to confirm that indeed the failure is caused in this method, and decide
255to break out of the event generation loop.
256
257<p/>
258Inside a normal <code>setEvent(...)</code> call, information can be set
259by the following methods:
260<method name="void LHAup::setProcess( int idProcess, double weight,
261double scale, double alphaQED, double alphaQCD)">
262tells which kind of process occured, with what weight, at what scale,
263and which <ei>alpha_EM</ei> and <ei>alpha_strong</ei> were used
264(cf. <code>IDPRUP, XWTGUP, SCALUP, AQEDUP, AQCDUP</code>). This method
265also resets the size of the particle list, and adds the empty zeroth
266line, so it has to be called before the <code>addParticle</code> method below.
267</method>
268<method name="void LHAup::addParticle( int id, int status, int mother1,
269int mother2, int colourTag1, int colourTag2, double p_x, double p_y,
270double p_z, double e, double m, double tau, double spin)">
271gives the properties of the next particle handed in (cf. <code>IDUP, ISTUP,
272MOTHUP(1,..), MOTHUP(2,..), ICOLUP(1,..), ICOLUP(2,..), PUP(J,..),
273VTIMUP, SPINUP</code>) .
274</method>
275
276<p/>
277Information is handed back by the following methods:
278<method name="int LHAup::idProcess()">
279process number.
280</method>
281
282<method name="double LHAup::weight()">.
283Note that the weight stored in <code>Info::weight()</code> as a rule
284is not the same as the above <code>weight()</code>: the method here gives
285the value before unweighting while the one in <code>info</code> gives
286the one after unweighting and thus normally is 1 or -1. Only with strategy
287options +-3 and +-4 would the value in <code>info</code> be the same as
288here, except for a conversion from pb to mb for +-4.
289</method>
290
291<method name="double LHAup::scale()">
292</method>
293<methodmore name="double LHAup::alphaQED()">
294</methodmore>
295<methodmore name="double LHAup::alphaQCD()">
296scale and couplings at that scale.
297</methodmore>
298
299<method name="int LHAup::sizePart()">
300the size of the particle array, which is one larger than the number
301of particles in the event, since the zeroth entry is kept empty
302(see above).
303</method>
304
305<method name="int LHAup::id(int i)">
306</method>
307<methodmore name="int LHAup::status(int i)">
308</methodmore>
309<methodmore name="int LHAup::mother1(int i)">
310</methodmore>
311<methodmore name="int LHAup::mother2(int i)">
312</methodmore>
313<methodmore name="int LHAup::col1(int i)">
314</methodmore>
315<methodmore name="int LHAup::col2(int i)">
316</methodmore>
317<methodmore name="double LHAup::px(int i)">
318</methodmore>
319<methodmore name="double LHAup::py(int i)">
320</methodmore>
321<methodmore name="double LHAup::pz(int i)">
322</methodmore>
323<methodmore name="double LHAup::e(int i)">
324</methodmore>
325<methodmore name="double LHAup::m(int i)">
326</methodmore>
327<methodmore name="double LHAup::tau(int i)">
328</methodmore>
329<methodmore name="double LHAup::spin(int i)">
330for particle <code>i</code> in the range
331<code>0 &lt;= i &lt; sizePart()</code>. (But again note that
332<code>i = 0</code> is an empty line, so the true range begins at 1.)
333</methodmore>
334
335<p/>
336In the LHEF description <ref>Alw06</ref> an extension to
337include information on the parton densities of the colliding partons
338is suggested. This optional further information can be set by
339<method name="void LHAup::setPdf( int id1, int id2, double x1, double x2,
340double scalePDF, double xpdf1, double xpdf2)">
341which gives the flavours , the <ei>x</ei> and the <ie>Q</ei> scale
342(in GeV) at which the parton densities <ei>x*f_i(x, Q)</ei> have been
343evaluated.
344</method>
345
346<p/>
347This information is returned by the methods
348<method name="bool LHAup::pdfIsSet()">
349</method>
350<methodmore name="int LHAup::id1()">
351</methodmore>
352<methodmore name="int LHAup::id2()">
353</methodmore>
354<methodmore name="double LHAup::x1()">
355</methodmore>
356<methodmore name="double LHAup::x2()">
357</methodmore>
358<methodmore name="double LHAup::scalePDF()">
359</methodmore>
360<methodmore name="double LHAup::xpdf1()">
361</methodmore>
362<methodmore name="double LHAup::xpdf2()">
363where the first one tells whether this optional information has been set
364for the current event. (<code>setPdf(...)</code> must be called after the
365<code>setProcess(...)</code> call of the event for this to work.)
366</methodmore>
367
368<p/>
369<method name="void LHAup::listEvent(ostream& os = cout)">
370prints the above information for the current event. In cases where the
371<code>LHAup</code> object is not available to the user, the
372<code>Pythia::LHAeventList(ostream& os = cout)</code> method can
373be used, which is a wrapper for the above.
374</method>
375
376<method name="virtual bool LHAup::skipEvent(int nSkip)">
377skip ahead <code>nSkip</code> events in the Les Houches generation
378sequence, without doing anything further with them. Mainly
379intended for debug purposes, e.g. when an event at a known
380location in a Les Houches Event File is causing problems.
381Will return false if operation fails, specifically if the
382end of an LHEF has been reached. The implementation in the base class
383simply executes <code>setEvent()</code> the requested number of times.
384The derived <code>LHAupLHEF</code> class (see below) only uses the
385<code>setNewEventLHEF(...)</code> part of its <code>setEvent()</code>
386method, and other derived classes could choose other shortcuts.
387</method>
388
389<p/>
390The LHA expects the decay of resonances to be included as part of the
391hard process, i.e. if unstable particles are produced in a process then
392their decays are also described. This includes <ei>Z^0, W^+-, H^0</ei>
393and other short-lived particles in models beyond the Standard Model.
394Should this not be the case then PYTHIA will perform the decays of all
395resonances it knows how to do, in the same way as for internal processes.
396Note that you will be on slippery ground if you then restrict the decay of
397these resonances to specific allowed channels since, if this is not what
398was intended, you will obtain the wrong cross section and potentially the
399wrong mix of different event types. (Since the original intention is
400unknown, the cross section will not be corrected for the fraction of
401open channels, i.e. the procedure used for internal processes is not
402applied in this case.)
403
404<h3>An interface to Les Houches Event Files</h3>
405
406The LHEF standard <ref>Alw06</ref> specifies a format where a single file
407packs initialization and event information. This has become the most
408frequently used procedure to process external parton-level events in
409Pythia. Therefore a special
410<code><aloc href="ProgramFlow">Pythia::init(fileName)</aloc></code>
411initialization option exists, where the LHEF name is provided as input.
412Internally this name is then used to create an instance of the derived
413class <code>LHAupLHEF</code>, which can do the job of reading an LHEF.
414
415<p/>
416An example how to generate events from an LHEF is found in
417<code>main12.cc</code>. Note the use of
418<code>Info::atEndOfFile()</code> to find out when the whole
419LHEF has been processed.
420
421<p/>
422To allow the sequential use of several event files the
423<code>Pythia::init(...)</code> method has an optional second argument:
424<code>Pythia::init(fileName, bool skipInit = false)</code>.
425If called with this argument <code>true</code> then there will be no
426initialization, except that the existing <code>LHAupLHEF</code> class
427instance will be deleted and replaced by ones pointing to the new file.
428It is assumed (but never checked) that the initialization information is
429identical, and that the new file simply contains further events of
430exactly the same kind as the previous one. An example of this possibility,
431and the option to mix with internal processes, is found in
432<code>main13.cc</code>.
433
434<p/>
435The workhorses of the <code>LHAupLHEF</code> class are three methods
436found in the base class, so as to allow them to be reused in other
437contexts. Specifically, it allows derived classes where one parton-level
438configuration can be reused several times, e.g. in the context of
439matrix-element-to-parton-shower matching (example in preparation).
440To begin with also a small utility routine.
441
442<method name="bool LHAup::fileFound()">
443always returns true in the base class, but in <code>LHAupLHEF</code>
444it returns false if the LHEF provided in the constructor is not
445found and opened correctly.
446</method>
447
448<method name="bool LHAup::setInitLHEF(ifstream& is)">
449read in and set all required initialization information from the
450specified stream. Return false if it fails.
451</method>
452
453<method name="bool LHAup::setNewEventLHEF(ifstream& is)">
454read in event information from the specified stream into a staging area
455where it can be reused by <code>setOldEventLHEF</code>.
456</method>
457
458<method name="bool LHAup::setOldEventLHEF()">
459store the event information from the staging area into the normal
460location. Thus a single <code>setNewEventLHEF</code> call can be
461followed by several <code>setOldEventLHEF</code> ones, so as to
462process the same configuration several times. This method currently
463only returns true, i.e. any errors should be caught by the preceding
464<code>setNewEventLHEF</code> call.
465</method>
466
467
468<h3>A runtime Fortran interface</h3>
469
470The runtime Fortran interface requires linking to an external Fortran
471code. In order to avoid problems with unresolved external references
472when this interface is not used, the code has been put in a separate
473<code>LHAFortran.h</code> file, that is not included in any of the
474other library files. Instead it should be included in the
475user-supplied main program, together with the implementation of two
476methods below that call the Fortran program to do its part of the job.
477
478<p/>
479The <code>LHAupFortran</code> class derives from <code>LHAup</code>.
480It reads initialization and event information from the LHA standard
481Fortran commonblocks, assuming these commonblocks behave like two
482<code>extern "C" struct</code> named <code>heprup_</code> and
483<code>hepeup_</code>. (Note the final underscore, to match how the
484gcc compiler internally names Fortran files.)
485
486<p/>
487The instantiation does not require any arguments.
488
489<p/>
490The user has to supply implementations of the <code>fillHepRup()</code>
491and <code>fillHepEup()</code> methods, that is to do the actual calling
492of the external Fortran routines that fill the <code>HEPRUP</code> and
493<code>HEPEUP</code> commonblocks. The translation of this information to
494the C++ structure is provided by the existing <code>setInit()</code> and
495<code>setEvent()</code> code.
496
497<p/>
498Up to and including version 8.125 the <code>LHAupFortran</code> class
499was used to construct a runtime interface to PYTHIA 6.4. This was
500convenient in the early days of PYTHIA 8 evolution, when this program
501did not yet contain hard-process generation, and the LHEF standard
502did not yet exist. Nowadays it is more of a bother, since a full
503cross-platform support leads to many possible combinations. Therefore
504the support has been reduced in the current version. Only the
505<code>main51.cc</code> example remains as an illustration, where the
506previously separate interface code
507(<code>include/Pythia6Interface.h</code>) has been inserted in the
508beginning. You also need to modify the <code>examples/Makefile</code>
509to link <code>main51.cc</code> properly also to a PYTHIA 6.4 library
510version, see commented-out section for ideas how to to this.
511
512<h3>Methods for LHEF output</h3>
513
514The main objective of the <code>LHAup</code> class is to feed information
515from an external program into PYTHIA. It can be used to export information
516as well, however. Specifically, there are four routines in the base class
517that can be called to write a Les Houches Event File. These should be
518called in sequence in order to build up the proper file structure.
519
520<method name="bool LHAup::openLHEF(string filename)">
521Opens a file with the filename indicated, and writes a header plus a brief
522comment with date and time information.
523</method>
524
525<method name="bool LHAup::initLHEF()">
526Writes initialization information to the file above. Such information should
527already have been set with the methods described in the "Initialization"
528section above.
529</method>
530
531<method name="bool LHAup::eventLHEF()">
532Writes event information to the file above. Such information should
533already have been set with the methods described in the "Event input"
534section above. This call should be repeated once for each event to be
535stored.
536</method>
537
538<method name="bool LHAup::closeLHEF(bool updateInit = false)">
539Writes the closing tag and closes the file. Optionally, if
540<code>updateInit = true</code>, this routine will reopen the file from
541the beginning, rewrite the same header as <code>openLHEF()</code> did,
542and then call <code>initLHEF()</code> again to overwrite the old
543information. This is especially geared towards programs, such as PYTHIA
544itself, where the cross section information is not available at the
545beginning of the run, but only is obtained by Monte Carlo integration
546in parallel with the event generation itself. Then the
547<code>setXSec( i, xSec)</code>, <code>setXErr( i, xSec)</code> and
548<code>setXMax( i, xSec)</code> can be used to update the relevant
549information before <code>closeLHEF</code> is called.
550<note>Warning:</note> overwriting the beginning of a file without
551upsetting anything is a delicate operation. It only works when the new
552lines require exactly as much space as the old ones did. Thus, if you add
553another process in between, the file will be corrupted.
554</method>
555
556<h3>PYTHIA 8 output to an LHEF</h3>
557
558The above methods could be used by any program to write an LHEF.
559For PYTHIA 8 to do this, a derived class already exists,
560<code>LHAupFromPYTHIA8</code>. In order for it to do its job,
561it must gain access to the information produced by PYTHIA,
562specifically the <code>process</code> event record and the
563generic information stored in <code>info</code>. Therefore, if you
564are working with an instance <code>pythia</code> of the
565<code>Pythia</code> class, you have to instantiate
566<code>LHAupFromPYTHIA8</code> with pointers to the
567<code>process</code> and <code>info</code> objects of
568<code>pythia</code>:
569<br/><code>LHAupFromPYTHIA8 myLHA(&pythia.process, &pythia.info);</code>
570
571<p/>
572The method <code>setInit()</code> should be called to store the
573<code>pythia</code> initialization information in the LHA object,
574and <code>setEvent()</code> to store event information.
575Furthermore, <code>updateSigma()</code> can be used at the end
576of the run to update cross-section information, cf.
577<code>closeLHEF(true)</code> above. An example how the
578generation, translation and writing methods should be ordered is
579found in <code>main20.cc</code>.
580
581<p/>
582Currently there are some limitations, that could be overcome if
583necessary. Firstly, you may mix many processes in the same run,
584but the cross-section information stored in <code>info</code> only
585refers to the sum of them all, and therefore they are all classified
586as a common process 9999. Secondly, you should generate your events
587in the CM frame of the collision, since this is the assumed frame of
588stored Les Houches events, and no boosts have been implemented
589for the case that <code>Pythia::process</code> is not in this frame.
590
591</chapter>
592
593<!-- Copyright (C) 2010 Torbjorn Sjostrand -->