Skip to content

Commit

Permalink
replace hardcoded EventHeaderCollection name with edm4hep label
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fila committed Sep 10, 2024
1 parent b641588 commit 29768fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k4FWCore/components/EventHeaderCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef K4FWCORE_EVENTHEADERCREATOR
#define K4FWCORE_EVENTHEADERCREATOR

#include <edm4hep/Constants.h>
#include "Gaudi/Algorithm.h"
#include "k4FWCore/DataHandle.h"

Expand All @@ -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<edm4hep::EventHeaderCollection> m_headerCol{"EventHeader", Gaudi::DataHandle::Writer, this};
mutable DataHandle<edm4hep::EventHeaderCollection> m_headerCol{edm4hep::labels::EventHeader,
Gaudi::DataHandle::Writer, this};
};

#endif

0 comments on commit 29768fb

Please sign in to comment.