13.07.2015 Views

PYTHIA 6.4 Physics and Manual

PYTHIA 6.4 Physics and Manual

PYTHIA 6.4 Physics and Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

V matrix contains decay vertices; to view those PYLIST(3) has to be used. NPAD is adummy, needed to avoid some compiler troubles. It is important to learn the rules forhow information is stored in PYJETS.The third executable line in the program illustrates another important point aboutPythia: a number of routines are available for manipulating <strong>and</strong> analyzing the eventrecord after the event has been generated. Thus PYEDIT(3) will remove everything exceptstable charged particles, as shown by the result of the second PYLIST call. More advancedpossibilities include things like sphericity or clustering routines. Pythia also containssome simple routines for histogramming, used to give self-contained examples of analysisprocedures.Apart from the input arguments of subroutine calls, control on the doings of Pythiamay be imposed via many common blocks. Here sensible default values are always provided.A user might want to switch off all particle decays by putting MSTJ(21) = 0 orincrease the s/u ratio in fragmentation by putting PARJ(2) = 0.40D0, to give but twoexamples. It is by exploring the possibilities offered here that Pythia can be turned intoan extremely versatile tool, even if all the nice physics is already present in the defaultvalues.As a final, semi-realistic example, assume that the p ⊥ spectrum of π + particles is tobe studied in 91.2 GeV e + e − annihilation events, where p ⊥ is to be defined with respectto the sphericity axis. Using the internal routines for simple histogramming, a completeprogram might look likeC...Double precision <strong>and</strong> integer declarations.IMPLICIT DOUBLE PRECISION(A-H, O-Z)IMPLICIT INTEGER(I-N)INTEGER PYK,PYCHGE,PYCOMPC...Common blocks.COMMON/PYJETS/N,NPAD,K(4000,5),P(4000,5),V(4000,5)C...Book histograms.CALL PYBOOK(1,’pT spectrum of pi+’,100,0D0,5D0)C...Number of events to generate. Loop over events.NEVT=100DO 110 IEVT=1,NEVTC...Generate event. List first one.CALL PYEEVT(0,91.2D0)IF(IEVT.EQ.1) CALL PYLIST(1)C...Find sphericity axis.CALL PYSPHE(SPH,APL)C...Rotate event so that sphericity axis is along z axis.CALL PYEDIT(31)C...Loop over all particles, but skip if not pi+.DO 100 I=1,NIF(K(I,2).NE.211) GOTO 100C...Calculate pT <strong>and</strong> fill in histogram.PT=SQRT(P(I,1)**2+P(I,2)**2)CALL PYFILL(1,PT,1D0)36

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!