-
Notifications
You must be signed in to change notification settings - Fork 158
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
Conversation
|
Looks ok to me, please, remove draft. |
Barthelemy
left a comment
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.
thank you for your PR. Please see and address my comments.
regards,
| msg->SetTextSize(0.03); | ||
| msg->SetNDC(); | ||
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; |
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.
the same piece of code is repeated again and again. Please extract it in a method.
| h->GetListOfFunctions()->Add(msg->Clone()); | ||
| initialMessagePos -= 0.04; | ||
| } | ||
| if (h->GetBinContent(3) > 0) { |
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.
this series of if can probably be replaced by a loop but that's up to you.
| h->SetStats(kFALSE); | ||
| h->GetYaxis()->SetRangeUser(0, h->GetMaximum() * 1.5); | ||
| } else if (mo->getName() == "decodeError") { | ||
| auto* h = dynamic_cast<TH1D*>(mo->getObject()); |
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.
h can be null. Please check for it and return if needed.
Modules/CTP/src/qc-ctp.json
Outdated
| }, | ||
| "conditionDB": { | ||
| "url": "ccdb-test.cern.ch:8080" | ||
| "url": "alice-ccdb.cern.ch" |
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.
as these files are used for test, I wouldn't advise pointing to production.
@lietava please check the changes