Skip to content

LorenzoPunzi/cmepda-PiKclassifier

Repository files navigation

cmepda-PiKclassifier

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

CircleCI

ReadTheDocs

Authors

Documentation

Documentation

Install

Clone the project

  git clone https://github.com/LorenzoPunzi/cmepda-PiKclassifier.git

Install dependencies from inside the project directory

  pip install -r cmepda-PiKclassifier/requirements.txt

PLEASE 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"

Run

The package can be run as a whole using the main with parser:

  python cmepda-Pikclassifier [generic options] <subparser name> [subparser options]

Datasets generation

To generate the MC and data sets for the analysis use the "gen" subparser, for exaple:

  python cmepda-Pikclassifier gen -f 0.42

Perform the analysis

The 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 -err

Running Tests

To run tests, run the following command inside the project directory

  python -m unittest discover -s tests

About

CMEPDA Final assignment : Measuring the fraction of pions in a Pi-K mixed sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •