Skip to content

Commit a31466f

Browse files
committed
Refine the fitting range
1 parent 0628981 commit a31466f

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
@@ -47,8 +47,8 @@ class ALERTFitter{
4747
f1.setOptStat("1111");
4848
double maxz = h1.getBinContent(h1.getMaximumBin());
4949
double peak_location = h1.getAxis().getBinCenter(h1.getMaximumBin());
50-
if (h1.getAxis().getBinCenter(h1.getMaximumBin())-h1.getAxis().getBinCenter(0) < 92) f1.setRange(peak_location - 50, peak_location + 10);
51-
else f1.setRange(peak_location - 10, peak_location + 50);
50+
if (h1.getAxis().getBinCenter(h1.getMaximumBin())-h1.getAxis().getBinCenter(0) < 93) f1.setRange(peak_location - 50, peak_location + 5);
51+
else f1.setRange(peak_location - 5, peak_location + 50);
5252
f1.setParameter(0,maxz-h1.getBinContent(0));
5353
f1.setParameter(1, peak_location);
5454
f1.setParameter(2, 5.0);

0 commit comments

Comments
 (0)