From 67ecd9e14b428cbd6c215eed6bd9b12baa5db323 Mon Sep 17 00:00:00 2001
From: amathad <amathad@cern.ch>
Date: Tue, 12 Dec 2023 13:58:37 +0100
Subject: [PATCH 1/2] unpack mcparticles

---
 PyConf/python/PyConf/reading.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PyConf/python/PyConf/reading.py b/PyConf/python/PyConf/reading.py
index cf25155ef4c..3bdefd1056f 100644
--- a/PyConf/python/PyConf/reading.py
+++ b/PyConf/python/PyConf/reading.py
@@ -216,8 +216,8 @@ def get_mc_header(*, location='/Event/MC/Header', extra_inputs: list = []):
     """
 
     if not extra_inputs:
-        mc_vertices = get_mc_vertices('/Event/MC/Vertices')
-        extra_inputs = [mc_vertices]
+        mc_particles = get_mc_particle('/Event/MC/Particles')
+        extra_inputs = [mc_particles]
 
     mc_header = make_data_with_FetchDataFromFile(
         location,
-- 
GitLab


From 57d383e037ee5389ab0d63640cfcb7e067a2c197 Mon Sep 17 00:00:00 2001
From: amathad <amathad@cern.ch>
Date: Tue, 12 Dec 2023 14:03:13 +0100
Subject: [PATCH 2/2] fix pylint

---
 PyConf/python/PyConf/reading.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PyConf/python/PyConf/reading.py b/PyConf/python/PyConf/reading.py
index 3bdefd1056f..33c990c391d 100644
--- a/PyConf/python/PyConf/reading.py
+++ b/PyConf/python/PyConf/reading.py
@@ -216,7 +216,7 @@ def get_mc_header(*, location='/Event/MC/Header', extra_inputs: list = []):
     """
 
     if not extra_inputs:
-        mc_particles = get_mc_particle('/Event/MC/Particles')
+        mc_particles = get_mc_particles('/Event/MC/Particles')
         extra_inputs = [mc_particles]
 
     mc_header = make_data_with_FetchDataFromFile(
-- 
GitLab