Update 'BDTcutScanner.cpp'
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
|
# Classes
|
||||||
### YieldInfo
|
### YieldInfo
|
||||||
* **Public members:**
|
* **Public members:**
|
||||||
@ -12,25 +16,27 @@
|
|||||||
* double refEff (reference efficiency, default = 0)
|
* double refEff (reference efficiency, default = 0)
|
||||||
* double allSigEvts (number of rare events (sig+bkg), default = 0)
|
* double allSigEvts (number of rare events (sig+bkg), default = 0)
|
||||||
* **Functions:**
|
* **Functions:**
|
||||||
* **YieldInfo()** //default constructor
|
* **YieldInfo()** //default constructor, sets everything to 0
|
||||||
* **void addYield(YieldInfo addInfo)** //Adds up yields
|
* **void addYield(YieldInfo addInfo)** //Adds up yields
|
||||||
* **~YieldInfo()** //destuctor
|
* **~YieldInfo()** //destuctor
|
||||||
|
|
||||||
# Functions and their parameters:
|
# 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**
|
* **Parameters**
|
||||||
* //destuctor
|
* YieldInfo addInfo
|
||||||
* **Return**
|
|
||||||
|
|
||||||
|
|
||||||
### double GetBackgroundFromSidebandFit()
|
### 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**
|
* **Parameters**
|
||||||
* TChain \*Tree
|
* TChain \*Tree
|
||||||
* double range
|
* double range
|
||||||
* string cut
|
* string cut
|
||||||
* string path
|
* string path
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Background yield (exponential fit to upper mass sideband)
|
||||||
|
|
||||||
### double GetMVAefficiency()
|
### double GetMVAefficiency()
|
||||||
|
|
||||||
@ -43,6 +49,7 @@
|
|||||||
* bool sig
|
* bool sig
|
||||||
* double TMVAcut
|
* double TMVAcut
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* The MVA efficiency for given TMVA cut read from efficiency file created by [[Efficiency.cpp|Efficiency.cpp]]
|
||||||
|
|
||||||
### double GetSelectionEfficiency()
|
### double GetSelectionEfficiency()
|
||||||
|
|
||||||
@ -54,13 +61,15 @@
|
|||||||
* bool RemoveMultiple
|
* bool RemoveMultiple
|
||||||
* bool sig
|
* bool sig
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* The selection efficiency for given TMVA cut read from efficiency file created by [[Efficiency.cpp|Efficiency.cpp]]
|
||||||
|
*
|
||||||
### string GetBackgroundFunction()
|
### string GetBackgroundFunction()
|
||||||
|
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* bool KshortDecaysInVelo //Set signal and background function separately for each decay channel
|
* bool KshortDecaysInVelo
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Either a double or signle exponential. For K+pi, always \"SingleExponential\".
|
||||||
|
*
|
||||||
### YieldInfo GetSigAndBkgEstimation()
|
### YieldInfo GetSigAndBkgEstimation()
|
||||||
|
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
|
Loading…
Reference in New Issue
Block a user