From 2fe74705b4ab9590824299e11c39a08a1bb7a823 Mon Sep 17 00:00:00 2001 From: Eric Cano Date: Tue, 13 Jun 2023 15:01:02 +0200 Subject: [PATCH] Document the CMS_SOA_BYTE_SIZE_TYPE macro Explain that using a typedef as a template parameter causes the ROOT dicionary generation to fail. --- DataFormats/SoATemplate/interface/SoACommon.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DataFormats/SoATemplate/interface/SoACommon.h b/DataFormats/SoATemplate/interface/SoACommon.h index a53dcf65f04b6..49f5049377b44 100644 --- a/DataFormats/SoATemplate/interface/SoACommon.h +++ b/DataFormats/SoATemplate/interface/SoACommon.h @@ -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 {