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!