From 6fb9215e65543357171047c8f2ee76cd93e4b4a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Thu, 10 Feb 2022 11:14:55 +0100 Subject: [PATCH] Update 'RemoveMultipleCandidates.py' --- RemoveMultipleCandidates.py.md | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/RemoveMultipleCandidates.py.md b/RemoveMultipleCandidates.py.md index 0f9a01b..a1ebb9c 100644 --- a/RemoveMultipleCandidates.py.md +++ b/RemoveMultipleCandidates.py.md @@ -10,7 +10,14 @@ When running over the inclusive sample, it is necesarry to change the IsInc bool The helper functions are defined in [[Utils3.py|Utils3.py]]. -# Functions +## Table of Contents +* [Functions](#functions) + * [isMultipleCandidate()](#ismultiplecandidate) +* [Plotting](#plotting) + * [plotMultiple()](#plotmultiple) + +## Functions + ### isMultipleCandidate() Reads the pariringBranch from the TTree, reads the needed branches based on the options (MLPresponse, TM branch). Loops over the MLPvalues to see at what MLP value are all the events 'alone'. Creates a new IsAloneAt+tag branch, storing the MLP response value at which is th event 'alone', the tag represents the Truth-matching method (if applied). If the event does not pass the truth-matching and it is desired, IsAloneAt+tag is set to two. * **Parameters** @@ -25,5 +32,23 @@ Reads the pariringBranch from the TTree, reads the needed branches based on the * PHSP * KshortDecaysInVelo * verbose - + +## Plotting +The ploting of multiple candidates is performed by `Scripts/PlotMultiple.py`. It is necesary to update the path to your [[Comparison tool|Comparison-tool]] folder. + +The code as is plots the fraction of multiple candidates (including the real one!) in the data, MC and truth matched MC for each year versus the MVA reponse. + +### plotMultiple() +[comment]: # ([plotMultiple()](#plotmultiple)) + +Loads the data from the tuple tree using uproot, checks the branch with the MLP response-dependent boolean whether the multiple candidate is removed and plots the data, MC and truth matched MC for each year versus the MVA reponse. +* **Parameters** + * year + * Run + * Reference + * PHSP + * verbose + + +