-
Notifications
You must be signed in to change notification settings - Fork 575
[PWGEM] Other format for trigger normalization histos #12771
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
base: master
Are you sure you want to change the base?
Conversation
O2 linter results: ❌ 14 errors, |
@@ -85,14 +100,14 @@ struct skimmerOTS { | |||
if (mRunNumber == bc.runNumber()) { | |||
return; | |||
} | |||
|
|||
zorro.setBaseCCDBPath(cfgCcdbPathZorro.value); |
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 is not needed anymore, because zorro objects have been moved to common directory.
@@ -66,7 +76,12 @@ struct skimmerOTS { | |||
hEventCounter->GetXaxis()->SetBinLabel(idx + 2, swt_names[idx].data()); | |||
} | |||
|
|||
registry.add("hNInspectedTVX", "N inspected TVX;run number;N_{TVX}", kTProfile, {{80000, 520000.5, 600000.5}}, true); | |||
fStatsList.setObject(new TList()); |
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.
Can you move histograms under registry?
One can do following:
std::shared_pt h1; // as a data member;
h1 = registry.add("name", "title", kTH1D, {{your binning}}); // in init
zorro.populateExternalHists(XXXX, reinterpret_cast<TH1D*>h1, YYY)
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.
Hi Daiki, I am sorry but by me this solution did not compile. It was complaining about a impossible convertion of a std::shared_pt into reinterpret_cast<TH2D*>.
@@ -66,7 +76,12 @@ struct skimmerOTS { | |||
hEventCounter->GetXaxis()->SetBinLabel(idx + 2, swt_names[idx].data()); | |||
} | |||
|
|||
registry.add("hNInspectedTVX", "N inspected TVX;run number;N_{TVX}", kTProfile, {{80000, 520000.5, 600000.5}}, true); |
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.
can you keep hNInspectedTVX?
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 number of insptected TVX is in the zorro info histo, so that to avoid duplication of information I removed it.
Dear @rbailhac , Thank you for your PR. Please find my comments above. |
Use populateExternalHists