-
Notifications
You must be signed in to change notification settings - Fork 151
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
GLO: Change to TH1Ratio plot #2393
Conversation
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
Hello @f3sch , I think that yes, after an QualityControl/Framework/src/TaskRunner.cxx Lines 362 to 378 in ad246d7
Chiara |
@chiarazampolli super, thanks! |
Short answer - yes. The code that Chiara cited shows QualityControl/Framework/src/TaskRunner.cxx Line 201 in befd905
|
const Double_t e1 = ratio->getNum()->GetBinError(iBin), e1sq = e1 * e1; | ||
const Double_t e2 = ratio->getDen()->GetBinError(iBin), e2sq = e2 * e2; | ||
if (b1 != b2) { | ||
ratio->SetBinError(iBin, TMath::Sqrt(TMath::Abs(((1. - 2. * b1 / b2) * e1sq + b1sq * e2sq / b2sq) / b2sq))); |
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.
Do you know what happens to the errors when two objects are merged?
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.
Ah your right, when merged this would be done incorrectly... This should probably be done in the TH1Ratio::update under some flag. Which I guess I can do but do not know if I should?
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.
I think it's fine, but please do it in a separate PR and I will also ask Andrea to have a look.
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.
sure, dropped it for now.
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
Changes from TH1 to TH1Ratio to get a correct efficiency after the mergers. One question I have if after each endOfCycle also reset is called?
Tested with:
Output on qcg-test:
Hopefully everything works now :)
Nota Bene: I added a manual calculation of binomial errors for the efficiency errors (which we might not care about) since TH1Ratio does not support it.