This will allow you to run Pythia on a cluster or your own computer.
We will download, install, and run a sample PYTHIA
code for a SUSY process, all in one shot.
Just copy and paste the entire set of commands
all at once into the terminal.
mkdir -p runpythia/libfolder
cd runpythia/libfolder
wget http://www.hepforge.org/archive/pythia6/pythia-6.4.10.tar.gz
tar --gzip --file pythia-6.4.10.tar.gz --extract
make lib
cd ../
wget home.fnal.gov/~skands/stuff/main76.f
wget http://home.fnal.gov/~skands/slha/softsusy.spc
f77 main76.f libfolder/*.o -o Susyprogram.out
./Susyprogram.out
Assuming you copied the stuff above the [[Side Note]] into your terminal,
HIT enter and the program will run on the terminal.
Approx. 5 minutes later you will get the following output:
Now, a comment on what you did. You obtained cross sections for the production of stops
(i.e. you have generated SUSY particles from proton on proton collisions; here you have shown
2 distinct (set of) production modes to display.
The directory called "runpythia" is where your PYTHIA fortran file called main76.f resides. Also in the runpythia directory is the SLHA softsusy file that you downloaded. The files were downloaded from the webpage of Peter Skands. You have actually input a list of MSSM parameters into the main76.f fortran file via the softsusy file, and you executed main76.f by linking it to the pythia output files. The file main76.f sets the SUSY production modes and other things such as the center of mass energy, the type of colliding species (pp here) and other parameters you can fiddle with.
In general you do not want to run processes on the terminal window.
You should submit jobs to the cluster. To do this you should go into the
folder "runpythia" and type the following command
Then you check the job status (PEND) or (RUN) with the command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After the job is done, you will have generated the output "ViewtheResults.out" .
You can open this as an ordinary text file. It contains the same information that
was printed to your terminal, except now you can see all the results of the output
as opposed to the small subset of output that can be viewed on the terminal.
To remove everything you have done, type, in your home directory:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~