From 8df3915acf1e8ac6747384079345c9c6a61df576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Fri, 21 Jan 2022 11:25:14 +0100 Subject: [PATCH] Add 'Standalone Scripts' --- Standalone-Scripts.md | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Standalone-Scripts.md diff --git a/Standalone-Scripts.md b/Standalone-Scripts.md new file mode 100644 index 0000000..c8e952f --- /dev/null +++ b/Standalone-Scripts.md @@ -0,0 +1,66 @@ +**Before using these scripts, please check the include paths: in order to organize the folder in a meaningful way, the location of the scripts changed!** + +# Backgrounds +### BackgroundCheck.cc +Checks the mass and angle distribution in different mass regions. + +### CompareBackgroundSamples.cc +Takes the different samples used to check backgrounds (B0KstMuMu, B0KstJpsi, B0XJpsi, BK1Jpsi, BK1MuMu), scales them according to the size of available samples to match the signal sample, and plots the contributions of each sample to the B+ DTF mass. + +### DoubleMisIDtest.cc + +Fakes the double-misID of pi+ and mu+. Checks how many of the fake double misIDed events would pass the double-misID filter in the preselection. + + + +# Multiple Candidates + +# Selection +### AddVariable.cpp +Adds TRUE (PX,PY,PZ,PT,ETA,PHI,M,E) pi0 resolved branches. +Adds XMuMu mass. +Applies veto on the KplusMuMu mass. +Applies veto on the PizMuMu mass. + +### DTFcomparison.cc + +Plots comparison plots of different particle masses, PT, ETA and angles using DTF (fixing the pi0 or Ks mass) and not using DTF. + +### compareVariables.cc + +Compares sWeighted data to reference MC in the distributions used for MVA training. This was replaced by the more powerful [python tool](https://git.physi.uni-heidelberg.de/kopecna/EWP-BplusToKstMuMu-AngAna/wiki/Comparison-tool). However, this script can be quickly used to check the sWeights, so it is kept. + +### Efficiency.cpp + +A backup of originally used Efficiency.cpp in the selection. This script includes calculation of +* L0Muon efficiency +* Overall TM efficiency using the B+ mass, TM variable can be chosen +* TM efficiency from the B+ mass in bins of a desired variable +* TM efficienc from the pi0 maass in bins of a desired variable +* Multiple candiddates removal efficiency +* Scan MVA efficiency (in steps fo the MVA response) +* Plot the MVA efficiency at a certain TMVA cut in bins of a desired variable +* Scan total efficiency +* Read the efficiency from a given plot +* Test how flat the TM efficiency is + +### EfficiencyClass.cpp + +A backup of the EfficiencyClass.cpp used in the selection. Provides EffAndError class and helper functions for the Efficiency.cpp. + + +# Trigger checks + +### AALLSAMEBPVcheck.cc + +Checks the MC samples for a possible bug in the Hlt2Topo2BodyBBDT trigger line. + +# LaTeX +### `GetTableOfMVASignificance.cc` + +Script used to create tables of the TMVA significance. Output is a LaTeX table. + +### GetTablesOfEventNumbers.cc + +Outputs a LaTeX table with number of events at selection steps. +