Skip to content

Commit

Permalink
Add edm4hep::EventHeaderCollection to the list of clasess that can be…
Browse files Browse the repository at this point in the history
… used with Gaudi::Functional (#152)
  • Loading branch information
jmcarcell committed Oct 24, 2023
1 parent a99aa7f commit dd4f667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions k4FWCore/components/PodioInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "edm4hep/CaloHitContributionCollection.h"
#include "edm4hep/CalorimeterHitCollection.h"
#include "edm4hep/ClusterCollection.h"
#include "edm4hep/EventHeaderCollection.h"
#include "edm4hep/MCParticleCollection.h"
#include "edm4hep/MCRecoCaloAssociationCollection.h"
#include "edm4hep/MCRecoClusterParticleAssociationCollection.h"
Expand Down Expand Up @@ -170,6 +171,9 @@ void PodioInput::fillReaders() {
m_readers["podio::UserDataCollection<uint64_t>"] = [&](std::string_view collName) {
maybeRead<podio::UserDataCollection<uint64_t>>(collName);
};
m_readers["edm4hep::EventHeaderCollection"] = [&](std::string_view collName) {
maybeRead<edm4hep::EventHeaderCollection>(collName);
};
}

PodioInput::PodioInput(const std::string& name, ISvcLocator* svcLoc) : Consumer(name, svcLoc) {
Expand Down

0 comments on commit dd4f667

Please sign in to comment.