Skip to content

[PWGCF] New task for TwoParticleCorrelation - #8509

Merged
victor-gonzalez merged 28 commits into
AliceO2Group:masterfrom
Thorkj:master
Nov 26, 2024
Merged

[PWGCF] New task for TwoParticleCorrelation#8509
victor-gonzalez merged 28 commits into
AliceO2Group:masterfrom
Thorkj:master

Conversation

@Thorkj

Copy link
Copy Markdown
Contributor

I made a task adding the deltaPhi and deltaEta along with, Nch, pT, to a sparse for local processing.

@github-actionsgithub-actionsBot changed the title New task for TwoParticleCorrelation[PWGCF] New task for TwoParticleCorrelationNov 18, 2024
Please consider the following formatting changes to AliceO2Group#8509
Comment on lines +110 to +115
if (deltaPhi > 1.5f * PI) {
deltaPhi -= TwoPI;
}
if (deltaPhi < -PIHalf) {
deltaPhi += TwoPI;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do not duplicate already available utilities. See RecoDecay::constrainAngle.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Comment threadPWGCF/TwoParticleCorrelations/Tasks/CorrSparse.cxx Outdated
Comment on lines +48 to +50
int s = 1; // same event
int m = 2; // mixed event

@vkuceravkuceraNov 18, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Where do you use these? The names are very bad because they are meaningless and basically unsearchable in the code. If you really need those as constants, use enum.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Sorry for the late response, I have now removed them as I didn't use them.

Comment on lines +25 to +30
#include "TMath.h"
#include "TList.h"
#include "TProfile.h"
#include "TRandom3.h"
#include <cmath>
#include <iostream>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Where do you need these headers?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

I'll remove them and see if the code works

Comment on lines +28 to +35
namespace hash
{
DECLARE_SOA_COLUMN(Bin, bin, int);
} // namespace hash
DECLARE_SOA_TABLE(Hashes, "AOD", "HASH", hash::Bin);

using Hash = Hashes::iterator;
} // namespace o2::aod

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please, remove it as it is not used

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

I have now removed it

Comment on lines +110 to +115
if (deltaPhi > 1.5f * PI) {
deltaPhi -= TwoPI;
}
if (deltaPhi < -PIHalf) {
deltaPhi += TwoPI;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please consider the following formatting changes to AliceO2Group#8509

@victor-gonzalezvictor-gonzalez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please, implement the first suggestion from Vit which I expanded giving you where you can find what he suggested

Thorkjand others added 2 commits November 26, 2024 13:06
Please consider the following formatting changes to AliceO2Group#8509

@victor-gonzalezvictor-gonzalez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for implementing our suggestions!

@victor-gonzalez
victor-gonzalez enabled auto-merge (squash) November 26, 2024 14:41
@victor-gonzalez
victor-gonzalez merged commit 2f85a23 into AliceO2Group:masterNov 26, 2024
joachimckh pushed a commit to joachimckh/O2Physics that referenced this pull request Dec 2, 2024
Co-authored-by: Thor Jensen <thor@Thors-MacBook-Pro.local>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
joachimckh pushed a commit to joachimckh/O2Physics that referenced this pull request Dec 2, 2024
Co-authored-by: Thor Jensen <thor@Thors-MacBook-Pro.local>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
wefeng1110 pushed a commit to wefeng1110/O2Physics that referenced this pull request Dec 6, 2024
Co-authored-by: Thor Jensen <thor@Thors-MacBook-Pro.local>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
Archita-Dash pushed a commit to Archita-Dash/O2Physics that referenced this pull request Dec 11, 2024
Co-authored-by: Thor Jensen <thor@Thors-MacBook-Pro.local>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
hernasab pushed a commit to hernasab/O2Physics that referenced this pull request Dec 20, 2024
Co-authored-by: Thor Jensen <thor@Thors-MacBook-Pro.local>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
feisenhu pushed a commit to feisenhu/O2Physics that referenced this pull request Jan 8, 2025
Co-authored-by: Thor Jensen <thor@Thors-MacBook-Pro.local>
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants

@Thorkj@victor-gonzalez@vkucera@alibuild