Skip to content

Source code for rewighting algorithm

Development Version (KKMCee-dev)

The development version is available in - https://holeczek.web.cern.ch/public/KrakowHEPSoft/KKMCee-dev/

Source code for re-weighting algorithm

This lightweight standalone package computes spin weights with anomalous magnetic dipole moment (AMM) and anomalous electric dipole moment (EDM) contributions.

It allows event reweighting and quick validation using KKMCee’s HepMC3 ASCII output.

Prerequisites

  • Root
  • HepMC3

Download the source code

# Example usage if deployed at https://example.org/kkmc/
wget https://th.ifj.edu.pl/jimjohn/files/anomwt.tar.gz
tar -xvzf anomwt.tar.gz
cd anomwt

Configure & build

mkdir build
cd build
cmake .. -DWITH_HEPMC3=<path-to-HepMC3>/HepMC3/HepMC3-3.3.1
make

The demo program has limitations. For other decay modes different plots are needed. Then demo can be used as for work start.

To get the hepmc3 output in ASCII format, one should set the KKMCee input parameter (100) to 1.

Also in the input file

  • Set the JAK1 and JAK2 to 88 (\(\tau^\pm \to \pi^\pm \pi^0 \nu)\)).
  • Enable only \(\tau\) decay channel (Set parameter 415 to 1 (KFfin, tau))

Below is a sample input file for running KKMCee with the above set of values:

A HepMC3 output file generated by KKMCee should look like the following:

Copy the hepmc3 output from KKMCee to the current folder.

./Run hepmc.out