// compareHistogramClassVector.push_back(runs[runi]->histogramwoRTS->normalized);
// compareHistogramClassVector2.push_back(runs[runi]->histogramwoRTS);
// compareHistogramClassVector.push_back(runs[runi]->histogram->normalized);
- compareHistogramClassVector2.push_back(runs[runi]->histogramwoRTS->normalized);
- compareHistogramClassVector.push_back(runs[runi]->histogram->normalized);
+// compareHistogramClassVector2.push_back(runs[runi]->histogramwoRTS->normalized);
+ compareHistogramClassVector.push_back(runs[runi]->histogramwoRTS->normalized);
// runs[runi]->plot1DHistogram(runs[runi]->histogram, runs[runi]->histogramwoRTS->pixeltimefired, "", 0);
//compareHistogramClassVector.push_back(runs[runi]->histogramwoRTS);
// compareHistogramClassVector2.push_back(runs[runi]->histogramthreshold);
// runs[runi]->plot1DHistogram(runs[runi]->histogram->normalized->calibrated, runs[runi]->processed->fNoiseInfo.fPedestals, "", 1);
// runs[runi]->plot1DHistogram(runs[runi]->histogram->normalized, runs[runi]->histogramwoRTS->normalized->calibrated->Seed, "landau", 1, 1, 0, 200);
// runs[runi]->plot1DHistogram(runs[runi]->histogram, runs[runi]->histogramwoRTS->pixeltimefiredsorted, "", 0);
-// runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->normalized->calibrated, runs[runi]->histogramwoRTS->normalized->calibrated->Seed, "landau", true);
+
+// Integralberechnung vom Veto Peak
+ runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->normalized, runs[runi]->histogramwoRTS->normalized->Seed, "GaussTail", true);
+
// runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->normalized->calibrated, runs[runi]->histogramwoRTS->normalized->calibrated->Sum, "gaus", true);
// // Uncomment below to do analysis without RTS pixel
// cout << colorred << gMinuit->fCstatu.Data() << endlr;
} while (gMinuit->fCstatu.Contains("FAILED") && fittries++ < 8);
posMax = histogrampointer->GetXaxis()->GetBinCenter(histogrampointer->GetMaximumBin()); // Methode 1
- integralPeak = histogrampointer->Integral(min+fittries*min/20, histogrampointer->GetXaxis()->FindBin(posMaxValHist));
+ integralPeak = histogrampointer->Integral(min+fittries*min/20, histogrampointer->GetXaxis()->FindBin(posMaxValHist), "width");
// if (verbose)
// {
// cout << coloryellow << "min " << histogrampointer->GetXaxis()->GetBinCenter( min ) << endlr;
} else {
histogrampointer->Fit(fitFunc, "N,Q,W", "", noiseborder, posMaxValHist);
noiseborder = FindBorderToPeak(histogrampointer, noiseborder,fitFunc->GetParameter(1), verbose); // starting point of histogram integration
- integralPeak = histogrampointer->Integral(histogrampointer->GetXaxis()->FindBin(noiseborder), histogrampointer->GetXaxis()->FindBin(posMaxValHist));
+ integralPeak = histogrampointer->Integral(histogrampointer->GetXaxis()->FindBin(noiseborder), histogrampointer->GetXaxis()->FindBin(posMaxValHist), "width");
posMax = fitFunc->GetMaximumX(); // Methode 2
fitFunc->SetLineStyle(1); // normal for the following fits
if (verbose)
//parameters[7] = FindBorderToPeak(histogrampointer, noiseborder,def_peakcenter, verbose); // starting point of histogram integration
parameters[7] = parameters[1] - 2*parameters[2] ; // starting point of histogram integration
parameters[8] = parameters[1] + 2*parameters[2] ; // end point of histogram integration
- parameters[6] = histogrampointer->Integral(histogrampointer->GetXaxis()->FindBin( parameters[1] - 2*parameters[2] ), histogrampointer->GetXaxis()->FindBin( parameters[1] + 2*parameters[2])); // integral value of histogram (NOT fit)
+ parameters[6] = histogrampointer->Integral(histogrampointer->GetXaxis()->FindBin( parameters[1] - 2*parameters[2] ), histogrampointer->GetXaxis()->FindBin( parameters[1] + 2*parameters[2]), "width"); // integral value of histogram (NOT fit)
TF1 *bgfct = new TF1("f1","[0] +[1]*x",0,posMaxValHist);
bgfct->SetParameters(parameters[5],parameters[4]);
parameters[6] -= integralbg;
if (verbose) {
+ cout << colorcyan << "Depletion voltage: " << labbook->depletionV << endlr;
cout << colorcyan << "Integral from bin : " << histogrampointer->FindBin(parameters[7]) << " to " << histogrampointer->GetXaxis()->FindBin(parameters[8]) << endlr;
- cout << colorcyan << "Integral from val : " << parameters[7] << " to " << parameters[8] << endlr;
- cout << colorcyan << "Integral value: " << parameters[6] << endlr;
- cout << colorcyan << "Integral bg: " << integralbg << endlr;
+ cout << colorcyan << "Integral from val : " << parameters[7] << " to " << parameters[8] << endlr;
+ cout << colorcyan << "Integral bg: " << integralbg << endlr;
+ cout << colorcyan << "Integral value without bg: " << parameters[6] << endlr;
+ cout << colorcyan << "Integral value with bg: " << parameters[6] + integralbg << endlr;
+ cout << colorcyan << "Gauss Sigma: " << parameters[2] << endlr;
+ cout << colorcyan << "Number of events : " << frames_found << endlr;
}
// DEBUG
}
}
}
-// sr90IntegralVal = histogrampointer->integral(thresholdbincurcandidate,histogrampointer->GetNbinsX(), sr90IntegralErr);
- sr90IntegralVal = histogrampointer->Integral(thresholdbincurcandidate,histogrampointer->GetNbinsX());
-// histogrampointer->Integral(min+fittries*min/20, histogrampointer->GetXaxis()->FindBin(posMaxValHist));
+ sr90IntegralVal = histogrampointer->Integral(thresholdbincurcandidate,histogrampointer->GetNbinsX(), "width");
+// histogrampointer->Integral(min+fittries*min/20, histogrampointer->GetXaxis()->FindBin(posMaxValHist), "width");
// for (
// cout << "Integrate from bin " << thresholdbincurcandidate << " to " << histogrampointer->GetNbinsX() << endl;
// sr90IntegralErr /= sr90IntegralVal/100;