From f5d8af8bc59401af46200a66fea0de037839b92b Mon Sep 17 00:00:00 2001 From: tmadlener Date: Tue, 1 Oct 2024 15:36:58 +0200 Subject: [PATCH] Remove association from variable name --- .../include/k4SimDelphes/DelphesEDM4HepConverter.h | 2 +- converter/src/DelphesEDM4HepConverter.cc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h b/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h index ccfd800..5a49a4b 100644 --- a/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h +++ b/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h @@ -159,7 +159,7 @@ namespace k4SimDelphes { std::string m_recoCollName; std::string m_particleIDName; - std::string m_mcRecoAssocCollName; + std::string m_recoMCLinkCollName; // map from UniqueIDs (delphes generated particles) to MCParticles std::unordered_map m_genParticleIds; diff --git a/converter/src/DelphesEDM4HepConverter.cc b/converter/src/DelphesEDM4HepConverter.cc index 0a9c41b..1c8d205 100644 --- a/converter/src/DelphesEDM4HepConverter.cc +++ b/converter/src/DelphesEDM4HepConverter.cc @@ -80,7 +80,7 @@ namespace k4SimDelphes { : m_magneticFieldBz(magFieldBz), m_recoCollName(outputSettings.RecoParticleCollectionName), m_particleIDName(outputSettings.ParticleIDCollectionName), - m_mcRecoAssocCollName(outputSettings.RecoMCParticleLinkCollectionName) { + m_recoMCLinkCollName(outputSettings.RecoMCParticleLinkCollectionName) { for (const auto& branch : branches) { if (contains(PROCESSING_ORDER, branch.className)) { m_branches.push_back(branch); @@ -224,7 +224,7 @@ namespace k4SimDelphes { auto* magFieldCollection = createCollection>("magFieldBz"); magFieldCollection->push_back(m_magneticFieldBz); - auto* mcRecoRelations = getCollection(m_mcRecoAssocCollName); + auto* mcRecoRelations = getCollection(m_recoMCLinkCollName); auto* idCollection = getCollection(m_particleIDName); auto* trackerHitColl = getCollection(TRACKERHIT_OUTPUT_NAME); @@ -291,7 +291,7 @@ namespace k4SimDelphes { void DelphesEDM4HepConverter::processClusters(const TClonesArray* delphesCollection, std::string const& branch) { auto* particleCollection = getCollection(m_recoCollName); auto* clusterCollection = createCollection(branch); - auto* mcRecoRelations = getCollection(m_mcRecoAssocCollName); + auto* mcRecoRelations = getCollection(m_recoMCLinkCollName); auto* calorimeterHitColl = getCollection(CALORIMETERHIT_OUTPUT_NAME); for (auto iCand = 0; iCand < delphesCollection->GetEntries(); ++iCand) { @@ -508,8 +508,8 @@ namespace k4SimDelphes { if (m_collections.find(m_recoCollName) == m_collections.end()) { createCollection(m_recoCollName); } - if (m_collections.find(m_mcRecoAssocCollName) == m_collections.end()) { - createCollection(m_mcRecoAssocCollName); + if (m_collections.find(m_recoMCLinkCollName) == m_collections.end()) { + createCollection(m_recoMCLinkCollName); } if (m_collections.find(m_particleIDName) == m_collections.end()) { createCollection(m_particleIDName);