From 4ad204c6a4ce8cbae82275f32b6d623889013384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Thu, 27 Jan 2022 19:02:06 +0100 Subject: [PATCH] Add 'MassFit.cpp' --- MassFit.cpp.md | 253 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 MassFit.cpp.md diff --git a/MassFit.cpp.md b/MassFit.cpp.md new file mode 100644 index 0000000..c913a85 --- /dev/null +++ b/MassFit.cpp.md @@ -0,0 +1,253 @@ + + +# Functions and their parameters: +### bool useExtraVarBool() + +* **Parameters** + * string extraVar //Shoudl be easy to add others +* **Return** + +### string GetsWeightPlots() + +* **Parameters** + * string year + * bool UseOnlyJpsiEvents + * bool UseOnlyMuMuEvents + * bool KshortDecaysInVelo + * bool GetShapeFromMC + * string SignalType + * string BkgType + * bool ConstrainParameters +* **Return** + +### double massFit() + +* **Parameters** + * string year + * string magnet + * int Run + * bool MC + * bool Preselected + * bool TM + * bool PHSP + * //input/output file selectionbool UseOnlyJpsiEvents + * bool UseOnlyMuMuEvents + * //signal/referencebool GetShapeFromMC + * string SigType + * string BkgType + * bool ConstrainParameters + * //shapebool KshortDecaysInVelo + * bool UseLowQ2Range + * //LL/DD? q2range?Double_t TMVAcut + * int randomSubset + * //TMVA optionsbool fixedMassRegion + * bool yieldOverFullRange + * //yield calculation regionbool sWeight + * //sWeight data?bool loopFit + * bool IsEfficiency + * //additional optionsstring sExtraVar + * int nExtraBin + * //fit in bins of extra variablebool removeMultiple + * //Remove multiple candidates?bool weighted + * bool weightedFromPi0 + * string whichWeight + * //use weight in the fit?bool nonTM + * string customTMbranch + * bool gammaTM + * //TM optionsbool InclusiveSample //Fit inclusive sample? +* **Return** + +### int quickFit() + +* **Parameters** + * string year + * bool MC + * bool sWeight + * bool UseOnlyJpsiEvents + * bool UseOnlyMuMuEvents + * bool KshortDecaysInVelo + * bool GetShapeFromMC + * string SigType + * string BkgType + * bool ConstrainParameters +* **Return** + +### int quickTest() + +* **Parameters** + * bool gammaTM = false + * string customTMbranch = "TMed" +* **Return** + +### int testOneCbBackground() + +* **Parameters** + * bool MC = false + * string SigType = "OneCB" + * string BkgType = "SingleExponentialOneCB" + * string customTMbranch = "" + * bool gammaTM = false +* **Return** + +### int efficiencyFit() + +* **Parameters** + * string year = "2011" + * string magnet = "down" + * int Run = 0 + * bool Preselected = true + * bool TM = true + * bool PHSP = false + * //input/output file selectionbool UseOnlyJpsiEvents = false + * bool UseOnlyMuMuEvents = false + * //signal/referencebool GetShapeFromMC = false + * string SigType = "OneCB" + * string BkgType = "SingleExponential" + * bool ConstrainParameters = false + * //shapebool KshortDecaysInVelo = Kst2Kspiplus + * //LL/DD?Double_t TMVAcut = -1.0 + * //TMVA optionsbool fixedMassRegion = !Kst2Kspiplus + * //yield calculation regionbool UseLowQ2Range =false + * //q2 rangesstring sExtraVar = "" + * int nExtraBin = -1 + * bool removeMultiple = false + * bool weighted = false + * bool weightedFromPi0 = false + * string whichWeight = "" + * //fit in bins of extra variablestring customTMbranch = "" + * bool gammaTM = false +* **Return** + +### int basicYieldFit() + +* **Parameters** + * string year + * int Run + * bool MC + * bool PHSP + * //input/output file selectionbool UseOnlyJpsiEvents + * bool UseOnlyMuMuEvents + * //signal/referencebool GetShapeFromMC + * string SigType + * string BkgType + * bool ConstrainParameters + * //shapebool KshortDecaysInVelo + * bool UseLowQ2Range + * //LL/DD? q2range?Double_t TMVAcut + * //TMVA optionsbool fixedMassRegion + * bool loopFit + * //yield calculation regionbool removeMultiple //remove multiple candidates //TODO: shape from MC if TMVA cut? +* **Return** + +### int basicYieldFitAllYears() + +* **Parameters** + * //Fits all years separatelybool MC = true + * bool PHSP = false + * //input/output file selectionbool UseOnlyJpsiEvents = false + * bool UseOnlyMuMuEvents = false + * //signal/referencebool GetShapeFromMC = false + * string SigType = "OneCB" + * string BkgType = "SingleExponential" + * bool ConstrainParameters = false + * //shapebool KshortDecaysInVelo = Kst2Kspiplus + * bool UseLowQ2Range =false + * //LL/DD? q2range?Double_t TMVAcut = -1.0 + * //TMVA optionsbool fixedMassRegion = !Kst2Kspiplus + * bool loopFit = false + * //yield calculation regionbool removeMultiple = false //remove multiple candidates +* **Return** + +### int basicFitAllYearsAndRegions() + +* **Parameters** + * bool MC = true + * bool PHSP = false + * //input/output file selectionbool GetShapeFromMC = false + * string SigType = "OneCB" + * string BkgType = "SingleExponential" + * bool ConstrainParameters = false + * //shapebool KshortDecaysInVelo = Kst2Kspiplus + * bool UseLowQ2Range =false + * //LL/DD? q2range?Double_t TMVAcut = -1.0 + * bool removeMultiple = false //TMVA options +* **Return** + +### int getYieldBasicOptionsMC() + +* **Parameters** + * bool TM + * string year + * int Run + * bool ReferenceChannel + * bool PHSP + * bool removeMultiple +* **Return** + +### int getYieldBasicOptionsMCAllYears() + +* **Parameters** + * bool TM + * bool ReferenceChannel + * bool PHSP + * bool removeMultiple +* **Return** + +### int getYieldAllYearsBasicOptions() + +* **Parameters** + * bool TM + * bool removeMultiple +* **Return** + +### int basicYieldFitAllRuns() + +* **Parameters** + * //Fits data per yearbool MC = true + * bool PHSP = false + * //input/output file selectionbool UseOnlyJpsiEvents = false + * bool UseOnlyMuMuEvents = false + * //signal/referencebool GetShapeFromMC = false + * string SigType = "OneCB" + * string BkgType = "SingleExponential" + * bool ConstrainParameters = false + * //shapebool KshortDecaysInVelo = Kst2Kspiplus + * bool UseLowQ2Range =false + * //LL/DD? q2range?Double_t TMVAcut = -1.0 + * //TMVA optionsbool fixedMassRegion = !Kst2Kspiplus + * bool loopFit = false + * //yield calculation regionbool removeMultiple = false //remove multiple candidates +* **Return** + +### int massFitTestAll() + +* **Parameters** + * bool GetShapeFromMC = true + * bool ConstrainParameters = false + * int Run = 1 +* **Return** + +### int massFitTestQ2All() + +* **Parameters** + * int Run + * bool PHSP + * bool UseOnlyMuMuEvents + * bool UseOnlyJpsiEvents +* **Return** + +### int PrintFitResults() + +* **Parameters** + * RooFitResult\* fitRes +* **Return** + +### int fitJpsi() + +* **Parameters** + * string year + * int Run + * bool MC + * double TMVAcut + * bool RemoveMultiple +* **Return**