27 <<
" NULL pointer to Analysis object!";
42 std::vector<TH1*>::const_iterator ihis =
histos.begin();
43 for (; ihis !=
histos.end(); ihis++) {
58 histo_.second = (*ihis)->GetName();
67 <<
" NULL pointer to base Analysis object!";
75 <<
" NULL pointer to derived Analysis object!";
84 TProfile*
histo =
dynamic_cast<TProfile*
>(
histo_.first);
91 uint16_t zero_entries = 0;
92 uint16_t
nbins =
static_cast<uint16_t
>(
histo->GetNbinsX());
95 std::vector<float> entries;
98 entries.reserve(
nbins);
102 for (uint16_t ibin = 0; ibin <
nbins; ibin++) {
105 entries.push_back(
histo->GetBinEntries(ibin + 1));
149 std::vector<float>
high;
150 std::vector<float>
low;
151 for (uint16_t ibin = 0; ibin <
nbins; ibin++) {
178 for (uint16_t ibin = 0; ibin <
low.size(); ibin++) {
197 anal->highMean_ = 0.;
199 for (uint16_t ibin = 0; ibin <
high.size(); ibin++) {
237 anal->dcuHardId_ = 0;
241 anal->dcuHardId_ += 0xFFFFFFFF & (1 << ibin);
245 if (!
anal->dcuHardId_) {
254 anal->lldCh_ += (0x3 & (1 << ibin));
CommissioningAnalysis *const anal() const
static const char unexpectedTask_[]
Utility class that holds histogram title.
static const uint32_t invalid32_
static const char numberOfHistos_[]
static const uint16_t nBitsForDcuId_
static const uint16_t valid_
static const char numberOfBins_[]
uint32_t extractFedKey(const TH1 *const)
Histogram-based analysis for connection loop.
static const char mlCommissioning_[]
void extract(const std::vector< TH1 *> &) override
virtual void addErrorCode(const std::string &error)
static const char noEntries_[]
const uint32_t & fedKey() const
static const uint16_t invalid_
FastFedCablingAlgorithm()
static const char smallDataRange_[]
const Histo & histo() const
Abstract base for derived classes that provide analysis of commissioning histograms.
Log< level::Warning, false > LogWarning
static const char nullPtr_[]
static const float threshold_
static const uint16_t nBitsForLldCh_