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 ## Checking the inclusive sample
``` ```
.L BDTSelection.cpp+ .L BDTSelection.cpp+
runAllIncMC(1); runAllIncMC(2) runAllIncMC(1); runAllIncMC(2)
``` ```
lb-conda default python Rescale_pi0momentum.py (CAREFUL, NEEDS TO BE SET BY HAND) lb-conda default python Rescale_pi0momentum.py (CAREFUL, NEEDS TO BE SET BY HAND)
``` ```
.L MCtruthmatching.cpp+ .L MCtruthmatching.cpp+
TruthMatchAllBkg(true,1,false,false,true); TruthMatchAllBkg(true,2,false,false,true); 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! 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+ .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,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); 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! 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+ .L TMVAClassApp.cpp+
TMVAClassAppInc(1); TMVAClassAppInc(2); TMVAClassAppInc(1); TMVAClassAppInc(2);
``` ```
Also the paths in [[RemoveMultipleCandidates.py|RemoveMultipleCandidates.py]] have to be set by hand! 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]]. Lastly, make the truth-matching plots using [[InclusiveCheck.cpp||InclusiveCheck.cpp]].
``` ```
.L CodeForTests/InclusiveCheck.cpp+ .L CodeForTests/InclusiveCheck.cpp+
plotTM(1,true); plotTM(2,true) plotTM(1,true); plotTM(2,true)
plotTM(1,false); plotTM(2,false) plotTM(1,false); plotTM(2,false)
``` ```