diff --git a/include/podio/detail/InterfaceIOHelpers.h b/include/podio/detail/RelationIOHelpers.h similarity index 94% rename from include/podio/detail/InterfaceIOHelpers.h rename to include/podio/detail/RelationIOHelpers.h index 515645f25..cf942b96a 100644 --- a/include/podio/detail/InterfaceIOHelpers.h +++ b/include/podio/detail/RelationIOHelpers.h @@ -1,5 +1,5 @@ -#ifndef PODIO_DETAIL_INTERFACEIOHELPERS_H -#define PODIO_DETAIL_INTERFACEIOHELPERS_H +#ifndef PODIO_DETAIL_RELATIONIOHELPERS_H +#define PODIO_DETAIL_RELATIONIOHELPERS_H #include "podio/utilities/TypeHelpers.h" #include @@ -28,7 +28,7 @@ namespace podio::detail { /// @param id The ObjectID of the element that we are currently looking for template void tryAddTo(T, std::vector& relElements, const podio::CollectionBase* coll, const podio::ObjectID id) { - if (auto typedColl = dynamic_cast(coll)) { + if (auto typedColl = dynamic_cast(coll)) { const T tmp = (*typedColl)[id.index]; relElements.emplace_back(tmp); } @@ -87,7 +87,7 @@ void addMultiRelation(std::vector& relElements, const podio::Collection if constexpr (podio::detail::isInterfaceType) { addInterfaceToMultiRelation(relElements, coll, id); } else { - const auto* typeColl = static_cast(coll); + const auto* typeColl = static_cast(coll); relElements.emplace_back((*typeColl)[id.index]); } } @@ -111,7 +111,7 @@ void addMultiRelation(std::vector& relElements, const podio::Collection /// @param id The ObjectID of the element that we are currently looking for template void tryAssignTo(T, InterfaceType*& relation, const podio::CollectionBase* coll, const podio::ObjectID id) { - if (const auto* typeColl = dynamic_cast(coll)) { + if (const auto* typeColl = dynamic_cast(coll)) { relation = new InterfaceType((*typeColl)[id.index]); } } @@ -168,11 +168,11 @@ void addSingleRelation(RelType*& relation, const podio::CollectionBase* coll, co if constexpr (podio::detail::isInterfaceType) { addInterfaceToSingleRelation(relation, coll, id); } else { - const auto* typeColl = static_cast(coll); + const auto* typeColl = static_cast(coll); relation = new RelType((*typeColl)[id.index]); } } } // namespace podio::detail -#endif // PODIO_DETAIL_INTERFACEIOHELPERS_H +#endif // PODIO_DETAIL_RELATIONIOHELPERS_H diff --git a/python/templates/CollectionData.cc.jinja2 b/python/templates/CollectionData.cc.jinja2 index c9c8f54ec..6cf76fcbe 100644 --- a/python/templates/CollectionData.cc.jinja2 +++ b/python/templates/CollectionData.cc.jinja2 @@ -9,7 +9,7 @@ {{ include }} {% endfor %} -#include +#include {{ utils.namespace_open(class.namespace) }} {% with class_type = class.bare_type + 'CollectionData' %}