-
Notifications
You must be signed in to change notification settings - Fork 164
CTP: Input alinement check #2526
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 1 commit
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 |
|---|---|---|
|
|
@@ -137,6 +137,12 @@ Quality RawDataReaderCheck::check(std::map<std::string, std::shared_ptr<MonitorO | |
| result.set(setQualityResult(mVecIndexBad, mVecIndexMedium)); | ||
| } | ||
| mHistClassRatioPrevious = (TH1D*)h->Clone(); | ||
| } else if (mo->getName() == "decodeError") { | ||
| if (h->GetEntries() > 0) { | ||
| result.set(Quality::Bad); | ||
| } else { | ||
| result.set(Quality::Good); | ||
| } | ||
| } else { | ||
| ILOG(Info, Support) << "Unknown histo:" << moName << ENDM; | ||
| } | ||
|
|
@@ -255,6 +261,77 @@ void RawDataReaderCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality che | |
| } | ||
| h->SetStats(kFALSE); | ||
| h->GetYaxis()->SetRangeUser(0, h->GetMaximum() * 1.5); | ||
| } else if (mo->getName() == "decodeError") { | ||
| auto* h = dynamic_cast<TH1D*>(mo->getObject()); | ||
| if (checkResult != Quality::Null) { | ||
| msg = std::make_shared<TLatex>(0.2, 0.85, Form("Quality: %s", (checkResult.getName()).c_str())); | ||
| if (checkResult == Quality::Bad) { | ||
| msg->SetTextColor(kRed); | ||
| } else if (checkResult == Quality::Good) { | ||
| msg->SetTextColor(kGreen + 1); | ||
| } | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| } | ||
| if (checkResult == Quality::Bad) { | ||
| float initialMessagePos = 0.8; | ||
| if (h->GetBinContent(1) > 0) { | ||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "Failed to extract RDD"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
|
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. the same piece of code is repeated again and again. Please extract it in a method. |
||
| } | ||
| if (h->GetBinContent(3) > 0) { | ||
|
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. this series of |
||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "Two CTP IRs with the same ts"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
| } | ||
| if (h->GetBinContent(4) > 0) { | ||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "Two digits with the same ts"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
| } | ||
| if (h->GetBinContent(5) > 0) { | ||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "Two CTP class masks with the same ts"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
| } | ||
| if (h->GetBinContent(6) > 0) { | ||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "Two digits (Class Mask) with the same ts"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
| } | ||
| if (h->GetBinContent(7) > 0) { | ||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "Trigger class without input"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
| } | ||
| if (h->GetBinContent(8) > 0) { | ||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "CTP class mask not compatible with input class mask"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
| } | ||
| if (h->GetBinContent(9) > 0) { | ||
| msg = std::make_shared<TLatex>(0.2, initialMessagePos, "CTP class not found in the digit"); | ||
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| } | ||
| } | ||
| } else { | ||
| auto* h = dynamic_cast<TH1D*>(mo->getObject()); | ||
| h->SetStats(kFALSE); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ | |
| "url": "" | ||
| }, | ||
| "conditionDB": { | ||
| "url": "ccdb-test.cern.ch:8080" | ||
| "url": "alice-ccdb.cern.ch" | ||
|
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. as these files are used for test, I wouldn't advise pointing to production. |
||
| }, | ||
| "infologger": { "": "Configuration of the Infologger (optional).", | ||
| "filterDiscardDebug": "false", "": "Set to true to discard debug and trace messages (default: false)", | ||
|
|
@@ -48,22 +48,22 @@ | |
| "ccdbName": "https://alice-ccdb.cern.ch", | ||
| "MBclassName" : "CMTVX-B-NOPF", | ||
| "MB1inputName" : "MTVX", | ||
| "MB2inputName" : "MTVA" | ||
| "MB2inputName" : "MVBA" | ||
| } | ||
| }, | ||
| "PHYSICS": { | ||
| "default": { | ||
| "MBclassName" : "CMTVX-B-NOPF", | ||
| "MB1inputName" : "MTVX", | ||
| "MB2inputName" : "MTVA" | ||
| "MB2inputName" : "MVBA" | ||
| }, | ||
| "PROTON-PROTON": { | ||
| "MBclassName" : "CMTVX-B-NOPF", | ||
| "MB1inputName" : "MTVX", | ||
| "MB2inputName" : "MTVA" | ||
| }, | ||
| "Pb-Pb": { | ||
| "MBclassName" : "CMTVX-B-NOPF", | ||
| "MBclassName" : "CMTCE-B-NOPF", | ||
| "MB1inputName" : "MTSC", | ||
| "MB2inputName" : "MTCE" | ||
| } | ||
|
|
@@ -81,14 +81,14 @@ | |
| "dataSource": [{ | ||
| "type": "Task", | ||
| "name": "CTPRawData", | ||
| "MOs": ["bcMinBias1","bcMinBias2","inputs","classes","inputRatio","classRatio"] | ||
| "MOs": ["bcMinBias1","bcMinBias2","inputs","classes","inputRatio","classRatio","decodeError"] | ||
| }], | ||
| "checkParameters": { | ||
| "thresholdRateBad": "3", | ||
| "thresholdRateMedium": "2", | ||
| "thresholdRateRatioBad": "3", | ||
| "thresholdRateRatioMedium": "2", | ||
| "mNSigBC": "2" | ||
| "nSigmaBC": "1" | ||
| } | ||
| } | ||
| } | ||
|
|
||
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.
hcan be null. Please check for it and return if needed.