From 672e448b7455261f5b9f83c651192eeecdbe5378 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Tue, 5 Nov 2024 10:11:14 +0100 Subject: [PATCH] Only generate SIOBlocks if necessary --- python/podio_gen/cpp_generator.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/podio_gen/cpp_generator.py b/python/podio_gen/cpp_generator.py index e2415a08c..398546c9a 100644 --- a/python/podio_gen/cpp_generator.py +++ b/python/podio_gen/cpp_generator.py @@ -549,10 +549,11 @@ def _write_links_registration_file(self, links): "DatamodelLinks.cc", self._eval_template("DatamodelLinks.cc.jinja2", link_data), ) - self._write_file( - "DatamodelLinkSIOBlock.cc", - self._eval_template("DatamodelLinksSIOBlock.cc.jinja2", link_data), - ) + if "SIO" in self.io_handlers: + self._write_file( + "DatamodelLinkSIOBlock.cc", + self._eval_template("DatamodelLinksSIOBlock.cc.jinja2", link_data), + ) def _write_edm_def_file(self): """Write the edm definition to a compile time string"""