29 <<
"[FedCablingAlgorithm::" << __func__ <<
"]" 30 <<
" NULL pointer to Analysis object!";
35 if ( histos.size() != 2 ) {
43 std::vector<TH1*>::const_iterator ihis = histos.begin();
44 for ( ; ihis != histos.end(); ihis++ ) {
47 if ( !(*ihis) ) {
continue; }
59 hFedId_.second = (*ihis)->GetName();
62 hFedCh_.second = (*ihis)->GetName();
77 <<
"[FedCablingAlgorithm::" << __func__ <<
"]" 78 <<
" NULL pointer to base Analysis object!";
86 <<
"[FedCablingAlgorithm::" << __func__ <<
"]" 87 <<
" NULL pointer to derived Analysis object!";
101 TProfile* fedid_histo =
dynamic_cast<TProfile*
>(
hFedId_.first);
102 if ( !fedid_histo ) {
107 TProfile* fedch_histo =
dynamic_cast<TProfile*
>(
hFedCh_.first);
108 if ( !fedch_histo ) {
122 for ( uint16_t ifed = 0; ifed < fedid_histo->GetNbinsX(); ifed++ ) {
123 if ( fedid_histo->GetBinEntries(ifed+1) ) {
124 if ( fedid_histo->GetBinContent(ifed+1) > max &&
127 max = fedid_histo->GetBinContent(ifed+1);
135 for ( uint16_t ichan = 0; ichan < fedch_histo->GetNbinsX(); ichan++ ) {
136 if ( fedch_histo->GetBinEntries(ichan+1) ) {
137 if ( fedch_histo->GetBinContent(ichan+1) > max &&
140 max = fedch_histo->GetBinContent(ichan+1);
144 if ( max > weight ) { weight =
max; }
static const char feDriver_[]
static const char unexpectedTask_[]
const uint32_t & fedKey() const
Utility class that holds histogram title.
A container class for generic run and event-related info, information required by the commissioning a...
Histogram-based analysis for connection loop.
static const char numberOfHistos_[]
static const float threshold_
static const char unexpectedExtraInfo_[]
static const char noCandidates_[]
const uint32_t & key() const
static const char mlCommissioning_[]
uint32_t extractFedKey(const TH1 *const )
virtual void addErrorCode(const std::string &error)
static const char fedChannel_[]
const uint16_t & feUnit() const
static const uint16_t invalid_
std::vector< std::vector< double > > tmp
const uint16_t & feChan() const
Abstract base for derived classes that provide analysis of commissioning histograms.
void extract(const std::vector< TH1 * > &)
CommissioningAnalysis *const anal() const
static const char nullPtr_[]