Skip to content

Commit

Permalink
Another commit
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 26, 2024
1 parent f335e82 commit 0ae2b12
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public class RawTrackerHitFitterDriver extends Driver {
private double tsCorrectionScale = 240;
private double chiSqrThresh = .5;

private int doOldDT = 1;

private boolean isFirstEvent=true;

private TrackerHitUtils tkHitUtils=new TrackerHitUtils();
Expand All @@ -74,7 +76,11 @@ public class RawTrackerHitFitterDriver extends Driver {
public void setChiSqrThresh(double chiSqrThresh){
this.chiSqrThresh = chiSqrThresh;
}


public void setDoOldDT(int doOldDT){
this.doOldDT = doOldDT;
}

public void setUseTruthTime(boolean useTruthTime) {
this.useTruthTime = useTruthTime;
}
Expand Down Expand Up @@ -137,9 +143,9 @@ public void setFitAlgorithm(String fitAlgorithm) {
else if (fitAlgorithm.equals("Linear"))
fitter = new ShaperLinearFitAlgorithm(1);
else if (fitAlgorithm.equals("PileupAlways"))
fitter = new ShaperPileupFitAlgorithm(1.0);
fitter = new ShaperPileupFitAlgorithm(1.0,this.doOldDT);
else if (fitAlgorithm.equals("Pileup"))
fitter = new ShaperPileupFitAlgorithm(this.chiSqrThresh);
fitter = new ShaperPileupFitAlgorithm(this.chiSqrThresh,this.doOldDT);
else
throw new RuntimeException("Unrecognized fitAlgorithm: " + fitAlgorithm);
}
Expand Down

0 comments on commit 0ae2b12

Please sign in to comment.