From 690d48a44667e85d845d8e1b6a6ffb8505781093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Sun, 30 Jan 2022 20:08:51 +0100 Subject: [PATCH] Update 'Selection code' --- Selection-code.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Selection-code.md b/Selection-code.md index 33f981d..1b0a3e0 100644 --- a/Selection-code.md +++ b/Selection-code.md @@ -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); ``` -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+ 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); ``` -Remove all multiple candidates +Remove all multiple candidates, defined in [[RemoveMultipleCandidates.py|RemoveMultipleCandidates.py]] ``` python RemoveMultipleCandidates.py -all ``` @@ -94,7 +94,7 @@ Check the variables again 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+ @@ -111,7 +111,7 @@ TMVAClassAppAll(1); TMVAClassAppAll(2); python RemoveMultipleCandidates.py -all ``` -Add variables to the MC samples **TODO** +[[Add variables|AddVariable.cpp]] to the MC samples ``` .L CodeForTests/AddVariable.cpp+ addAllVariablesAllMCSamples(1); addAllVariablesAllMCSamples(2); @@ -132,7 +132,7 @@ getMaxBDTresponse("2012",1,true,true,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 ``` @@ -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) ``` - +[[InclusiveCheck.cpp||InclusiveCheck.cpp]] ``` .L CodeForTests/InclusiveCheck.cpp+ plotTM(1,true); plotTM(2,true)