Angular analysis of B+->K*+(K+pi0)mumu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.7 KiB

2 years ago
2 years ago
  1. # Angular Analysis of B+toK*+Pi0Mu-Mu+
  2. ## Setup
  3. In order to setup a python virtual environment with the corresponding dependencies, do the following:
  4. 1. `pip install virtualenv`
  5. 2. `virtualenv myenv`
  6. 3. `source myenv/bin/activate`
  7. 4. `pip install -r requirements.txt`
  8. Afterwards you can use your virtual python environment in order to run the code. But before you do, you need to setup the properties.env. Inside of properties.env you will find different configuration variables which are used throughout the code in order to control the behavior of the code. Below you can find a table which summarizes what these environment variables do.
  9. |Environment Variable|Use-Case|
  10. | -------------------- | -------- |
  11. |LOWER_COSTHETAK_CUT |Controls the lower boundary of cos(theta_K)|
  12. |UPPER_COSTHETAK_CUT |Controls the upper boundary of cos(theta_K)|
  13. |SYS_PATH|We need one local package in order to make the code work, namely hep_analytics which you can also find in this repo, the interpreter needs to find that package, so set SYS_PATH to the relative path to hep_analytics|
  14. |GEN_FILE|Path to the Generator File|
  15. |MC_FILE|Path to the MC File|
  16. |MC_PHSP_FILE|Path to the PHSP MC File|
  17. If you want to see how to set the environment variables, have a look at `properties.env`. Also, I have run the code on the LHCbA1 machine but it should make no difference where you run the code.
  18. You are done!
  19. ## Useful Scripts
  20. ### root_file_inspect.py
  21. This script can be used to look inside a root file and see which branches and features it includes. To kick it off, give it a try with:
  22. 1. `python root_file_inspect.py --file=ROOT_FILE_PATH --regex=.*`
  23. You do not need to set the regex flag but it can be useful if you search for some particular feature.