Skip to content

Commit

Permalink
debug xsection
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkzerwas committed Oct 2, 2024
1 parent beef62f commit 3660698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k4GeneratorsConfig/src/xsection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ bool k4GeneratorsConfig::xsection::processFile(){
if ( m_reader->getEntries(podio::Category::Run) == 0 ){
return false;
}
auto runinfo = podio::Frame(m_reader->readNextEntry(podio::Category::Run));
auto runinfo = podio::Frame(m_reader->readEntry(podio::Category::Run,0));
const auto weightNames = runinfo.getParameter<std::string>(edm4hep::labels::GeneratorWeightNames);
if ( !weightNames.has_value() ){
std::cout << "k4GeneratorsConfig::Warning: Info on weight names not found" << std::endl;
}

auto toolInfos = edm4hep::utils::getGenToolInfos(runinfo);
if ( toolInfos.size() > 0 ){
m_generator = toolInfos[0].name;
Expand Down

0 comments on commit 3660698

Please sign in to comment.