From 8dd4d692a52dd2ea1c30e458c39c7c63060f8467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Tue, 25 Jan 2022 17:52:05 +0100 Subject: [PATCH] Add 'Plot TMVA' --- Plot-TMVA.md | 273 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 273 insertions(+) create mode 100644 Plot-TMVA.md diff --git a/Plot-TMVA.md b/Plot-TMVA.md new file mode 100644 index 0000000..295daef --- /dev/null +++ b/Plot-TMVA.md @@ -0,0 +1,273 @@ +Welcome to the Wiki. + +## Global variables: + +*} +*return v_var + + +# Classes + + + +# Functions and their parameters: +### TFile \*GetTMVAfile() + +* **Parameters** + * int year + * int Run + * bool SplitYears + * bool KShortDecaysInVelo + * int nConfiguration + * bool UseLowQ2Range + * string customTMbranch + * bool gammaTM +* **Return** + +### TH2F \*GetCorrelationMatrix() + +* **Parameters** + * TFile \*file + * string type //type = S + * B +* **Return** + +### TH2F \*GetCorrelationMatrixSignal() + +* **Parameters** + * TFile \*file +* **Return** + +### TH2F \*GetCorrelationMatrixBackground() + +* **Parameters** + * TFile \*file +* **Return** + +### string oberFolder() + +* **Parameters** + * string method +* **Return** + +### TH1F \*GetTMVAresponse() + +* **Parameters** + * TFile \*file + * string method + * string type //type = S + * B + * Train_S + * Train_B +* **Return** + +### TH1F \*GetTMVAresponseSignal() + +* **Parameters** + * TFile \*file + * string method +* **Return** + +### TH1F \*GetTMVAresponseBackground() + +* **Parameters** + * TFile \*file + * string method +* **Return** + +### TH1F \*GetTMVAresponseTrainingSignal() + +* **Parameters** + * TFile \*file + * string method +* **Return** + +### TH1F \*GetTMVAresponseTrainingBackground() + +* **Parameters** + * TFile \*file + * string method +* **Return** + +### TH1F \*GetVariableSignal() + +* **Parameters** + * TFile \*file + * string variable +* **Return** + +### TH1F \*GetVariableBackground() + +* **Parameters** + * TFile \*file + * string variable +* **Return** + +### TH1F \*GetEfficiencySignal() + +* **Parameters** + * TFile \*file + * string method +* **Return** + +### TH1F \*GetEfficiencyBackground() + +* **Parameters** + * TFile \*file + * string method +* **Return** + +### TH1F \*GetROC() + +* **Parameters** + * TFile \*file + * string method +* **Return** + +### TTree \*GetTrainTree() + +* **Parameters** + * TFile \*file +* **Return** + +### TTree \*GetTestTree() + +* **Parameters** + * TFile \*file +* **Return** + +### int GetTrainEvents() + +* **Parameters** + * TFile \*file +* **Return** + +### int GetTrainSignalEvents() + +* **Parameters** + * TFile \*file +* **Return** + +### int GetTrainBackgroundEvents() + +* **Parameters** + * TFile \*file +* **Return** + +### bool SaveCorrelationPlot() + +* **Parameters** + * TFile \*file + * string type + * string savePath +* **Return** + +### vector v_variables() + +* **Parameters** + * string DL="" +* **Return** + +### bool SaveVariablesSignalVsBackground() + +* **Parameters** + * TFile \*file + * string savePath + * string DL="" +* **Return** + +### bool SaveMVAResponse() + +* **Parameters** + * TFile \*file + * string savePath + * string method //Check if folder for the plots exists and if not + * create one +* **Return** + +### bool SaveMVAOvertraining() + +* **Parameters** + * TFile \*file + * string savePath + * string method //Check if folder for the plots exists and if not + * create one +* **Return** + +### bool SaveEfficiency() + +* **Parameters** + * TFile \*file + * string savePath + * string method + * int nSig + * int nBkg +* **Return** + +### string getROCmethod() + +* **Parameters** + * TH1F \*h_ROC +* **Return** + +### bool SaveROCs() + +* **Parameters** + * TFile \*file + * string savePath + * vector methods +* **Return** + +### bool SaveMultipleROCS() + +* **Parameters** + * vector files + * string savePath + * string method +* **Return** + +### void nEvents() + +* **Parameters** + * int year + * int Run + * bool SplitYears + * bool KshortDecaysInVelo + * int nConfiguration + * bool UseLowQ2Range + * int& nSig + * int& nBkg +* **Return** + +### bool SaveAllFromOneFile() + +* **Parameters** + * int year + * int Run + * bool SplitYears + * bool KshortDecaysInVelo + * int nConfiguration + * bool UseLowQ2Range + * string customTMbranch + * bool gammaTM +* **Return** + +### bool SaveMultipleROCS() + +* **Parameters** + * int Run =1 + * int nLow = 0 + * int nHigh = 3 +* **Return** + +### bool testFunction() + +* **Parameters** + * int Run =1 +* **Return** + +### void test() + +* **Parameters** + * +* **Return**