From d13067526274c56613678e674f8953555a8a3344 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Wed, 18 Sep 2024 14:04:11 +0200 Subject: [PATCH 1/2] Remove unused variable in edm4hep_testhepmc.cc --- test/hepmc/edm4hep_testhepmc.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/hepmc/edm4hep_testhepmc.cc b/test/hepmc/edm4hep_testhepmc.cc index 163bdb9c6..1cfdc39b4 100644 --- a/test/hepmc/edm4hep_testhepmc.cc +++ b/test/hepmc/edm4hep_testhepmc.cc @@ -109,7 +109,6 @@ int main() { // Part2: Convert the particles and write to file std::unordered_map hepmcToEdmMap; - unsigned int particle_counter{0}; for (auto particle_i : evt->particles()) { std::cout << "Converting particle with PDG ID: " << particle_i->pdg_id() << std::endl; std::cout << "\t and id: " << particle_i->id() << std::endl; @@ -144,7 +143,6 @@ int main() { } } - particle_counter++; } auto edm_particle_collection = edm4hep::MCParticleCollection(); From 5e5f37f063d9d4354d785e5a981c75c744750633 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Wed, 18 Sep 2024 14:10:34 +0200 Subject: [PATCH 2/2] Format --- test/hepmc/edm4hep_testhepmc.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/test/hepmc/edm4hep_testhepmc.cc b/test/hepmc/edm4hep_testhepmc.cc index 1cfdc39b4..e9b408e30 100644 --- a/test/hepmc/edm4hep_testhepmc.cc +++ b/test/hepmc/edm4hep_testhepmc.cc @@ -142,7 +142,6 @@ int main() { hepmcToEdmMap[particle_i->id()].addToDaughters(hepmcToEdmMap[particle_daughter->id()]); } } - } auto edm_particle_collection = edm4hep::MCParticleCollection();