Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

RecoDecay: Improve azimuth calculations.#5521

Merged
ktf merged 1 commit intoAliceO2Group:devAliceO2Group/AliceO2:devfrom
vkucera:recodecayvkucera/AliceO2:recodecayCopy head branch name to clipboard
Feb 23, 2021
Merged

RecoDecay: Improve azimuth calculations.#5521
ktf merged 1 commit intoAliceO2Group:devAliceO2Group/AliceO2:devfrom
vkucera:recodecayvkucera/AliceO2:recodecayCopy head branch name to clipboard

Conversation

@vkucera
Copy link
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
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
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
Member

Choose a reason for hiding this comment

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

Exactly...

Copy link
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
Collaborator Author

vkucera commented Feb 23, 2021

@jgrosseo @iarsene Any objections against merging?

@jgrosseo
Copy link
Collaborator

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

@jgrosseo
Copy link
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
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.