-
Notifications
You must be signed in to change notification settings - Fork 158
MID:: TaskDigits : Add CRU,EP, GBTRate #2539
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,37 +248,76 @@ void DigitsQcCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkRes | |
| if (mo->getName().find(lbHistoName) != std::string::npos) { | ||
| // This matches "LocalBoardsMap*" | ||
| auto histo = dynamic_cast<TH2F*>(mo->getObject()); | ||
| if (mo->getName() == lbHistoName) { | ||
| // This is LocalBoardsMap and it was already scaled in the checker | ||
| if (!checkResult.getFlags().empty()) { | ||
| mHistoHelper.addLatex(histo, 0.12, 0.72, color, checkResult.getFlags().front().second.c_str()); | ||
| if (histo) { | ||
| if (mo->getName() == lbHistoName) { | ||
| // This is LocalBoardsMap and it was already scaled in the checker | ||
| if (!checkResult.getFlags().empty()) { | ||
| mHistoHelper.addLatex(histo, 0.12, 0.72, color, checkResult.getFlags().front().second.c_str()); | ||
| } | ||
| mHistoHelper.addLatex(histo, 0.3, 0.32, color, fmt::format("Quality::{}", checkResult.getName())); | ||
| histo->SetMaximum(zcontoursLoc4.back()); | ||
| histo->SetContour(zcontoursLoc4.size(), zcontoursLoc4.data()); | ||
| } else { | ||
| mHistoHelper.normalizeHistoTokHz(histo); | ||
| histo->SetMaximum(zcontoursLoc.back()); | ||
| histo->SetContour(zcontoursLoc.size(), zcontoursLoc.data()); | ||
| } | ||
| mHistoHelper.addLatex(histo, 0.3, 0.32, color, fmt::format("Quality::{}", checkResult.getName())); | ||
| histo->SetMaximum(zcontoursLoc4.back()); | ||
| histo->SetContour(zcontoursLoc4.size(), zcontoursLoc4.data()); | ||
| } else { | ||
| mHistoHelper.normalizeHistoTokHz(histo); | ||
| histo->SetMaximum(zcontoursLoc.back()); | ||
| histo->SetContour(zcontoursLoc.size(), zcontoursLoc.data()); | ||
| mHistoHelper.updateTitleWithNTF(histo); | ||
| histo->SetStats(0); | ||
| } | ||
| mHistoHelper.updateTitleWithNTF(histo); | ||
| histo->SetStats(0); | ||
| } else { | ||
|
|
||
| // Strips Display | ||
| if (mo->getName().find("BendHitsMap") != std::string::npos) { | ||
| // This matches both [N]BendHitsMap* | ||
| int maxStrip = 20; // 20kHz Max Display | ||
| auto histo = dynamic_cast<TH2F*>(mo->getObject()); | ||
| } else if (mo->getName().find("BendHitsMap") != std::string::npos) { // Strips Display | ||
| // This matches both [N]BendHitsMap* | ||
| int maxStrip = 20; // 20kHz Max Display | ||
| auto histo = dynamic_cast<TH2F*>(mo->getObject()); | ||
| if (histo) { | ||
| mHistoHelper.normalizeHistoTokHz(histo); | ||
| histo->SetMaximum(zcontoursStrip.back()); | ||
| histo->SetContour(zcontoursStrip.size(), zcontoursStrip.data()); | ||
| histo->SetStats(0); | ||
| } else if (mo->getName() == "Hits") { | ||
| auto histo = dynamic_cast<TH1F*>(mo->getObject()); | ||
| } | ||
| } else if (mo->getName() == "Hits") { | ||
| auto histo = dynamic_cast<TH1F*>(mo->getObject()); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok thanks for these changes and sorry for my late response.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that we are starting physics, we will perform upgrades more opportunistically, i.e. when we are given a slot by RC. I do not know what is our next slot.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok thanks again
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ValerieRamillien are you planning to implement these proposed changes?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for the delay. I just did it. |
||
| if (histo) { | ||
| mHistoHelper.normalizeHistoTokHz(histo); | ||
| histo->SetStats(0); | ||
| } | ||
| } else if (mo->getName() == "GBTRate") { | ||
| auto histo = dynamic_cast<TH1F*>(mo->getObject()); | ||
| if (histo) { | ||
| // if (mHistoHelper.getNTFs() > 0) | ||
| mHistoHelper.normalizeHistoTokHz(histo); | ||
| histo->SetMinimum(0.); | ||
| TString XLabel[32] = { "5R0", "5R1", "4R0", "4R1", "1R0", "1R1", "0R0", "0R1", | ||
| "2R0", "2R1", "3R0", "3R1", "7R0", "7R1", "6R0", "6R1", | ||
| "5L0", "5L1", "4L0", "4L1", "1L0", "1L1", "0L0", "0L1", | ||
| "2L0", "2L1", "3L0", "3L1", "7L0", "7L1", "6L0", "6L1" }; | ||
| for (Int_t i = 0; i < 32; ++i) | ||
| histo->GetXaxis()->SetBinLabel(i + 1, XLabel[i]); | ||
| histo->GetXaxis()->SetLabelSize(0.07); | ||
| histo->GetXaxis()->SetLabelColor(4); | ||
| } | ||
| } else if (mo->getName() == "EPRate") { | ||
| auto histo = dynamic_cast<TH1F*>(mo->getObject()); | ||
| if (histo) { | ||
| mHistoHelper.normalizeHistoTokHz(histo); | ||
| histo->SetMinimum(0.); | ||
| histo->GetXaxis()->SetBinLabel(1, "CRU0(990)-EP0"); | ||
| histo->GetXaxis()->SetBinLabel(2, "CRU0(990)-EP1"); | ||
| histo->GetXaxis()->SetBinLabel(3, "CRU1(974)-EP0"); | ||
| histo->GetXaxis()->SetBinLabel(4, "CRU1(974)-EP1"); | ||
| histo->GetXaxis()->SetLabelSize(0.07); | ||
| histo->GetXaxis()->SetLabelColor(4); | ||
| } | ||
| } else if (mo->getName() == "CRURate") { | ||
| auto histo = dynamic_cast<TH1F*>(mo->getObject()); | ||
| if (histo) { | ||
| mHistoHelper.normalizeHistoTokHz(histo); | ||
| histo->SetMinimum(0.); | ||
| histo->GetXaxis()->SetBinLabel(1, "CRU0 (990)"); | ||
| histo->GetXaxis()->SetBinLabel(2, "CRU1 (974)"); | ||
| histo->GetXaxis()->SetLabelSize(0.07); | ||
| histo->GetXaxis()->SetLabelColor(4); | ||
| } | ||
| } | ||
| } | ||
| mHistoHelper.updateTitle(dynamic_cast<TH1*>(mo->getObject()), mHistoHelper.getCurrentTime()); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check for
nullptrin case the cast was not successful