Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing FEDFatal ME and reportSummaryMap in DQM for 8_0 #15493

Merged
merged 1 commit into from Aug 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 6 additions & 8 deletions DQMServices/Components/src/DQMFEDIntegrityClient.cc
Expand Up @@ -269,26 +269,24 @@ void DQMFEDIntegrityClient::fillHistograms(void){

// cout << "FED ID range : " << xmin << " - " << xmax << endl;

float binentry = 0.;
for(int bin = 1; bin <= Nbins ; ++bin) {
int id = xmin+bin;
entry += rootHisto->GetBinContent(bin);
binentry = rootHisto->GetBinContent(bin);
entry += binentry;
norm += rootHistoNorm->GetBinContent(bin);
// cout << *fat << "errors = " << entry << "\tnorm = " << norm << endl;
// cout << "Bin content : " << entry << endl;
if(entry > 0.) FedFatal->setBinContent(id, entry);
FedFatal->setBinContent(id, binentry);
}

}
}

if (norm > 0) SummaryContent[k] = 1.0 - entry/norm;
// cout << "Summary Content : " << SummaryContent[k] << endl;
reportSummaryContent[k]->Fill(SummaryContent[k]);
float threshold = 1.;
if (k==2 || k==3) // for EE and EB only show yellow when more than 1% errors.
threshold = 0.99;
if (SummaryContent[k] < threshold && SummaryContent[k] >=0.95)
SummaryContent[k] = 0.949;
if ( (k==2 || k==3) // for EE and EB only show yellow when more than 1% errors.
&& SummaryContent[k] >=0.95 && SummaryContent[k] < 0.99 ) SummaryContent[k] = 0.949;
reportSummaryMap->setBinContent(1, nSubsystems-k, SummaryContent[k]);
sum = sum + SummaryContent[k];

Expand Down