Running a simple example

Advanced user program examples and benchmarks

Running with Rivet

Running a simple example

Compile and run MainMini.exe:

    cd ProdRun/workMini/
    cp workMini.input_105GeV_Leptons workMini.input
    make start

The user will be prompted to provide the number of events to be generated and the execution will start. The output file pro.output contains the MC result for the total cross section and the multitude of statistics results on the MC generation process. There are more input data for other similar control runs.

Advanced user program examples and benchmarks

Running KKMCee in the folder ProdRun/work1/ is very simple:

      cd ProdRun/work1/
      cp work1_189GeV.input work1.input
      make start

Note that no. of events to be generated is defined in Start.C but the execution can be stopped any time by means of

      make stop
      diff pro.output pro.output_189GeV_10k

One may also initiate MC runs in ProdRun/workTau, ProdRun/workNU and ProdRun/workFoam using predefined input files there. Benchmark programs analyzing MC results from stored archive files can be initiated as follows:

      cd ProdDigest
      make Plot1
      make TabIIIPRD 
      make PlotNU
      make PlotTau
      make PlotBES

Archive histogram files can be replaced in the source code by files from the actual run. For instance one may uncomment in Plot1.cxx input data file ProdRun/work1/histo.root or ProdRun/workTau/histo.root file in PlotTau.cxx

For beam energy spread (BES) studies a template demo program ProdRun/MainBES.cxx is now added. To be run as follows:

     cd ProdRun/workBES
     make start

Running with Rivet

To analyse events with Rivet one can either pass the HepMC file to Rivet after event generation

    rivet -a your-analysis kkmcee.hepmc3

However, since HepMC files can become quite large, a more efficient method is to pipe the events directly to rivet

    mkfifo kkmcee.hepmc3
    /path/to/kkmc-install/bin/MainKKMCee -n "number of events" -s "initial Seed" -o "HEPMC3 output file  [kkmcee.hepmc3]" &
    rivet -a your-analysis kkmcee.hepmc3

This will run kkmc with the inputs from pro.input