Update 'MassFit.cpp'

Renata Kopecná 2022-02-07 17:12:23 +01:00
parent fa0f23dd76
commit 231d0642fa

@ -76,7 +76,7 @@ Checks whether the size of the binEdges (or binEdgesEqudistant if isEquidistant
### bool useExtraVarBool() ### bool useExtraVarBool()
This functions checks whether the used extra variable is listed in the binning scheme defined in the TMefficiencyClass. **ṪODO** add a link This functions checks whether the used extra variable is listed in the binning scheme defined in the [TMefficiencyClass](#tmefficiencyclass-tmefficiencyclass).
* **Parameters** * **Parameters**
* string extraVar * string extraVar
* **Return** * **Return**
@ -222,52 +222,52 @@ Calls [massFit](#double-massfit). For the details the fastest is to see the code
* int Run * int Run
* bool MC * bool MC
* bool PHSP * bool PHSP
* //input/output file selectionbool UseOnlyJpsiEvents * bool UseOnlyJpsiEvents
* bool UseOnlyMuMuEvents * bool UseOnlyMuMuEvents
* //signal/referencebool GetShapeFromMC * bool GetShapeFromMC
* string SigType * string SigType
* string BkgType * string BkgType
* bool ConstrainParameters * bool ConstrainParameters
* //shapebool KshortDecaysInVelo * bool KshortDecaysInVelo
* bool UseLowQ2Range * bool UseLowQ2Range
* //LL/DD? q2range?Double_t TMVAcut * Double_t TMVAcut
* //TMVA optionsbool fixedMassRegion * bool fixedMassRegion
* bool loopFit * bool loopFit
* //yield calculation regionbool removeMultiple //remove multiple candidates //TODO: shape from MC if TMVA cut? * bool removeMultiple
* **Return** * **Return**
* Signal yield is everything went well, 0 if something failed. * Signal yield is everything went well, 0 if something failed.
### int basicYieldFitAllYears() ### int basicYieldFitAllYears()
Calls [massFit](#double-massfit). For the details the fastest is to see the code. Calls [massFit](#double-massfit). For the details the fastest is to see the code.
* **Parameters** * **Parameters**
* //Fits all years separatelybool MC = true * bool MC = true
* bool PHSP = false * bool PHSP = false
* //input/output file selectionbool UseOnlyJpsiEvents = false * bool UseOnlyJpsiEvents = false
* bool UseOnlyMuMuEvents = false * bool UseOnlyMuMuEvents = false
* //signal/referencebool GetShapeFromMC = false * bool GetShapeFromMC = false
* string SigType = "OneCB" * string SigType = "OneCB"
* string BkgType = "SingleExponential" * string BkgType = "SingleExponential"
* bool ConstrainParameters = false * bool ConstrainParameters = false
* //shapebool KshortDecaysInVelo = Kst2Kspiplus * bool KshortDecaysInVelo = Kst2Kspiplus
* bool UseLowQ2Range =false * bool UseLowQ2Range =false
* //LL/DD? q2range?Double_t TMVAcut = -1.0 * Double_t TMVAcut = -1.
* //TMVA optionsbool fixedMassRegion = !Kst2Kspiplus * bool fixedMassRegion = !Kst2Kspiplus
* bool loopFit = false * bool loopFit = false
* //yield calculation regionbool removeMultiple = false //remove multiple candidates * bool removeMultiple = false
### int basicFitAllYearsAndRegions() ### int basicFitAllYearsAndRegions()
Calls [massFit](#double-massfit). For the details the fastest is to see the code. Calls [massFit](#double-massfit). For the details the fastest is to see the code.
* **Parameters** * **Parameters**
* bool MC = true * bool MC = true
* bool PHSP = false * bool PHSP = false
* //input/output file selectionbool GetShapeFromMC = false * bool GetShapeFromMC = false
* string SigType = "OneCB" * string SigType = "OneCB"
* string BkgType = "SingleExponential" * string BkgType = "SingleExponential"
* bool ConstrainParameters = false * bool ConstrainParameters = false
* //shapebool KshortDecaysInVelo = Kst2Kspiplus * bool KshortDecaysInVelo = Kst2Kspiplus
* bool UseLowQ2Range =false * bool UseLowQ2Range =false
* //LL/DD? q2range?Double_t TMVAcut = -1.0 * Double_t TMVAcut = -1.0
* bool removeMultiple = false //TMVA options * bool removeMultiple = false
* **Return** * **Return**
* Signal yield is everything went well, 0 if something failed. * Signal yield is everything went well, 0 if something failed.
@ -303,20 +303,20 @@ Calls [massFit](#double-massfit). For the details the fastest is to see the code
### int basicYieldFitAllRuns() ### int basicYieldFitAllRuns()
Calls [massFit](#double-massfit). For the details the fastest is to see the code. Calls [massFit](#double-massfit). For the details the fastest is to see the code.
* **Parameters** * **Parameters**
* //Fits data per yearbool MC = true * bool MC = true
* bool PHSP = false * bool PHSP = false
* //input/output file selectionbool UseOnlyJpsiEvents = false * bool UseOnlyJpsiEvents = false
* bool UseOnlyMuMuEvents = false * bool UseOnlyMuMuEvents = false
* //signal/referencebool GetShapeFromMC = false * bool GetShapeFromMC = false
* string SigType = "OneCB" * string SigType = "OneCB"
* string BkgType = "SingleExponential" * string BkgType = "SingleExponential"
* bool ConstrainParameters = false * bool ConstrainParameters = false
* //shapebool KshortDecaysInVelo = Kst2Kspiplus * bool KshortDecaysInVelo = Kst2Kspiplus
* bool UseLowQ2Range =false * bool UseLowQ2Range =false
* //LL/DD? q2range?Double_t TMVAcut = -1.0 * Double_t TMVAcut = -1.0
* //TMVA optionsbool fixedMassRegion = !Kst2Kspiplus * bool fixedMassRegion = !Kst2Kspiplus
* bool loopFit = false * bool loopFit = false
* //yield calculation regionbool removeMultiple = false //remove multiple candidates * bool removeMultiple = false
* **Return** * **Return**
* Signal yield is everything went well, 0 if something failed. * Signal yield is everything went well, 0 if something failed.