Update 'Selection code'

Renata Kopecná 2022-01-31 10:10:28 +01:00
parent 9c9203749d
commit c604c0782e

@ -150,22 +150,22 @@ yieldComparison(2,getTMVAcut(2));
## Checking the inclusive sample
```
.L BDTSelection.cpp+
runAllIncMC(1); runAllIncMC(2)
.L BDTSelection.cpp+
runAllIncMC(1); runAllIncMC(2)
```
lb-conda default python Rescale_pi0momentum.py (CAREFUL, NEEDS TO BE SET BY HAND)
```
.L MCtruthmatching.cpp+
TruthMatchAllBkg(true,1,false,false,true); TruthMatchAllBkg(true,2,false,false,true);
.L MCtruthmatching.cpp+
TruthMatchAllBkg(true,1,false,false,true); TruthMatchAllBkg(true,2,false,false,true);
```
Then, we need to add the variables to the inclusive sample. This HAS TO BE SET BY HAND in [[AddVariable.cpp|AddVariable.cpp]] before compilation!
```
.L CodeForTests/AddVariable.cpp+
addAllXMuMuMass(true,true,1,true,true,false); addAllXMuMuMass(false,true,1,true,true,false); applyAllVetoKplusMuMuMass(1,true,true,false);
addAllXMuMuMass(true,true,2,true,true,false); addAllXMuMuMass(false,true,2,true,true,false); applyAllVetoKplusMuMuMass(2,true,true,false);
.L CodeForTests/AddVariable.cpp+
addAllXMuMuMass(true,true,1,true,true,false); addAllXMuMuMass(false,true,1,true,true,false); applyAllVetoKplusMuMuMass(1,true,true,false);
addAllXMuMuMass(true,true,2,true,true,false); addAllXMuMuMass(false,true,2,true,true,false); applyAllVetoKplusMuMuMass(2,true,true,false);
```
Similarly, before applying the MacGyver DTF, the paths in [[Rescale_pi0momentum.py|Rescale_pi0momentum.py]] have to be set by hand!
```
@ -173,17 +173,17 @@ lb-conda default python Rescale_pi0momentum.py
```
```
.L TMVAClassApp.cpp+
TMVAClassAppInc(1); TMVAClassAppInc(2);
.L TMVAClassApp.cpp+
TMVAClassAppInc(1); TMVAClassAppInc(2);
```
Also the paths in [[RemoveMultipleCandidates.py|RemoveMultipleCandidates.py]] have to be set by hand!
```
python RemoveMultipleCandidates.py -all
python RemoveMultipleCandidates.py -all
```
Lastly, make the truth-matching plots using [[InclusiveCheck.cpp||InclusiveCheck.cpp]].
```
.L CodeForTests/InclusiveCheck.cpp+
plotTM(1,true); plotTM(2,true)
plotTM(1,false); plotTM(2,false)
.L CodeForTests/InclusiveCheck.cpp+
plotTM(1,true); plotTM(2,true)
plotTM(1,false); plotTM(2,false)
```