Skip to content

Commit

Permalink
PodioInput: don't do anything in constructor during the genconf step (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored Mar 25, 2024
1 parent 29fad56 commit 8df4d16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions k4FWCore/components/PodioInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ void PodioInput::fillReaders() {
}

PodioInput::PodioInput(const std::string& name, ISvcLocator* svcLoc) : Consumer(name, svcLoc) {
// do not do anything during the genconf step
const std::string cmd = System::cmdLineArgs()[0];
if (cmd.find("genconf") != std::string::npos)
return;

// check whether we have the PodioEvtSvc active
m_podioDataSvc = dynamic_cast<PodioDataSvc*>(evtSvc().get());
if (!m_podioDataSvc) {
Expand Down

0 comments on commit 8df4d16

Please sign in to comment.