From 26b4ff94586a15e8496ad00f504ef0cde866f1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Tue, 8 Feb 2022 13:53:14 +0100 Subject: [PATCH] Update 'Selection code' --- Selection-code.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Selection-code.md b/Selection-code.md index 28f32f7..3438170 100644 --- a/Selection-code.md +++ b/Selection-code.md @@ -138,6 +138,13 @@ WeightAll(true,2,true); ReweightReferenceMC(true,2,true); ReweightPHSPMC(true,2, .q ``` +Check the MVA variables are agreeing after weighting them with sWeights [[CompareVariables.cpp|CompareVariables.cpp]]. (Yes, there is a [[dedicated tool|Comparison-tool]], but this was intially working, and working well, so it was kept for checking the variables used in the MVA training.) +``` +root +.L Scripts/compareVariables.cc+ +compareAll(1); compareAll(2); +.q +``` Reweighted Data and Monte Carlo can be used for the [[MVA.cpp|MVA-Class]] @@ -156,13 +163,7 @@ TMVAClassAppAll(1); TMVAClassAppAll(2); .q ``` -Check the MVA variables are agreeing after weighting them with sWeights [[CompareVariables.cpp|CompareVariables.cpp]]. (Yes, there is a [[dedicated tool|Comparison-tool]], but this was intially working, and working well, so it was kept for checking the variables used in the MVA training.) **TODO** -``` -root -.L Scripts/compareVariables.cc+ -compareAll(1); compareAll(2); -.q -``` + Remove all multiple candidates, defined in [[RemoveMultipleCandidates.py|RemoveMultipleCandidates.py]]. Before running this for the first time, you have to change the path in [`getTreePath` function](https://git.physi.uni-heidelberg.de/kopecna/EWP-BplusToKstMuMu-AngAna/wiki/Utils3.py#gettreepath) and similarly in the [`getTreeList` function](https://git.physi.uni-heidelberg.de/kopecna/EWP-BplusToKstMuMu-AngAna/wiki/Utils3.py#gettreelist). Don't forget to compile [[getPathForPython.cc||getPathForPython]] before the first usage of the code!