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.

C...Loop over reading <strong>and</strong> setting parameters/switches.100 READ(*,’(A)’,END=200) PARAMCALL PYGIVE(PARAM)GOTO 100C...Initialize <strong>PYTHIA</strong>.200 CALL PYINIT(FRAME,BEAM,TARGET,ENERGY)C...Event generation loopDO 300 IEV=1,NEVCALL PYEVNTIF(IEV.LE.NPRT) CALL PYLIST(1)300 CONTINUEC...Print cross sections.CALL PYSTAT(1)END<strong>and</strong> a file indata with the contentsCMS,p,p,14000.1000,3! below follows comm<strong>and</strong>s sent to PYGIVEMSEL=0! Mix processes freelyMSUB(102)=1 ! g + g -> h0MSUB(123)=1 ! Z0 + Z0 -> h0MSUB(124)=1 ! W+ + W- -> h0PMAS(25,1)=300. ! Higgs massCKIN(1)=290. ! lower cutoff on massCKIN(2)=310. ! upper cutoff on massMSTP(61)=0 ! no initial-state showersMSTP(71)=0 ! no final-state showersMSTP(81)=0 ! no multiple interactionsMSTP(111)=0 ! no hadronizationHere the text following the exclamation marks is interpreted as a comment by PYGIVE, <strong>and</strong>thus purely intended to allow better documentation of changes. The main program couldthen be linked to Pythia, to an executable a.out, <strong>and</strong> run e.g. with a Unix comm<strong>and</strong>linea.out < indata > outputto produce results on the file output. Here the indata could be changed without requiringa recompilation. Of course, the main program would have to be more realistic, e.g. withevents saved to disk or tape, but the principle should be clear.Further examples of how to use Pythia are available on the Pythia webpage.42

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

Saved successfully!

Ooh no, something went wrong!