compareHistogramVectorRTSSeed.push_back(runs[runi]->histogramwoRTS->normalized->Seed);
compareHistogramVectorRTSSum.push_back(*(runs[runi]->histogramwoRTS->normalized->Sum));
- runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->pixeltimefiredDistrib, "gaus", false, true);
- runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->LeakageCurrentInPixelSorted);
+ runs[runi]->plot1DHistogram(runs[runi]->histogram->pixeltimefiredDistrib, "gaus", false, true);
+ runs[runi]->plot1DHistogram(runs[runi]->histogram->LeakageCurrentInPixelSorted);
if (runi+1 == numberRuns) {
compareHistogramVectorVector.push_back(compareHistogramVectorRTSSeed);
if (histogramwoRTS != 0) {
constructUpdateString(&sqlupdatequery, "RTSpixel", histogramwoRTS->normalized->RTSpixel.size());
constructUpdateString(&sqlupdatequery, "RTSpixel_percentage", histogramwoRTS->normalized->percentageofRTSpixel);
- constructUpdateString(&sqlupdatequery, "LeakageCurMedADC", histogramwoRTS->medianLeakageCurrent);
- constructUpdateString(&sqlupdatequery, "LeakageCurAvgADC", histogramwoRTS->avgLeakageCurrentInChip);
+ constructUpdateString(&sqlupdatequery, "LeakageCurMedADC", histogram->medianLeakageCurrent);
+ constructUpdateString(&sqlupdatequery, "LeakageCurAvgADC", histogram->avgLeakageCurrentInChip);
if (histogramwoRTS->calibrated != 0) {
- constructUpdateString(&sqlupdatequery, "LeakageCurAvgE", histogramwoRTS->calibrated->avgLeakageCurrentInChip);
- constructUpdateString(&sqlupdatequery, "LeakageCurfA", histogramwoRTS->calibrated->medianLeakageCurrent);
- constructUpdateString(&sqlupdatequery, "LeakageCurfA+", histogramwoRTS->calibrated->medianLeakageCurrentPlus);
- constructUpdateString(&sqlupdatequery, "LeakageCurfA-", histogramwoRTS->calibrated->medianLeakageCurrentMinus);
+ constructUpdateString(&sqlupdatequery, "LeakageCurAvgE", histogram->calibrated->avgLeakageCurrentInChip);
+ constructUpdateString(&sqlupdatequery, "LeakageCurfA", histogram->calibrated->medianLeakageCurrent);
+ constructUpdateString(&sqlupdatequery, "LeakageCurfA+", histogram->calibrated->medianLeakageCurrentPlus);
+ constructUpdateString(&sqlupdatequery, "LeakageCurfA-", histogram->calibrated->medianLeakageCurrentMinus);
constructUpdateString(&sqlupdatequery, "CalibrationPeak", Fe55run.posVeto, 4, -1, 1000);
}
}