Skip to content

support for NUA, part 2 (the custom case)#5935

Merged
victor-gonzalez merged 2 commits intoAliceO2Group:masterfrom
abilandz:master
May 2, 2024
Merged

support for NUA, part 2 (the custom case)#5935
victor-gonzalez merged 2 commits intoAliceO2Group:masterfrom
abilandz:master

Conversation

@abilandz
Copy link
Contributor

@abilandz abilandz commented May 1, 2024

No description provided.

Comment on lines +5202 to +5203
if (!(TString(variable).EqualTo("phi") || TString(variable).EqualTo("pt") || TString(variable).EqualTo("eta"))) {
LOGF(fatal, "in function \033[1;31m%s at line %d\033[0m", __FUNCTION__, __LINE__);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is quite expensive execution wise. I hope you are not calling this from inner loops
For the next iteration consider using an enum for the kind of variable you are passing
With enum values you just compare two numbers. With strings you have to go character by character

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback, noted! In most cases like this I switched to enums , but this one I overlooked! To be fixed alongside the next PR.

@victor-gonzalez victor-gonzalez merged commit f6c9165 into AliceO2Group:master May 2, 2024
christianreckziegel pushed a commit to christianreckziegel/O2Physics that referenced this pull request May 7, 2024
* support for NUA, part 2 (the custom case)

* fix for MegaLinter
hahassan7 pushed a commit to hahassan7/O2Physics that referenced this pull request May 17, 2024
* support for NUA, part 2 (the custom case)

* fix for MegaLinter
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