Package containing different tools for estimating the fraction 'f' signal events with respect to the total number of events in a data set which also contains background
Clone the project
git clone https://github.com/LorenzoPunzi/cmepda-PiKclassifier.gitInstall dependencies from inside the project directory
pip install -r cmepda-PiKclassifier/requirements.txtPLEASE NOTE : ROOT is not in requirements.txt file but is needed to run the template fit module. The package works as of ROOT v6.26/10. Also, the requirements are NOT strict, meaning that former versions could potentially work.
To run the project as a package, add the following code in the .bashrc (or .bash_profile, for MAC users):
export PYTHONPATH="/path/to/cmepda-PiKclassifier"The package can be run as a whole using the main with parser:
python cmepda-Pikclassifier [generic options] <subparser name> [subparser options]To generate the MC and data sets for the analysis use the "gen" subparser, for exaple:
python cmepda-Pikclassifier gen -f 0.42The analysis can be done by using the "analysis" subparser, once that the MC and data sets are generated. For example, a command that covers all the analyses and saves the figure in an apposite folder in the current directoty is:
python cmepda-Pikclassifier -fig analysis -m all -ld -errTo run tests, run the following command inside the project directory
python -m unittest discover -s tests