Skip to content

Commit

Permalink
Update ShaperPileupFitAlgorithm.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rodwyer100 authored Jun 28, 2024
1 parent 5f50c7b commit 5b15ba6
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public ShaperPileupFitAlgorithm() {
}

public ShaperPileupFitAlgorithm(double threshold,int DT) {
//System.out.print("Statement in Constructor");
//System.out.print(threshold);
refitThreshold = threshold;
doOldDT = DT;
}
Expand All @@ -33,15 +31,11 @@ public void setFitTimeMinimizer(String fitTimeMinimizer) {

//===> public Collection<ShapeFitParameters> fitShape(RawTrackerHit rth, HPSSVTCalibrationConstants.ChannelConstants constants) {
public Collection<ShapeFitParameters> fitShape(RawTrackerHit rth, PulseShape shape) {
//System.out.print(refitThreshold);
//===> Collection<ShapeFitParameters> fittedPulses = onePulseFitter.fitShape(rth, constants);
Collection<ShapeFitParameters> fittedPulses = onePulseFitter.fitShape(rth, shape);
double singlePulseChiProb = fittedPulses.iterator().next().getChiProb();
//double time1 = fittedPulses.iterator().next().getT0();
totalFits++;
if (singlePulseChiProb < refitThreshold) {
refitAttempts++;
//===> Collection<ShapeFitParameters> doublePulse = twoPulseFitter.fitShape(rth, constants);
Collection<ShapeFitParameters> doublePulse = twoPulseFitter.fitShape(rth, shape);
ShapeFitParameters Hello = doublePulse.iterator().next();
double doublePulseChiProb = Hello.getChiProb();
Expand Down

0 comments on commit 5b15ba6

Please sign in to comment.