Update 'BDTcutScanner.cpp'

Renata Kopecná 2022-02-02 18:07:05 +01:00
parent 58fd3e069e
commit e61d77b16f

@ -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**