From 124b2305a521bcbf562dcbd1341c58b9aae504d2 Mon Sep 17 00:00:00 2001 From: swenzel Date: Thu, 12 Dec 2024 21:26:04 +0100 Subject: [PATCH] Pythia8: write accepted/attempted --- Generators/src/GeneratorPythia8.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Generators/src/GeneratorPythia8.cxx b/Generators/src/GeneratorPythia8.cxx index 7e546a840a8ca..386865bbb15ee 100644 --- a/Generators/src/GeneratorPythia8.cxx +++ b/Generators/src/GeneratorPythia8.cxx @@ -692,6 +692,9 @@ void GeneratorPythia8::updateHeader(o2::dataformats::MCEventHeader* eventHeader) auto& info = mPythia.info; + eventHeader->putInfo(Key::acceptedEvents, info.nAccepted()); + eventHeader->putInfo(Key::attemptedEvents, info.nTried()); + // Set PDF information eventHeader->putInfo(Key::pdfParton1Id, info.id1pdf()); eventHeader->putInfo(Key::pdfParton2Id, info.id2pdf());