Skip to content

Commit

Permalink
Remove method that is only used once
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Nov 21, 2023
1 parent c584240 commit 0e55c1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion k4FWCore/components/PodioInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ PodioInput::PodioInput(const std::string& name, ISvcLocator* svcLoc) : Consumer(
}

void PodioInput::operator()() const {
if (m_podioDataSvc->hasCollection(edm4hep::EventHeaderName)) {
if (m_podioDataSvc->getEventFrame().get(edm4hep::EventHeaderName)) {
m_readers[edm4hep::EventHeaderCollection::typeName](edm4hep::EventHeaderName);
} else {
info() << "No EventHeader collection found in the event. Not reading it" << endmsg;
Expand Down
2 changes: 0 additions & 2 deletions k4FWCore/include/k4FWCore/PodioDataSvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ class PodioDataSvc : public DataSvc {
/// TODO: Make this private again after conversions have been properly solved
podio::Frame& getMetaDataFrame() { return m_metadataframe; }

bool hasCollection(const std::string& name) const { return m_eventframe.get(name); }

private:
/// PODIO reader for ROOT files
podio::ROOTFrameReader m_reader;
Expand Down

0 comments on commit 0e55c1b

Please sign in to comment.