From da93db557f05b5e860f08aac47d01352ad7c51c0 Mon Sep 17 00:00:00 2001 From: Suter Andreas Date: Thu, 25 Jun 2015 08:36:26 +0200 Subject: [PATCH] small correction of the skewed Gaussian for extrem parameter values. --- src/classes/PTheory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/PTheory.cpp b/src/classes/PTheory.cpp index 9da9847c..08d7f176 100644 --- a/src/classes/PTheory.cpp +++ b/src/classes/PTheory.cpp @@ -2307,7 +2307,7 @@ Double_t PTheory::SkewedGauss(register Double_t t, const PDoubleVector& paramVal Double_t freq = TWO_PI*val[1]; if ((zp >= 25.0) || (zm >= 25.0)) // needed to prevent crash of 1F1 - skg = 2.0e300; + skg = 2.0e6; else if (fabs(val[2]) == fabs(val[3])) // sigma+ == sigma- -> Gaussian skg = TMath::Cos(phase+freq*tt) * gp; else