Skip to content

Conversation

@yashpatley
Copy link
Contributor

No description provided.

float retVal = 0.;

if (std::string(obj->ClassName()) == "TH1F") {
histos.fill(HIST("Tracks/h1f_tracks_info"), 21.5);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would recommend to use an enum with named constants for the different tracks_info cases
If the corresponding histogram x axis starts with -0.5 the enum named constants can be used straight on
Additionally appropriate string labels can be used to identify each bin when shown

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dear Victor, Thank you for this suggestion. I will try to update accordingly in next PR.

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

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

Have a look at my comment in case you want to consider it for further iterations

@victor-gonzalez victor-gonzalez merged commit 62e8fc9 into AliceO2Group:master Dec 20, 2024
13 checks passed
feisenhu pushed a commit to feisenhu/O2Physics that referenced this pull request Jan 8, 2025
smaff92 pushed a commit to smaff92/O2Physics that referenced this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants