This package contains the following components:
fastmtt_cpp.cpp- C++ wrapper of fastMTT algorithmkinfit_3pr.cpp- C++ wrapper of kinematic fit for tau(X)+tau(a1) decayskinfit_3pr_3pr.cpp- C++ wrapper of kinematic fit for tau(a1)+tau(a1) decaysfunctions.h- collection of functions used in fastmtt and kinfitKinFit.cpp- C++ code used for compilation ofcompile_kinfit.bash- compilation script (creates shared library)test_kinfit.py- testing scriptpybind11- folder of pybind11 package (C++ binding to python)Plot.py- plotting macro
cd $CMSSW_BASE/src
git clone --recurse-submodules https://github.com/raspereza/DiTauMass.git
cd $CMSSW_BASE/
scramv1 b -j 4
cd $CMSSW_BASE/src/
./compile_kinfit.bash
Example for tt channel:
python3 FastMTT/examples/batch_processing.py /eos/cms/store/group/phys_tau/lrussell/forAliaksei/CPSignalStudies/Run3_2022EE/tt/GluGluHTo2Tau_UncorrelatedDecay_SM_Filtered_ProdAndDecay/nominal/merged.root --entry-stop 200000
this will create file merged.root in the working directory.
Then you have to run the test file and give the adress to the file. For example:
./test_kinfit.py merged.root --channel tt
The script will create RooT file named kinfit_3pr_tt.root which you can inspect.