Skip to content

Commit e5757af

Browse files
committed
Prepare for wedge code
1 parent d24a586 commit e5757af

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
*
3-
* Fitter package for CND
3+
* Fitter package for ALERT
44
*
5-
* Writer: Sangbaek Lee
5+
* Writer: Sangbaek Lee, Zhiwan Xu
66
*
77
**/
88
package org.jlab.clas.timeline.fitter
@@ -40,7 +40,8 @@ class ALERTFitter{
4040
return f1
4141
}
4242

43-
static F1D tdc_minus_start_time_fitter(H1F h1){
43+
static F1D tdc_minus_start_time_fitter(H1F h1, int component){
44+
if (component > 9) {//bars
4445
def f1 =new F1D("fit:"+h1.getName(),"[amp]*gaus(x,[mean],[sigma])+[cst]", -5.0, 5.0);
4546
f1.setLineColor(33);
4647
f1.setLineWidth(10);
@@ -65,6 +66,10 @@ class ALERTFitter{
6566
System.setOut(originalOut) // Restore the original output
6667

6768
return f1
69+
}
70+
else {//wedges
71+
return null
72+
}
6873
}
6974

7075

0 commit comments

Comments
 (0)