Skip to content

Commit

Permalink
fix: quiet fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 7, 2023
1 parent 71a7a8e commit 0b1f525
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions monitoring/src/main/java/org/jlab/clas12/monitoring/HTCC.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,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();
Expand All @@ -610,7 +610,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();
Expand Down Expand Up @@ -658,7 +658,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);
Expand All @@ -672,7 +672,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.);
Expand All @@ -684,7 +684,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.);
Expand Down

0 comments on commit 0b1f525

Please sign in to comment.