Skip to content

RX-Run3/rx_plots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

826 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[TOC]

This is a set of scripts and config files meant to be used to make plots of several kinematic distributions.

1D plots

comparisons between variables

For this use:

compare -q jpsi -s Bu_JpsiK_ee_eq_DPC -t Hlt2RD_BuToKpEE_MVA -c resolution -b 2 -B 2

where 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 $J/\psi$ and $B$ before and after smearing and of the non-brem corrected sample

cutflow

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 cleanup

where cleanup refers to cleanup.yaml, a config file that shows the effect of applying cleanup requirements (HOP, Cascade, $J/\psi$ mis ID veto). Below each config description:

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

Block quality

One can use the same command with block_quality, e.g:

overlay -t Hlt2RD_BuToKpMuMu_MVA -s "DATA*" -c block_quality -q jpsi

which 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.

Same sign shape

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 high

2D plots

For this run:

plot_2d -q central -c mass_q2 -t Hlt2RD_BuToKpEE_MVA

where:

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

Other studies

Leakage from $B^+\to K^+ J/\psi(\to ee)$ into central $q^2$ bin

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:

leakage

No PID samples validation

For this run:

validate_nopid

which will use the config in no_pid/ee.yaml.

$q^2$ cut on different variables to get high-q2 signal region

To study this run:

high_q2cut -r run3 -s Bu_Kee_eq_btosllball05_DPC

to see the effect on the rare signal for $R_K$ in Run3. Other arguments are:

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

Efficiencies vs true q2

For this run:

efficiency_vs_q2 -c ee -a rk
efficiency_vs_q2 -c mm -a rk

Run1,2 and 3 comparisons

For this use the run123 command line utility with a custom config file.

Mass resolution

For this run:

run123 -c mass

it will show the comparison of the uncorrected mass distribution for run3 with the mass distribution for Run1+2, also the $q^2_{track}$.

About

This project contains code needed to make plots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages