Skip to content

Conversation

@huinaibing
Copy link
Contributor

  • Add 2 process(processReco && processSim) for 2D Eff(pt, cent) calculation
  • overload setCurrentParticleWeight to apply 2D Eff
  • Add QA histogram, DCA cut

@github-actions
Copy link

github-actions bot commented Jan 23, 2026

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

Comment on lines +1058 to +1072
case MyFunctionName::funcProcessData:
this->registry.fill(HIST("hEventCount/processData"), position);
break;
case MyFunctionName::funcDetectorPidQA:
this->registry.fill(HIST("hEventCount/detectorPidQA"), position);
break;
case MyFunctionName::funcFillCorrectionGraph:
this->registry.fill(HIST("hEventCount/fillCorrectionGraph"), position);
break;
case MyFunctionName::funcProcessReco:
this->registry.fill(HIST("hEventCount/processReco"), position);
break;
case MyFunctionName::funcProcessSim:
this->registry.fill(HIST("hEventCount/processSim"), position);
break;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why using this? It is not needed and creates the impression that actually it is

return false;
}
registry.fill(HIST("hEventCount"), 2.5);
this->fillEventCountHelper(funcName, 2.5);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

if (cfgOutputrunbyrun) {
// hist for NUA
registry.add("correction/hRunNumberPhiEtaVertex", "", {HistType::kTHnSparseF, {cfgaxisRun, cfgaxisPhi, cfgaxisEta, cfgaxisVertex}});
registry.add("correction/hRunNumberPhiEtaVertex", "", {HistType::kTHnSparseD, {cfgaxisRun, cfgaxisPhi, cfgaxisEta, cfgaxisVertex}});
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure you want this leap in memory usage?
Do you actually need a double per bin?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comment, Professor. I’m used to writing Python, so I instinctively added this-> when coding in C++. This is indeed unnecessary. Also, the change from thnsparsef to thnspared was made during my local testing – the order of magnitude does not appear to reach the limit of float, and I will correct these details in the next PR.

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

Please, have a look at my comments for future iterations

@victor-gonzalez victor-gonzalez merged commit d054550 into AliceO2Group:master Jan 23, 2026
15 checks passed
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.

3 participants