Update 'Selection code'

Renata Kopecná 2022-02-08 13:53:14 +01:00
parent 878b070558
commit 26b4ff9458

@ -138,6 +138,13 @@ WeightAll(true,2,true); ReweightReferenceMC(true,2,true); ReweightPHSPMC(true,2,
.q .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]] Reweighted Data and Monte Carlo can be used for the [[MVA.cpp|MVA-Class]]
@ -156,13 +163,7 @@ TMVAClassAppAll(1); TMVAClassAppAll(2);
.q .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! 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!