Skip to content

Commit d59d63e

Browse files
committed
Fix the wedge edge case by amplitude, not range. Relax amplitude range for the bar
1 parent e19dedd commit d59d63e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/jlab/clas/timeline/fitter/ALERTFitter.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class ALERTFitter{
7878
f1.setParameter(1, peak_location);
7979
f1.setParameter(2, 1.0);
8080
f1.setParameter(3, h1.getBinContent(0));
81-
if (maxz>0) f1.setParLimits(0, maxz*0.9,maxz*1.1);
81+
if (maxz>0) f1.setParLimits(0, maxz*0.7,maxz*1.3);
8282
f1.setParLimits(3, 0.0, 0.1*maxz);
8383
f1.setParLimits(2,0,1.0);
8484
f1.setParLimits(1,peak_location - sigma, peak_location + sigma);
@@ -167,7 +167,7 @@ class ALERTFitter{
167167
double S = ftmp.getParameter(2)
168168

169169
// same validation as your code
170-
if (A > maxY * 0.3 &&
170+
if (A > maxY * 0.4 &&
171171
S < step && S > 0.1 &&
172172
M < prevMean - prevSigma &&
173173
hcut.integral() > 0.05 * entriesTotal)

0 commit comments

Comments
 (0)