Skip to content

Commit

Permalink
Pythia8: write accepted/attempted
Browse files Browse the repository at this point in the history
  • Loading branch information
sawenzel committed Dec 13, 2024
1 parent 97e469e commit 124b230
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Generators/src/GeneratorPythia8.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,9 @@ void GeneratorPythia8::updateHeader(o2::dataformats::MCEventHeader* eventHeader)

auto& info = mPythia.info;

eventHeader->putInfo<float>(Key::acceptedEvents, info.nAccepted());
eventHeader->putInfo<float>(Key::attemptedEvents, info.nTried());

// Set PDF information
eventHeader->putInfo<int>(Key::pdfParton1Id, info.id1pdf());
eventHeader->putInfo<int>(Key::pdfParton2Id, info.id2pdf());
Expand Down

0 comments on commit 124b230

Please sign in to comment.