From 29768fb2a4d64c0cd972f7ec79aedd764afb2064 Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Tue, 20 Aug 2024 09:00:36 +0200 Subject: [PATCH] replace hardcoded EventHeaderCollection name with edm4hep label --- k4FWCore/components/EventHeaderCreator.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/k4FWCore/components/EventHeaderCreator.h b/k4FWCore/components/EventHeaderCreator.h index a3b4dc40..c84ed458 100644 --- a/k4FWCore/components/EventHeaderCreator.h +++ b/k4FWCore/components/EventHeaderCreator.h @@ -19,6 +19,7 @@ #ifndef K4FWCORE_EVENTHEADERCREATOR #define K4FWCORE_EVENTHEADERCREATOR +#include #include "Gaudi/Algorithm.h" #include "k4FWCore/DataHandle.h" @@ -44,7 +45,8 @@ class EventHeaderCreator : public Gaudi::Algorithm { this, "eventNumberOffset", 0, "Event number offset, eventNumber will be filled with 'event_index + eventNumberOffset'"}; // datahandle for the EventHeader - mutable DataHandle m_headerCol{"EventHeader", Gaudi::DataHandle::Writer, this}; + mutable DataHandle m_headerCol{edm4hep::labels::EventHeader, + Gaudi::DataHandle::Writer, this}; }; #endif