1 pythia 8 tutorial
play

1 Pythia 8 tutorial 1.1 Introduction This exercise corresponds to - PDF document

1 1 Pythia 8 tutorial 1.1 Introduction This exercise corresponds to the Pythia 8 part of the more general MC tutorial given at the MC4BSM workshop at DESY 2013 [2] 1 . It is for this reason focused on the particular task within this tutorial,


  1. 1 1 Pythia 8 tutorial 1.1 Introduction This exercise corresponds to the Pythia 8 part of the more general MC tutorial given at the MC4BSM workshop at DESY 2013 [2] 1 . It is for this reason focused on the particular task within this tutorial, however, should still serve as a good starting point to get familiar with the basics of how to use the Pythia 8 event generator. Much of these instructions were based on earlier Pythia 8 tutorials, which can be found on the homepage [5] and often include additional material than what is covered here. Within this first exercise it is not possible to describe the physics models used in the program; for this we refer to the online manual [6], Pythia 8.1 brief introduction [1], to the full Pythia 6.4 physics description [3], and to all the further references found in them. Finally, a good way to continue after the tutorial is often to chose a particular physics study your interest and then start to explore the different simulation and analysis aspects, using the different example programs together with the online manual, along the lines of the tutorial. 1.2 Installation and pre-workshop exercise Pythia 8 is, by today’s standards, a small package. It is completely self-contained, and is therefore easy to install for standalone usage, e.g. if you want to have it on your own laptop, or if you want to explore physics or debug code without any danger of destructive interference between different libraries. Denoting a generic Pythia 8 version pythia81xx (at the time of writing xx = 62), here is how to install Pythia 8 on a Linux/Unix/MacOSX system as a standalone package. 1. In a browser, go to http://www.thep.lu.se/ ∼ torbjorn/Pythia.html 2. Download the (current) program package pythia81xx.tgz to a directory of your choice (e.g. by right-clicking on the link). 3. In a terminal window, cd to where pythia81xx.tgz was downloaded, and type tar xvfz pythia81xx.tgz This will create a new (sub)directory pythia81xx where all the Pythia source files are now ready and unpacked. 4. Move to this directory ( cd pythia81xx ) and do a make . This will take ∼ 3 min- utes (computer-dependent). The Pythia 8 libraries are now compiled and ready for physics. 5. For test runs, cd to the examples/ subdirectory. An ls reveals a list of programs, mainNN , with NN from 01 through 28 (and beyond). These example programs each illustrate an aspect of Pythia 8. For a list of what they do, see the “Sample Main Programs” page in the online manual (point 6 below). 1 It is based on last years tutorial, see arxiv.org/abs/arXiv:1209.0297 for description of phsyics process

  2. 2 1.3 On-site exercise In order to test that the program installed successfully, most examples are suitable, however, for this tutorial (using version 8.175) a good choice would be main11.cc , which reads in a test LHEF called ttbar.lhe . To execute this test program, do make main11 ./main11.exe The output is now just written to the terminal, stdout , and if everything worked one should see (specific for main11.cc) a text based histogram, showing the a charge particle multiplicity, at the end of the program output. To save the output to a file instead, do ./main11.exe > main11.out , after which you can study the test output at leisure by opening main11.out . See Appendix A for a brief explanation of the event record. 6. If you use a web browser to open the file pythia81xx/htmldoc/Welcome.html you will gain access to the online manual, where all available methods and parameters are described. Use the left-column index to navigate among the topics, which are then displayed in the larger right-hand field. 1.3 On-site exercise The task at hand for the Pythia 8 part of the tutorial is to read in the events, pro- vided in LHEF format from the earlier steps, and continue the event simulation following the hard scatter generation. Given that the LHEF includes both the information for ini- tialization and of the actual events, this is very straight forward. Copy first the LHEF events_with_decay.lhe.gz (can be downloaded via wget http://home.thep.lu.se/ ∼ jesper/events_with_decay.lhe.gz ) into the examples directory and unpack it using, gunzip events_with_decay.lhe.gz The LHEF should now be readable just like any ASCII file. The BSM model as well as the hard process is described in detail in the earlier steps of this tutorial, but as a short reminder the events consists of, pp → U ¯ U , production at the LHC with E cm = 8 TeV. The U fermions have a mass of 500 GeV and the two following decay scenarios are possible: U → u Φ 1 ; (1.1) U → u Φ 2 → u e E → u e e Φ 1 . (1.2) The second step is to create our own main program. Open a new file mymain.cc in the examples subdirectory with a text editor, e.g. Emacs. Then type the following lines (here with explanatory comments added): // Headers and Namespaces. #include "Pythia.h" // Include Pythia headers. using namespace Pythia8; // Let Pythia8:: be implicit.

  3. 3 1.3 On-site exercise int main() { // Begin main program. // Set up generation. Pythia pythia; // Declare Pythia object pythia.readString("Beams:frameType = 4"); // Beam info in LHEF. pythia.readString("Beams:LHEF = events_with_decay.lhe"); pythia.init(); // Initialize; incoming pp beams is default. // Generate event(s). for (int iEvent = 0; iEvent < 1; ++iEvent) { if (!pythia.next()) { if (pythia.info.atEndOfFile()) break; // Exit at enf of LHEF. continue; // Skip event in case of problem. } } pythia.stat(); // Print run statistics. return 0; } This will use one event from the LHEF and pass it through the remaining Pythia 8 simulation. Go through the lines in the program and try to understand them by consulting the online manual [6]. Next you need to edit the Makefile (the one in the examples subdirectory) so it knows what to do with mymain.cc . The lines # Create an executable for one of the normal test programs main00 main01 main02 main03 ... main09 main10 main10 \ and the three next enumerate the main programs that do not need any external libraries. Edit the last of these lines to include also mymain : main31 ... main40 mymain: \ Now it should work as before with the other examples: make mymain ./mymain.exe > mymain.out whereafter you can study mymain.out , especially the example of a complete event record (preceded by initialization information and by kinematical-variable listing for the same event). For this reason Appendix A contains a brief overview of the information stored in the event record. At this point you have in principle achieved your goal, the first event in the LHEF have been fully simulated by Pythia 8, using the default values of all settings. On the other hand, and despite only having one event, we only have access to the information of the individual particles in the event record, so interesting for technical validation but not much of real physics interest yet.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend