Pythia 8 Event Production Electron positron distribution A basic analysis.

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

AU/MITM/1.6 By Mohammed A. Saleh 1. Arguments passed by reference  Until now, in all the functions we have seen, the arguments passed to the functions.
Page Features Footnotes and endnotes Headers and footers Page numbering Margins Columns.
Introduction to C Programming
 2000 Prentice Hall, Inc. All rights reserved. Chapter 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line.
Digital Image Processing Lecture11: Histogram Processing.
Manufacturing Variation Plotting a Normal Distribution.
Checking the Required Conditions. Check these 3 boxes.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 6 - Arrays Outline 6.1Introduction 6.2Arrays.
If You Missed Last Week Go to Click on Syllabus, review lecture 01 notes, course schedule Contact your TA ( on website) Schedule.
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
1. 2 FUNCTION INLINE FUNCTION DIFFERENCE BETWEEN FUNCTION AND INLINE FUNCTION CONCLUSION 3.
Chapter 9 Above: An early computer input/output device on the IBM 7030 (STRETCH)
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
C Programming Lecture 5. Precedence and Associativity of Operators b Rules of associativity and precedence of operators determine precisely how expressions.
Guide to Using Excel For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 6th Ed. Chapter 5: Discrete and Continuous.
CSCI 1730 January 17 th, 2012 © by Pearson Education, Inc. All Rights Reserved.
Frequency Distributions, Histograms, and Related Topics.
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
STATISTICAL GRAPHS.
Syntax MROUND(number,multiple) Number is the value to round. Multiple is the multiple to which you want to round number. Remark MROUND rounds up, away.
C++ How to Program, 8/e © by Pearson Education, Inc. All Rights Reserved. Note: C How to Program, Chapter 22 is a copy of C++ How to Program Chapter.
Statistical Analysis with Excel (PREVIEW). Spreadsheet Programs First developed in 70s –VisiCalc Dan Bricklin and Bob Frankston –Operated on Apple II.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Excel Project 1 Creating a Worksheet and an Embedded Chart.
JAVA: An Introduction to Problem Solving & Programming, 5 th Ed. By Walter Savitch and Frank Carrano. ISBN © 2009 Pearson Education, Inc., Upper.
Arrays Module 6. Objectives Nature and purpose of an array Using arrays in Java programs Methods with array parameter Methods that return an array Array.
Lecture #5 Introduction to C++
Lecture 3: The parts of a C++ program Professor: Dr. Miguel Alonso Jr. Fall 2008 CGS2423/COP1220.
CHAPTER 2 PART #1 C++ PROGRAM STRUCTURE 1 st semester H 1 King Saud University College of Applied studies and Community Service Csc 1101 By:
CSE1222: Lecture 2The Ohio State University1. mathExample2.cpp // math example #include using namespace std; int main() { cout
G.Corti, P.Robbe LHCb Software Week - 19 June 2009 FSR in Gauss: Generator’s statistics - What type of object is going in the FSR ? - How are the objects.
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 7 Clicker Questions September 22, 2009.
Loop.  While Loop  Do-while Loop  For Loop Continue Statement Conclusion Loop Loop.
Looping and Counting Lecture 3 Hartmut Kaiser
Floating-Point Representation We can store integers and characters easily in binary, but what about fractions? ¼ =.25 = 2.5 * *
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
Chapter 2 part #1 C++ Program Structure
A first program 1. #include 2. using namespace std; 3. int main() { 4. cout
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
1 Debugging and Syntax Errors in C++. 2 Debugging – a process of finding and fixing bugs (errors or mistakes) in a computer program.
 2007 Pearson Education, Inc. All rights reserved C Arrays.
October 16, 2014Computer Vision Lecture 12: Image Segmentation II 1 Hough Transform The Hough transform is a very general technique for feature detection.
Postgraduate Computing Lectures PAW 1 PAW: Physicist Analysis Workstation What is PAW? –A tool to display and manipulate data. Learning PAW –See ref. in.
1 Manipulators manipulators are used only in input and output statements endl, fixed, showpoint, setw, and setprecision are manipulators that can be used.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
JAVA: An Introduction to Problem Solving & Programming, 5 th Ed. By Walter Savitch and Frank Carrano. ISBN © 2008 Pearson Education, Inc., Upper.
Digital Image Processing
Arrays Chapter 7. MIS Object Oriented Systems Arrays UTD, SOM 2 Objectives Nature and purpose of an array Using arrays in Java programs Methods.
1 Introduction to Object Oriented Programming Chapter 10.
20 October 2005 LCG Generator Services monthly meeting, CERN Validation of GENSER & News on GENSER Alexander Toropin LCG Generator Services monthly meeting.
Repetitive Structures
A Guide to SQL, Seventh Edition
CHAPTER 2 PART #1 C++ PROGRAM STRUCTURE
Chapter 2 part #1 C++ Program Structure
Guide to Using Excel 2007 For Basic Statistical Applications
Chapter 5: Looping Starting Out with C++ Early Objects Seventh Edition
Pi0 Simulation for BigCal
2.1 Parts of a C++ Program.
Guide to Using Excel 2007 or 2010 For Basic Statistical Applications
1. Open Visual Studio 2008.
MatLab – 2D Plots 2 MATLAB has many built-in functions and commands to create various types of plots. Instructor notes: We start with an example of some.
Chapter 2 Graphics Programming with C++ and the Dark GDK Library
Chapter 3: Input/Output
Functions continued.
Summary of what we learned yesterday
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms
Introduction to C Programming
Chapter 2 part #1 C++ Program Structure
Presentation transcript:

Pythia 8 Event Production Electron positron distribution A basic analysis

Program Flow Initializaion. The event loop. Finishing.

Initialization - normal usage Already at the top of the main program file, you need to include the proper header file #include "Pythia.h" using namespace Pythia8; The first step is to create a generator object, e.g. with Pythia pythia;

Event Loop Inside the event generation loop you generate the next event using the next() method, pythia.next(); The generated event is now stored in the event object For instance, an event can be listed with pythia.event.list(), the identity of the i'th particle is given by pythia.event[i].id(), and so on.particle

Finishing At the end of the generation process, you can call pythia.statistics(); to get some run statistics, on cross sections and the number of errors and warnings encountered And cout<< your histograms

Histogramming As a first step you need to declare a histogram, with name, title, number of bins and x range (from, to). Hist elect("electron multiplicity", 100, -0.5, 799.5); Hist::Hist(string title, int numberOfBins, double xMin, double xMax) declare and define a histogram, where argument title : is a string with the title of the histogram at output, argument numberOfBins : is the number of bin the x range will be subdivided into, argument xMin : is the lower edge of the histogram, argument xMax : is the upper edge of the histogram.

Output format The key feature is that the Contents and Low edge have to be read vertically. For instance, the first bin has the contents 3 * 10^2 + 4 * 10^1 + 7 * 10^0 = 347. Correspondingly, the other bins have contents 179, 123, 207 and 283. The first bin stretches from -(1 * 10^1 + 0 * 10^0) = - 10 to the beginning of the second bin, at -(0 * 10^1 + 5 * 10^0) = -5. The visual representation above the contents give a simple impression of the shape. An X means that the contents are filled up to this level, a digit in the topmost row the fraction to which the last level is filled. So the 9 of the first column indicates this bin is filled 9/10 of the way from 3.00*10^2 = 300 to 3.50*10^2 = 350, i.e. somewhere close to 345, or more precisely in the range to

Example program