Update 'Selection code'

Renata Kopecná 2022-01-30 20:08:51 +01:00
parent 2a6b5dee04
commit 690d48a446

@ -58,7 +58,7 @@ WeightAll(true,1,true); ReweightReferenceMC(true,1,true); ReweightPHSPMC(true,1,
WeightAll(true,2,true); ReweightReferenceMC(true,2,true); ReweightPHSPMC(true,2,true); WeightAll(true,2,true); ReweightReferenceMC(true,2,true); ReweightPHSPMC(true,2,true);
``` ```
Check the MVA variables are agreeing after weighting them with sWeights Check the MVA variables are agreeing after weighting them with sWeights [[compareVariables.cc|compareVariables.cc]]. (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**
``` ```
.L CodeForTests/compareVariables.cc+ .L CodeForTests/compareVariables.cc+
compareAll(1); compareAll(2); compareAll(1); compareAll(2);
@ -76,7 +76,7 @@ Apply the MVA to all the MC and Data using [[TMVA.cpp|TMVA Class application]]
TMVAClassAppAll(1); TMVAClassAppAll(2); TMVAClassAppAll(1); TMVAClassAppAll(2);
``` ```
Remove all multiple candidates Remove all multiple candidates, defined in [[RemoveMultipleCandidates.py|RemoveMultipleCandidates.py]]
``` ```
python RemoveMultipleCandidates.py -all python RemoveMultipleCandidates.py -all
``` ```
@ -94,7 +94,7 @@ Check the variables again
compareAll(1); compareAll(2); compareAll(1); compareAll(2);
``` ```
Run the MVA training, [[make nice plots|Plot TMVA]], apply the MVA and remove multiple candidates Run the MVA training, [[make nice plots|PlotTMVA.cpp]], apply the MVA and remove multiple candidates
``` ```
.L MVA.cpp+ .L MVA.cpp+
@ -111,7 +111,7 @@ TMVAClassAppAll(1); TMVAClassAppAll(2);
python RemoveMultipleCandidates.py -all python RemoveMultipleCandidates.py -all
``` ```
Add variables to the MC samples **TODO** [[Add variables|AddVariable.cpp]] to the MC samples
``` ```
.L CodeForTests/AddVariable.cpp+ .L CodeForTests/AddVariable.cpp+
addAllVariablesAllMCSamples(1); addAllVariablesAllMCSamples(2); addAllVariablesAllMCSamples(1); addAllVariablesAllMCSamples(2);
@ -132,7 +132,7 @@ getMaxBDTresponse("2012",1,true,true,0,false,false)
getMaxBDTresponse("2016",2,true,false,0,false,false) getMaxBDTresponse("2016",2,true,false,0,false,false)
``` ```
Make a nice TGraph from the scan; when creating the scan, it can happen that eg an estimation at cut at 0.95 happens before a cut at 0.92. This script just takes it and makes a pretty clean plot. Make a nice TGraph from the scan; when creating the scan, it can happen that eg an estimation at cut at 0.95 happens before a cut at 0.92. [[This script|ReorganizeTGraph]] just takes it and makes a pretty clean plot.
``` ```
python ReorganizeTGraph.py python ReorganizeTGraph.py
``` ```
@ -180,7 +180,7 @@ lb-conda default python Rescale_pi0momentum.py (CAREFUL, NEEDS TO BE SET BY HAND
python RemoveMultipleCandidates.py -all (CAREFUL, NEEDS TO BE SET BY HAND) python RemoveMultipleCandidates.py -all (CAREFUL, NEEDS TO BE SET BY HAND)
``` ```
[[InclusiveCheck.cpp||InclusiveCheck.cpp]]
``` ```
.L CodeForTests/InclusiveCheck.cpp+ .L CodeForTests/InclusiveCheck.cpp+
plotTM(1,true); plotTM(2,true) plotTM(1,true); plotTM(2,true)