FPMC Installation Guide

  1. In order to use FPMC you need to install:
    • a fortran compiler (g77 or gfortran)
    • the CernLib library (availiable at cernlib.web.cern.ch/cernlib/, for Ubuntu and Gentoo users it is availiable via their standard repository).
  2. Get the FPMC source.
    • You can use SVN:
      svn co svn+ssh://USER@svn.cern.ch/reps/rp220/FPMC/fpmc_v1.0/trunk fpmc_trunk
      cd fpmc_trunk
    • Alternatively, you can download a tarball:
      wget http://project-fpmc.web.cern.ch/project-fpmc/fpmc_trunk_rev781.tar.gz
      tar xvzf fpmc_trunk_rev781.tar.gz
      cd fpmc_trunk_rev781
  3. Lines 73-80 in Makefile define whether g77 of gfortran is used. The default is gfortran. If you prefer to use g77 instead, comment lines 79-80 and uncomment 75-76.
  4. Run make:
    make
  5. If the compilation succeeded, you should obtain the fpmc executable.
  6. In Datacards directory you can find examples of FPMC steering cards. They are passed to the program via the standard input:
    ./fpmc < Datacards/dataQED_MuMu