Skip to content

Add debug task for femto#482

Merged
jgrosseo merged 2 commits into
AliceO2Group:masterfrom
lbariogl:test
Jan 28, 2022
Merged

Add debug task for femto#482
jgrosseo merged 2 commits into
AliceO2Group:masterfrom
lbariogl:test

Conversation

@lbariogl

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread PWGCF/DataModel/FemtoDerived.h Outdated
Comment on lines +90 to +91
DECLARE_SOA_COLUMN(TPCNClsFound, tpcNClsFound, int16_t); //! Number of TPC clusters
DECLARE_SOA_COLUMN(TPCNClsCrossedRows, tpcNClsCrossedRows, int16_t); //! Number of TPC crossed rows

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why isn't uint8_t enough?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are at maximum 159...

@lbariogl lbariogl Jan 28, 2022

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.

I did it for consistency with the definition in O2:

https://github.com/AliceO2Group/AliceO2/blob/dev/Framework/Core/include/Framework/AnalysisDataModel.h#L225

Otherwise a cast is needed

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.

I changed it to uint8_t and applied a cast

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, this is better. The other is int16 because it formally could be larger than 8 bit, but in practice it isn't...

@jgrosseo jgrosseo enabled auto-merge (squash) January 28, 2022 09:54
@jgrosseo jgrosseo merged commit 286c602 into AliceO2Group:master Jan 28, 2022
@lbariogl lbariogl deleted the test branch January 28, 2022 14:11
AnnalenaKa pushed a commit to AnnalenaKa/O2Physics that referenced this pull request Jan 30, 2022
* Add debug task for femto

* Add cast to uint8_t
alibuild added a commit to alibuild/O2Physics that referenced this pull request Sep 18, 2025
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