[TOC]
This is a set of scripts and config files meant to be used to make plots of several kinematic distributions.
For this use:
compare -q jpsi -s Bu_JpsiK_ee_eq_DPC -t Hlt2RD_BuToKpEE_MVA -c resolution -b 2 -B 2where the arguments mean:
options:
-h, --help show this help message and exit
-q {low,central,jpsi,psi2,high}, --q2bin {low,central,jpsi,psi2,high}
q2 bin
-s SAMPLE, --sample SAMPLE
Sample
-t {Hlt2RD_BuToKpMuMu_MVA,Hlt2RD_BuToKpEE_MVA}, --trigger {Hlt2RD_BuToKpMuMu_MVA,Hlt2RD_BuToKpEE_MVA}
Trigger
-c CONFIG, --config CONFIG
Configuration
-x SUBSTR, --substr SUBSTR
Substring that must be contained in path, e.g. magup
-b {-1,0,1,2}, --brem {-1,0,1,2}
Brem category
-B {-1,1,2,5,6,7,8}, --block {-1,1,2,5,6,7,8}
Block to which data belongs, -1 will put all the data together
-r, --nomva If used, it will remove the MVA requirement
The config files are stored in rx_plotter_data/compare and they are:
| Kind | Description |
|---|---|
| resolution | Used to compare the distribution before and after brem correction and also with L0 emulating requirements |
| mass_smearing | Used to compare mass line shapes of |
The cutflow utility will make plots of a dataset under multiple cuts, one after the other.
Use it with:
cutflow -q jpsi -s DATA* -t Hlt2RD_BuToKpEE_MVA -c cleanupwhere cleanup refers to cleanup.yaml, a config file that shows the effect of applying cleanup
requirements (HOP, Cascade,
| Kind | Description |
|---|---|
| vetoes | Check effect on B_M original and corrected of vetoes |
| bdt | Check effect on B_M original and correcte of BDT |
| cleanup | Same as vetoes but checks effect on multiple variables |
| ss_shape | Checks the SS shape with and without vetoes on resonant |
One can use the same command with block_quality, e.g:
overlay -t Hlt2RD_BuToKpMuMu_MVA -s "DATA*" -c block_quality -q jpsiwhich will make plots showing distributions per block. These distributions pass a tight MVA requirement and are taken from the core of the DTF B mass. Thus can be considered background subtracted.
Plots showing effect of vetoes and MVA on SS data
cutflow -s "DATA*" -t Hlt2RD_BuToKpEE_SameSign_MVA -c vetoes -q low
cutflow -s "DATA*" -t Hlt2RD_BuToKpEE_SameSign_MVA -c vetoes -q central
cutflow -s "DATA*" -t Hlt2RD_BuToKpEE_SameSign_MVA -c vetoes -q highFor this run:
plot_2d -q central -c mass_q2 -t Hlt2RD_BuToKpEE_MVAwhere:
options:
-h, --help show this help message and exit
-q {low,central,jpsi,psi2,high}, --q2bin {low,central,jpsi,psi2,high}
q2 bin, optional
-c CONFIG, --config CONFIG
Settings, i.e. mass_q2
-s SAMPLE, --sample SAMPLE
Name of sample, can use wildcards
-t TRIGGER, --trigger TRIGGER
Name of trigger
-l {10,20,30}, --loglvl {10,20,30}
Log level
-n NTHREADS, --nthreads NTHREADS
Number of threads
This will provide plots showing
- Correlations
- Mass vs q2
Below is a list of the commands for each 2D plot:
| Arguments | Description |
|---|---|
-q jpsi -c ep_em_momentum -s "DATA*" -t Hlt2RD_BuToKpEE_SameSign_MVA |
This should make plots of the electrons momenta for the SS sample |
To study the distribution after applying the smearing in the mass and using the brem corrected vs smeared vs non smeared masses in the selection do:
leakageFor this run:
validate_nopidwhich will use the config in no_pid/ee.yaml.
To study this run:
high_q2cut -r run3 -s Bu_Kee_eq_btosllball05_DPCto see the effect on the rare signal for
options:
-h, --help show this help message and exit
-s {data_ss,buhsee,bdhsee,bshsee,bukee,bukjpee,bukpsee}, --sample {data_ss,buhsee,bdhsee,bshsee,bukee,bukjpee,bukpsee}
MC sample
-r {run12,run3}, --run {run12,run3}
Run from which to plot
For this run:
efficiency_vs_q2 -c ee -a rk
efficiency_vs_q2 -c mm -a rkFor this use the run123 command line utility with a custom config file.
For this run:
run123 -c massit will show the comparison of the uncorrected mass distribution for run3
with the mass distribution for Run1+2, also the