@@ -173,12 +173,11 @@ void fitCorrelDs(const TString cfgFileName = "config_CorrAnalysis.json")
173173
174174 // Input parameters for fitting
175175 const int npars {10 }; // PED NSY NSM NSW ASY ASM ASW BETA v2D v2h
176- Double_t vals [npars ] = {3. , 2. , 0. , 0.5 , 2. , 3.14 , 0.3 , 2. , 0.1 , 0.1 };
177- Double_t lowBounds [npars ] = {0. , 0. , -1. , 0. , 0. , 2. , 0. , 0.5 , 0. , 0. };
178- Double_t uppBounds [npars ] = {9999. , 999. , 1. , 3.14 / 3. , 999. , 4. , 3.14 / 2. , 3.5 , 0.5 , 0.5 };
179-
180- Double_t const v2AssocPart [nBinsPtD ] = {0.15 , 0.15 , 0.15 , 0.15 };
181- Double_t const v2Dmeson [nBinsPtD ] = {0.175 , 0.09 , 0.04 , 0.04 };
176+ const Double_t vals [npars ] = {3. , 2. , 0. , 0.5 , 2. , 3.14 , 0.3 , 2. , 0.1 , 0.1 };
177+ const Double_t lowBounds [npars ] = {0. , 0. , -1. , 0. , 0. , 2. , 0. , 0.5 , 0. , 0. };
178+ const Double_t uppBounds [npars ] = {9999. , 999. , 1. , 3.14 / 3. , 999. , 4. , 3.14 / 2. , 3.5 , 0.5 , 0.5 };
179+ const Double_t v2AssocPart [nBinsPtD ] = {0.15 , 0.15 , 0.15 , 0.15 };
180+ const Double_t v2Dmeson [nBinsPtD ] = {0.175 , 0.09 , 0.04 , 0.04 };
182181
183182 // Output histograms
184183 TH1D * hBaselin [nBinsPtHad ];
@@ -347,8 +346,6 @@ void fitCorrelDs(const TString cfgFileName = "config_CorrAnalysis.json")
347346 pttext -> Draw ("same" );
348347 if (drawSystematicErrors ) {
349348 tCorrUncDs -> Draw ("same" );
350- }
351- if (drawSystematicErrors ) {
352349 tScaleUnc -> Draw ("same" );
353350 }
354351 }
@@ -399,18 +396,12 @@ void fitCorrelDs(const TString cfgFileName = "config_CorrAnalysis.json")
399396 hBaselin [iBinPtHad ]-> SetMinimum (0 );
400397 hBaselin [iBinPtHad ]-> Draw ();
401398
402- TH1F * hBaselinSyst ;
403- TH1F * hNSYieldSyst ;
404- TH1F * hNSSigmaSyst ;
405- TH1F * hASYieldSyst ;
406- TH1F * hASSigmaSyst ;
407-
408399 if (drawSystematicErrors ) {
409- hBaselinSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsBaselinMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
410- hNSYieldSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsNSYieldMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
411- hNSSigmaSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsNSSigmaMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
412- hASYieldSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsASYieldMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
413- hASSigmaSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsASSigmaMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
400+ TH1F * hBaselinSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsBaselinMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
401+ TH1F * hNSYieldSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsNSYieldMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
402+ TH1F * hNSSigmaSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsNSSigmaMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
403+ TH1F * hASYieldSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsASYieldMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
404+ TH1F * hASSigmaSyst = reinterpret_cast < TH1F * > (inFileFitSystematicErrors -> Get (Form ("hSystematicErrorsASSigmaMerged_PtBinAssoc%d" , iBinPtHad + 1 )));
414405
415406 for (int iBinPtCand = 0 ; iBinPtCand < nBinsPtCand ; iBinPtCand ++ ) {
416407 hBaselinSyst -> SetBinError (iBinPtCand + 1 , hBaselinSyst -> GetBinContent (iBinPtCand + 1 ) * hBaselin [iBinPtHad ]-> GetBinContent (iBinPtCand + 1 ));
0 commit comments