21 deconv_fitter_(nullptr),
22 peak_fitterA_(nullptr),
23 peak_fitterB_(nullptr),
24 latencyCode_(latencyCode),
60 <<
" NULL pointer to Analysis object!";
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.);
void correctProfile(TProfile *profile, float SoNcut=3.) const
CommissioningAnalysis *const anal() const
static const char unexpectedTask_[]
Analysis for latency run.
double fdeconv_convoluted(double *x, double *par)
void extract(const std::vector< TH1 *> &) override
Utility class that holds histogram title.
sistrip::RunType runType_
static const char numberOfHistos_[]
void pruneProfile(TProfile *profile) const
void correctBinning(TProfile *prof) const
double fpeak_convoluted(double *x, double *par)
uint32_t extractFedKey(const TH1 *const)
static const char mlCommissioning_[]
virtual void addErrorCode(const std::string &error)
const uint32_t & fedKey() const
float limit(float SoNcut) const
float correctMeasurement(float mean, float SoNcut=3.) const
Abstract base for derived classes that provide analysis of commissioning histograms.
Log< level::Warning, false > LogWarning
sistrip::Granularity granularity_