From 63c5a97a5e91995c7cb027438a16035267171529 Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Wed, 6 Sep 2023 23:22:13 -0400 Subject: [PATCH] fix: quiet fitting --- .../src/main/java/org/jlab/clas12/monitoring/HTCC.java | 4 ++-- .../java/org/jlab/clas12/monitoring/cndCheckPlots.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/monitoring/src/main/java/org/jlab/clas12/monitoring/HTCC.java b/monitoring/src/main/java/org/jlab/clas12/monitoring/HTCC.java index 5c1e3ce4..7a563cd7 100644 --- a/monitoring/src/main/java/org/jlab/clas12/monitoring/HTCC.java +++ b/monitoring/src/main/java/org/jlab/clas12/monitoring/HTCC.java @@ -158,7 +158,7 @@ public void plot() { timeIndPMT.get(t).setRange(maxV - 1, maxV + 1.3); oneHitHTCCOnly.draw(hiTimePMTOneHit.get(t)); oneHitHTCCOnly.getPad(t).getAxisX().setRange(maxV - 10, maxV + 10); - DataFitter.fit(timeIndPMT.get(t), hiTimePMTOneHit.get(t), ""); + DataFitter.fit(timeIndPMT.get(t), hiTimePMTOneHit.get(t), "Q"); oneHitHTCCOnly.draw(timeIndPMT.get(t), "same"); } this.save(oneHitHTCCOnly, "HTCC_timing"); @@ -180,7 +180,7 @@ public void plot() { timeAllFit.setLineColor(2); timeAllFit.setLineWidth(2); timeAllFit.setOptStat("1100"); - DataFitter.fit(timeAllFit, timeAll, ""); + DataFitter.fit(timeAllFit, timeAll, "Q"); allC.draw(timeAllFit, "same"); this.save(allC, "HTCC_e"); diff --git a/monitoring/src/main/java/org/jlab/clas12/monitoring/cndCheckPlots.java b/monitoring/src/main/java/org/jlab/clas12/monitoring/cndCheckPlots.java index be619b59..5a9f3abe 100644 --- a/monitoring/src/main/java/org/jlab/clas12/monitoring/cndCheckPlots.java +++ b/monitoring/src/main/java/org/jlab/clas12/monitoring/cndCheckPlots.java @@ -596,7 +596,7 @@ public void fit() { System.out.println("height "+H_CND_time.getBinContent(H_CND_time.getMaximumBin())); IntRes.setParameter(2,0.2); try { - DataFitter.fit(IntRes, H_CND_time, ""); + DataFitter.fit(IntRes, H_CND_time, "Q"); H_CND_time.setTitle("Integrated vertex time. Width=" + IntRes.getParameter(2)); } catch (Exception ex) { ex.printStackTrace(); @@ -611,7 +611,7 @@ public void fit() { System.out.println("height "+H_CND_res[0].getBinContent(H_CND_res[0].getMaximumBin())); IntRes1.setParameter(2,2.0); try { - // DataFitter.fit(IntRes1, H_CND_res[0], ""); + // DataFitter.fit(IntRes1, H_CND_res[0], "Q"); //H_CND_res[0].setTitle("Integrated vertex time. Width=" + IntRes1.getParameter(2)); } catch (Exception ex) { ex.printStackTrace(); @@ -659,7 +659,7 @@ public void fit() { fitE[(comp*3)+layer+(sector*6)].setParameter(4,0.0); try { - DataFitter.fit(fitz[(comp*3)+layer+(sector*6)], H_CND_align[(comp*3)+layer+(sector*6)], ""); + DataFitter.fit(fitz[(comp*3)+layer+(sector*6)], H_CND_align[(comp*3)+layer+(sector*6)], "Q"); double resz =Math.abs(fitz[(comp*3)+layer+(sector*6)].getParameter(2)); double alig=fitz[(comp*3)+layer+(sector*6)].getParameter(1); //double aligt=fitt[(comp*3)+layer+(sector*6)].getParameter(1); @@ -673,7 +673,7 @@ public void fit() { } try { - DataFitter.fit(fitt[(comp*3)+layer+(sector*6)], H_CND_alignt[(comp*3)+layer+(sector*6)], ""); + DataFitter.fit(fitt[(comp*3)+layer+(sector*6)], H_CND_alignt[(comp*3)+layer+(sector*6)], "Q"); double rest=Math.abs(fitt[(comp*3)+layer+(sector*6)].getParameter(2)); double aligt=fitt[(comp*3)+layer+(sector*6)].getParameter(1); if(rest<0.5)resot.addPoint((comp*3)+layer+(sector*6),rest,0.,0.); @@ -685,7 +685,7 @@ public void fit() { } try { - DataFitter.fit(fitE[(comp*3)+layer+(sector*6)], H_CND_alignE[(comp*3)+layer+(sector*6)], ""); + DataFitter.fit(fitE[(comp*3)+layer+(sector*6)], H_CND_alignE[(comp*3)+layer+(sector*6)], "Q"); double resE=Math.abs(fitE[(comp*3)+layer+(sector*6)].getParameter(2)); double aligE=fitE[(comp*3)+layer+(sector*6)].getParameter(1); //if(rest<0.5)resot.addPoint((comp*3)+layer+(sector*6),rest,0.,0.);