Skip to content

Conversation

rbailhac
Copy link
Collaborator

Use populateExternalHists

Copy link

github-actions bot commented Aug 28, 2025

O2 linter results: ❌ 14 errors, ⚠️ 0 warnings, 🔕 0 disabled

@github-actions github-actions bot changed the title Other format for trigger normalization histos [PWGEM] Other format for trigger normalization histos Aug 28, 2025
@@ -85,14 +100,14 @@ struct skimmerOTS {
if (mRunNumber == bc.runNumber()) {
return;
}

zorro.setBaseCCDBPath(cfgCcdbPathZorro.value);
Copy link
Collaborator

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());
Copy link
Collaborator

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)

Copy link
Collaborator Author

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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you keep hNInspectedTVX?

Copy link
Collaborator Author

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.

@dsekihat
Copy link
Collaborator

Dear @rbailhac , Thank you for your PR. Please find my comments above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants