Skip to content

Conversation

@abmodak
Copy link
Collaborator

@abmodak abmodak commented May 23, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented May 23, 2025

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

@github-actions github-actions bot changed the title Add correlation analysis task [PWGCF] Add correlation analysis task May 23, 2025
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

PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGCFCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(gen-corr
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could the task name (and source file) be a bit more specific?
gen immediately addresses MC generator level which I guess it is not the aim
And corr is ambiguous having in mind the task is whithin the TwoParticleCorrelations directory
As it seems that the FT0 is being considered, what about something like long range correlations?

// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file genCorr.cxx
Copy link
Collaborator

Choose a reason for hiding this comment

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

See previous comment

///
/// \file genCorr.cxx
///
/// \brief task for correlation analysis
Copy link
Collaborator

Choose a reason for hiding this comment

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

See previous comment


struct : ConfigurableGroup {
Configurable<std::string> cfgURL{"cfgURL", "http://alice-ccdb.cern.ch", "Address of the CCDB to browse"};
Configurable<int64_t> noLaterThan{"ccdb-no-later-than", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "Latest acceptable timestamp of creation for the object"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

As this is a new task, please, adhere to the linter recommendations

ft0Det.calculateChannelCenter();
auto chPos = ft0Det.getChannelCenter(chno);
auto phi = std::atan2(chPos.Y() + offsetY, chPos.X() + offsetX);
if (phi < 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is safe here to also use the RecoDecay method

}
float deltaPhi = RecoDecay::constrainAngle(triggerTrack.phi() - phiA, -PIHalf);
float deltaEta = triggerTrack.eta() - etaA;
// LOGF(info, "delta eta = %f and delta phi = %f", deltaEta, deltaPhi);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, don't leave code commented

@abmodak
Copy link
Collaborator Author

abmodak commented May 23, 2025

Hello @victor-gonzalez,
Thanks for your suggestions.
Your comments are now implemented.

Thanks,
Abhi

@alibuild
Copy link
Collaborator

Error while checking build/O2Physics/o2 for 340d5b6 at 2025-05-23 16:52:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/11329-slc9_x86-64/0/PWGCF/TwoParticleCorrelations/Tasks/genCorr.cxx:238:29: error: unused parameter 'collision' [-Werror=unused-parameter]
ninja: build stopped: subcommand failed.

Full log here.

@victor-gonzalez victor-gonzalez changed the title [PWGCF] Add correlation analysis task [PWGCF] Add long range correlations analysis task May 23, 2025
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.

Thanks!!

@victor-gonzalez victor-gonzalez enabled auto-merge (squash) May 23, 2025 20:30
@victor-gonzalez victor-gonzalez merged commit d537962 into AliceO2Group:master May 23, 2025
14 of 15 checks passed
jinhyunni pushed a commit to jinhyunni/O2Physics that referenced this pull request Jun 11, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
prottayCMT pushed a commit to prottayCMT/O2Physics2024 that referenced this pull request Jun 12, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
ddobrigk pushed a commit to ddobrigk/O2Physics that referenced this pull request Jun 14, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
smaff92 pushed a commit to smaff92/O2Physics that referenced this pull request Jun 17, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
@abmodak abmodak deleted the gen-corr branch July 28, 2025 11:16
alibuild added a commit to alibuild/O2Physics that referenced this pull request Aug 11, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
jloemker pushed a commit to jloemker/O2Physics that referenced this pull request Nov 11, 2025
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
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