@@ -431,7 +431,7 @@ void runMassFitter(const std::string& configFileName)
431431
432432 double reflOverSgn = 0 ;
433433
434- HFInvMassFitter * massFitter = new HFInvMassFitter (hMass [iSliceVar ], massMin [iSliceVar ], massMax [iSliceVar ], bkgFunc [iSliceVar ], sgnFunc [iSliceVar ]);
434+ HFInvMassFitter * massFitter = new HFInvMassFitter (hMass [iSliceVar ], massMin [iSliceVar ], massMax [iSliceVar ], bkgFunc [iSliceVar ], sgnFunc [iSliceVar ], randomSeed );
435435 massFitter -> setDrawBgPrefit (drawBgPrefit );
436436 massFitter -> setHighlightPeakRegion (highlightPeakRegion );
437437 massFitter -> setInitialGaussianMean (massPDG );
@@ -442,7 +442,6 @@ void runMassFitter(const std::string& configFileName)
442442 } else {
443443 massFitter -> setUseChi2Fit ();
444444 }
445- massFitter -> setRandomSeed (randomSeed );
446445
447446 auto setFixedValue = [& iSliceVar ](bool const & isFix , std ::vector < double > const & fixManual , const TH1 * histToFix , std ::function < void (double )> setFunc , std ::string const & var ) -> void {
448447 if (isFix ) {
@@ -741,8 +740,8 @@ void readJsonVectorFromHisto(std::vector<double>& vec, const Document& config, c
741740 if (!vec .empty ()) {
742741 throw std ::runtime_error ("readJsonVectorFromHisto (): vector is not empty !");
743742 }
744- const auto fileName = readJsonField < std ::string > (config , fileNameFieldName );
745- const auto histoName = readJsonField < std ::string > (config , histoNameFieldName );
743+ const auto fileName = readJsonField < std ::string > (config , fileNameFieldName , "" );
744+ const auto histoName = readJsonField < std ::string > (config , histoNameFieldName , "" );
746745 if (fileName .empty () || histoName .empty ()) {
747746 return ;
748747 }
0 commit comments