Update 'Selection code'

Renata Kopecná 2022-01-31 10:09:09 +01:00
parent 3db793afcc
commit 9c9203749d

@ -42,7 +42,7 @@ Next step is to compile and perform the MC Truth-Matching, saved in [[MCtruthma
TruthMatchAllAll(1); TruthMatchAllAll(2); TruthMatchAllAll(1); TruthMatchAllAll(2);
``` ```
Then, we need to add the XMuMu mass variable and apply the KplusMuMu veto ([[AddVariable.cpp|AddVariable]]) Then, we need to add the XMuMu mass variable and apply the KplusMuMu veto ([[AddVariable.cpp|AddVariable.cpp]])
``` ```
.L AddVariable.cpp+ .L AddVariable.cpp+
addAllXMuMuMass(true,true,1); addAllXMuMuMass(false,true,1); applyAllVetoKplusMuMuMass(1); addAllXMuMuMass(true,true,1); addAllXMuMuMass(false,true,1); applyAllVetoKplusMuMuMass(1);
@ -161,26 +161,26 @@ yieldComparison(2,getTMVAcut(2));
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!
``` ```
.L CodeForTests/AddVariable.cpp+ (CAREFUL, NEEDS TO BE SET BY HAND) .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!
``` ```
lb-conda default python Rescale_pi0momentum.py (CAREFUL, NEEDS TO BE SET BY HAND) 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!
``` ```
python RemoveMultipleCandidates.py -all (CAREFUL, NEEDS TO BE SET BY HAND) python RemoveMultipleCandidates.py -all
``` ```
Lastly, make the truth-matching plots using [[InclusiveCheck.cpp||InclusiveCheck.cpp]].
[[InclusiveCheck.cpp||InclusiveCheck.cpp]]
``` ```
.L CodeForTests/InclusiveCheck.cpp+ .L CodeForTests/InclusiveCheck.cpp+
plotTM(1,true); plotTM(2,true) plotTM(1,true); plotTM(2,true)