Skip to content

Commit

Permalink
Document the CMS_SOA_BYTE_SIZE_TYPE macro
Browse files Browse the repository at this point in the history
Explain that using a typedef as a template parameter causes the ROOT dicionary
generation to fail.
  • Loading branch information
ericcano authored and fwyzard committed Feb 6, 2024
1 parent 1f4e998 commit 2fe7470
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DataFormats/SoATemplate/interface/SoACommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
#define _VALUE_TYPE_EIGEN_COLUMN 2

/* The size type need to be "hardcoded" in the template parameters for classes serialized by ROOT */
/* In practice, using a typedef as a template parameter to the Layout or its ViewTemplateFreeParams member
* declaration fails ROOT dictionary generation. */
#define CMS_SOA_BYTE_SIZE_TYPE std::size_t

namespace cms::soa {
Expand Down

0 comments on commit 2fe7470

Please sign in to comment.