diff --git a/BDTcutScanner.md b/BDTcutScanner.md new file mode 100644 index 0000000..c95d4d7 --- /dev/null +++ b/BDTcutScanner.md @@ -0,0 +1,200 @@ + +# Classes +### YieldInfo +* **Private members:** +* **Public members:** +* **Functions:** + * **YieldInfo()** + * **Parameters** + * //default constructor + * **Return** + * **void addYield()** + * **Parameters** + * YieldInfo addInfo + * **Return** + * **~YieldInfo()** + * **Parameters** + * ); //destuctor + * **Return** + + + +# Functions and their parameters: +### YieldInfo::~YieldInfo() + +* **Parameters** + * //destuctor +* **Return** + +### double GetBackgroundFromSidebandFit() + +* **Parameters** + * TChain \*Tree + * double range + * string cut + * string path +* **Return** + +### double GetMVAefficiency() + +* **Parameters** + * string year + * int Run + * bool KshortDecaysInVelo + * bool UseLowQ2Range + * bool IncludeMultipleEff + * bool sig + * double TMVAcut +* **Return** + +### double GetSelectionEfficiency() + +* **Parameters** + * string year + * int Run + * bool KshortDecaysInVelo + * bool UseLowQ2Range + * bool RemoveMultiple + * bool sig +* **Return** + +### string GetBackgroundFunction() + +* **Parameters** + * bool KshortDecaysInVelo //Set signal and background function separately for each decay channel +* **Return** + +### YieldInfo GetSigAndBkgEstimation() + +* **Parameters** + * string year + * int Run + * bool KshortDecaysInVelo + * bool UseLowQ2Range + * Double_t TMVAcut + * bool scan +* **Return** + +### YieldInfo GetSigAndBkgEstimationFromData() + +* **Parameters** + * string year = "2011" + * int Run = 0 + * int randomSubset = 0 + * bool KshortDecaysInVelo = false + * bool UseLowQ2Range = false + * Double_t TMVAcut = -1.0 + * bool scan = false +* **Return** + +### int SaveTGraphs() + +* **Parameters** + * string path + * bool fineScan + * string year + * int Run + * string basicPath + * TGraphErrors \*yieldGraph + * TGraphErrors \*bkgGraph + * TGraphErrors \*bkgGraphFromAllEvts + * TGraphErrors \*refYieldGraph + * TGraphErrors \*allEvtsInSig + * TGraphErrors \*significance + * TGraphErrors \*significanceFromAllEvts +* **Return** + +### int ScanSignalAndBckgndEstimation() + +* **Parameters** + * string year + * int Run + * Double_t BDTstep + * bool KshortDecaysInVelo + * bool UseLowQ2Range + * bool scan + * bool fineScan +* **Return** + +### int ScanSignalAndBckgndEstimationPerYear() + +* **Parameters** + * string year = "2011" + * Double_t BDTstep = 0.01 + * bool KshortDecaysInVelo = true + * bool UseLowQ2Range = false + * bool scan = false + * bool fineScan = false +* **Return** + +### int ScanSignalAndBckgndEstimationAllYears() + +* **Parameters** + * Double_t BDTstep = 0.01 + * bool KshortDecaysInVelo = true + * bool UseLowQ2Range = false + * bool scan = false + * bool fineScan = true +* **Return** + +### int ScanSignalAndBckgndEstimationSimple() + +* **Parameters** + * string year = "2011" + * int Run = 1 + * Double_t BDTstep = 0.01 + * int randomSubset = 0 + * bool KshortDecaysInVelo = true + * bool UseLowQ2Range = false + * bool scan = false + * bool fineScan = true +* **Return** + +### int ScanSignalAndBckgndEstimationSimplePerYear() + +* **Parameters** + * string year = "2011" + * Double_t BDTstep = 0.01 + * int randomSubset = 0 + * bool KshortDecaysInVelo = true + * bool UseLowQ2Range = false + * bool scan = false + * bool fineScan = true +* **Return** + +### int ScanSignalAndBckgndEstimationSimpleAllYears() + +* **Parameters** + * Double_t BDTstep = 0.01 + * int randomSubset = 0 + * bool KshortDecaysInVelo = true + * bool UseLowQ2Range = false + * bool scan = false + * bool fineScan = true +* **Return** + +### double getMaxBDTresponse() + +* **Parameters** + * string year = "2011" + * int Run = 0 + * bool fineScan = false + * bool directScan = false + * int randomSubset = 0 + * bool KshortDecaysInVelo = true + * bool UseLowQ2Range = false +* **Return** + +### int optimizeBDTCut() + +* **Parameters** + * string year = "2011" + * int Run = 0 + * bool KshortDecaysInVelo = true + * Double_t BDTstep = 0.01 + * bool UseRandomSubset = false + * bool UseLowQ2Range = false + * bool scan = false + * bool fineScan = false + * bool directScan = false +* **Return**