Update 'MassFit.cpp'

Renata Kopecná 2022-01-28 12:37:59 +01:00
parent 7d981b0967
commit 015cedb5ae

@ -1,29 +1,52 @@
# Classes
### TMefficiencyClass
* **Private members:**
* **Public members:**
* string sVariable
* std::vector\<string>sBranchName
* Int_t Bins
* Float_t Range\[2\]
* std::vector\<std::array\<double,2>> vVarRange
* std::vector\<double> binEdges
* std::vector\<double> binEdgesEquidistant
* bool isEquidistant
* Float_t Step
* string cut
*
| Name | Description |
| ------------- | ------------- |
| string sVariable | LaTeX name of the parameter |
| std::vector\<string>sBranchName | |
| Int_t Bins | |
| Float_t Range\[2\] | |
| std::vector\<std::array\<double,2>> vVarRange | |
| std::vector\<double> binEdges | |
| std::vector\<double> binEdgesEquidistant | |
| bool isEquidistant | |
| Float_t Step | |
| string cut | |
* **Functions:**
* **TMefficiencyClass()**
* **Parameters**
* //default constructor
* **Return**
* void fillBinEdges() **TODO** add links
* void isEq(string &varName)
* bool check_vector_size(bool isEqui)
* TMefficiencyClass() //full constructor
* ~TMefficiencyClass() //default destuctor
# Functions and their parameters:
### TMefficiencyClass::TMefficiencyClass()
Constructor of the TMefficiencyClass. Based on the varName input parameter, it sets the
* **Parameters**
* string varName
### void TMefficiencyClass::fillBinEdges()
Takes the TM efficiency class nad based on the number of bins and the overall bin range fills `binEdgesEquidistant`
### void TMefficiencyClass::isEq()
Checks whether the varName parameter contains string "\_equal" if yes, sets `isEquidistant` to true and remove the "\_equal" from the varName.
* **Parameters**
* string &varName
### bool TMefficiencyClass::check_vector_size()
Checks whether the size of the binEdges (or binEdgesEqudistant if isEquidistant is true) array is equal to nBins+1.
* **Parameters**
* bool isEqui
* **Return**
* True if everything is okay, False if the bin-edge array size is not equal to nBins+1.
### bool useExtraVarBool()
This functions checks whether the used extra variable is listed in the binning scheme defined in the TMefficiencyClass. **ṪODO** add a link