Skip to content
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

Enable TrkPID QC #2036

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Enable TrkPID QC #2036

merged 3 commits into from
Nov 30, 2023

Conversation

njacazio
Copy link
Collaborator

@njacazio njacazio marked this pull request as draft November 16, 2023 17:37
@njacazio njacazio marked this pull request as ready for review November 20, 2023 11:41
@@ -99,72 +106,7 @@ void ITSTPCMatchingTask::initialize(o2::framework::InitContext& /*ctx*/)

mMatchITSTPCQC.initDataRequest();
mMatchITSTPCQC.init();

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chiarazampolli I changed the way we publish the histograms so that we don't need to duplicate the PRs. I can avoid it if you think it's unecessary

@@ -42,6 +42,13 @@ void ITSTPCMatchingTask::initialize(o2::framework::InitContext& /*ctx*/)
}
}

if (auto param = mCustomParameters.find("useTrkPID"); param != mCustomParameters.end()) {
ILOG(Debug, Devel) << "Custom parameter - useTrkPID (= add plots for tracking PID): " << param->second << ENDM;
if (param->second == "true" || param->second == "True" || param->second == "TRUE") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

bool stringUtils::decodeBool(const std::string& value) does the same as this condition.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks, I implemented it! Also, while looking for decodeBool in the QualityControl I found several implementations, maybe this can be unified

getObjectsManager()->startPublishing(mMatchITSTPCQC.getHistoTimeResVsPt());

getObjectsManager()->startPublishing(mMatchITSTPCQC.getHistoDCAr());
mMatchITSTPCQC.publishHistograms(getObjectsManager());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is publishHistograms used somewhere else ? or just in QC ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think just in QC, it is not the only way to access the histogram and publish them, however like this one does not need to have 2 PRs in order to publish all the histograms and one in the O2 is enough.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok understood

@Barthelemy Barthelemy merged commit 1a9cf6d into AliceO2Group:master Nov 30, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants