Skip to content

Add antiparticle histograms in light antinuclei analysis#1043

Merged
njacazio merged 10 commits into
AliceO2Group:masterfrom
giovannimalfattore:master
Jul 22, 2022
Merged

Add antiparticle histograms in light antinuclei analysis#1043
njacazio merged 10 commits into
AliceO2Group:masterfrom
giovannimalfattore:master

Conversation

@giovannimalfattore

Copy link
Copy Markdown
Contributor

No description provided.


if (track.hasTOF()) {
histos.fill(HIST("tracks/h2TOFbetaVsP"), track.p(), track.beta());
histos.fill(HIST("tracks/h2TOFbetaVsP"), track.p() / (1.f * track.sign()), track.beta());

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.

I think sign is just a short equal to 1 or -1 this is ok but you could also consider track.p() * track.sign() as it is not the charge, it is really the sign

@njacazio njacazio 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.

Very good, highly needed!

@njacazio
njacazio merged commit 0e288dd into AliceO2Group:master Jul 22, 2022
lbariogl pushed a commit to CF-tutorials/O2Physics that referenced this pull request Jul 28, 2022
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