From 60d88b4f981a2b3f72737bb6645e1f60461eea77 Mon Sep 17 00:00:00 2001 From: Benjamin Fischer <benjamin.fischer@rwth-aachen.de> Date: Wed, 24 Jul 2024 14:41:04 +0200 Subject: [PATCH] Fix std::map usage --- Pythia8Generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pythia8Generator.cpp b/Pythia8Generator.cpp index fe4b399..2181aa5 100644 --- a/Pythia8Generator.cpp +++ b/Pythia8Generator.cpp @@ -171,7 +171,7 @@ public: pxl::EventView* eventView = new pxl::EventView(); eventView->setName("Generated"); event->insertObject(eventView); - map<int, pxl::Particle*> idMap; + std::map<int, pxl::Particle*> idMap; for (int cnt=0; cnt<num;++cnt) { Pythia8::Particle particle = pEvent[cnt]; int status = particle.status(); @@ -217,7 +217,7 @@ public: return false; } - void linkMother(int daugtherID, int motherID, map<int, pxl::Particle*> selectedParticles, Pythia8::Event pEvent) { + void linkMother(int daugtherID, int motherID, std::map<int, pxl::Particle*> selectedParticles, Pythia8::Event pEvent) { if (motherID>0) { if (selectedParticles.find(motherID)!=selectedParticles.end()) { (selectedParticles[motherID])->linkDaughter(selectedParticles[daugtherID]); -- GitLab