21 deconv_fitter_(nullptr),
22 peak_fitterA_(nullptr),
23 peak_fitterB_(nullptr),
24 latencyCode_(latencyCode),
60 <<
" NULL pointer to Analysis object!";
65 samp_ = dynamic_cast<SamplingAnalysis*>(
tmp);
68 <<
" NULL pointer to derived Analysis object!";
83 std::vector<TH1*>::const_iterator ihis =
histos.begin();
84 for (; ihis !=
histos.end(); ihis++) {
106 histo_.second = (*ihis)->GetName();
116 <<
" NULL pointer to derived Analysis object!";
120 TProfile* prof = (TProfile*)(
histo_.first);
127 prof->SetErrorOption(
" ");
131 for (
int i = 0;
i < prof->GetNbinsX(); ++
i) {
132 if (prof->GetBinEntries(
i) > 0)
133 prof->SetBinError(
i, prof->GetBinError(
i) /
sqrt(prof->GetBinEntries(
i)));
148 float max = prof->GetBinCenter(prof->GetMaximumBin());
149 float ampl = prof->GetMaximum();
163 float max = prof->GetBinCenter(prof->GetMaximumBin());
164 float ampl = prof->GetMaximum();
205 prof->GetXaxis()->SetLimits(prof->GetXaxis()->GetXmin() - prof->GetBinWidth(1) / 2.,
206 prof->GetXaxis()->GetXmax() - prof->GetBinWidth(1) / 2.);