From e61d77b16f218fe537666d946012506d7c3f290f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Wed, 2 Feb 2022 18:07:05 +0100 Subject: [PATCH] Update 'BDTcutScanner.cpp' --- BDTcutScanner.cpp.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/BDTcutScanner.cpp.md b/BDTcutScanner.cpp.md index f3cd68a..7081aee 100644 --- a/BDTcutScanner.cpp.md +++ b/BDTcutScanner.cpp.md @@ -1,3 +1,7 @@ +## Global variables +bool FixShape = true (When performing the B+ mass fit to obtain the yields, fix the shape to TMed MC/MVAed data?) +bool RemoveMultiple = true (When performing the B+ mass fit, remove multiple events first?) + # Classes ### YieldInfo * **Public members:** @@ -12,25 +16,27 @@ * double refEff (reference efficiency, default = 0) * double allSigEvts (number of rare events (sig+bkg), default = 0) * **Functions:** - * **YieldInfo()** //default constructor + * **YieldInfo()** //default constructor, sets everything to 0 * **void addYield(YieldInfo addInfo)** //Adds up yields * **~YieldInfo()** //destuctor # Functions and their parameters: -### YieldInfo::~YieldInfo() - +### void YieldInfo::addYield() +Takes the `addInfo` and adds up the yields. `Aka bkgYield = self.bkgYield + addInfo.bkgYield`. For now, also the efficiencies are add together even though it doesn't make much sense. Or any sense. * **Parameters** - * //destuctor -* **Return** + * YieldInfo addInfo + + ### double GetBackgroundFromSidebandFit() - +Fits the upper mass sideband (defined by `range`) with an exponential, creates the plot of the fit and returns the background yield. * **Parameters** * TChain \*Tree * double range * string cut * string path * **Return** + * Background yield (exponential fit to upper mass sideband) ### double GetMVAefficiency() @@ -43,6 +49,7 @@ * bool sig * double TMVAcut * **Return** + * The MVA efficiency for given TMVA cut read from efficiency file created by [[Efficiency.cpp|Efficiency.cpp]] ### double GetSelectionEfficiency() @@ -54,13 +61,15 @@ * bool RemoveMultiple * bool sig * **Return** - + * The selection efficiency for given TMVA cut read from efficiency file created by [[Efficiency.cpp|Efficiency.cpp]] + * ### string GetBackgroundFunction() * **Parameters** - * bool KshortDecaysInVelo //Set signal and background function separately for each decay channel + * bool KshortDecaysInVelo * **Return** - + * Either a double or signle exponential. For K+pi, always \"SingleExponential\". + * ### YieldInfo GetSigAndBkgEstimation() * **Parameters**