Skip to content

RecoDecay: Improve azimuth calculations.#5521

Merged
ktf merged 1 commit intoAliceO2Group:devfrom
vkucera:recodecay
Feb 23, 2021
Merged

RecoDecay: Improve azimuth calculations.#5521
ktf merged 1 commit intoAliceO2Group:devfrom
vkucera:recodecay

Conversation

@vkucera
Copy link
Copy Markdown
Collaborator

@vkucera vkucera commented Feb 19, 2021

No description provided.

{
// phi = pi+TMath::Atan2(-py,-px)
return (double)(o2::constants::math::PI + std::atan2(-py, -px));
// conversion from [-π, +π] returned by atan2 to [0, 2π]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please, no special characters....

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

You mean the "π"? It should be a Unicode character. Is it not?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Exactly...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Use of Unicode characters in comments is explicitly encouraged by the Coding Guidelines.
What kind of problem do you see with Unicode?

@vkucera
Copy link
Copy Markdown
Collaborator Author

vkucera commented Feb 23, 2021

@jgrosseo @iarsene Any objections against merging?

@jgrosseo
Copy link
Copy Markdown
Collaborator

I don't, but I want to know if @ktf agrees because he made the comment

@jgrosseo
Copy link
Copy Markdown
Collaborator

btw we use mathutils in the DataModel. Is that better than std?

@ktf ktf merged commit 29abec7 into AliceO2Group:dev Feb 23, 2021
@ktf
Copy link
Copy Markdown
Member

ktf commented Feb 23, 2021

I just find unicode more difficult to parse, especially if in the end the code uses M_PI not π. Anyway, if it's in the Guidelines, it's a battle I will not fight... As long as we don't start having emojiis as variables...

@vkucera vkucera deleted the recodecay branch February 23, 2021 18:45
EmilGorm pushed a commit to EmilGorm/AliceO2 that referenced this pull request Nov 22, 2021
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.

3 participants