Skip to content

Commit

Permalink
Remove association from variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 4, 2024
1 parent be455d1 commit f5d8af8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion converter/include/k4SimDelphes/DelphesEDM4HepConverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<UInt_t, edm4hep::MCParticle> m_genParticleIds;
Expand Down
10 changes: 5 additions & 5 deletions converter/src/DelphesEDM4HepConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -224,7 +224,7 @@ namespace k4SimDelphes {
auto* magFieldCollection = createCollection<podio::UserDataCollection<float>>("magFieldBz");
magFieldCollection->push_back(m_magneticFieldBz);

auto* mcRecoRelations = getCollection<edm4hep::RecoMCParticleLinkCollection>(m_mcRecoAssocCollName);
auto* mcRecoRelations = getCollection<edm4hep::RecoMCParticleLinkCollection>(m_recoMCLinkCollName);
auto* idCollection = getCollection<edm4hep::ParticleIDCollection>(m_particleIDName);
auto* trackerHitColl = getCollection<edm4hep::TrackerHit3DCollection>(TRACKERHIT_OUTPUT_NAME);

Expand Down Expand Up @@ -291,7 +291,7 @@ namespace k4SimDelphes {
void DelphesEDM4HepConverter::processClusters(const TClonesArray* delphesCollection, std::string const& branch) {
auto* particleCollection = getCollection<edm4hep::ReconstructedParticleCollection>(m_recoCollName);
auto* clusterCollection = createCollection<edm4hep::ClusterCollection>(branch);
auto* mcRecoRelations = getCollection<edm4hep::RecoMCParticleLinkCollection>(m_mcRecoAssocCollName);
auto* mcRecoRelations = getCollection<edm4hep::RecoMCParticleLinkCollection>(m_recoMCLinkCollName);
auto* calorimeterHitColl = getCollection<edm4hep::CalorimeterHitCollection>(CALORIMETERHIT_OUTPUT_NAME);

for (auto iCand = 0; iCand < delphesCollection->GetEntries(); ++iCand) {
Expand Down Expand Up @@ -508,8 +508,8 @@ namespace k4SimDelphes {
if (m_collections.find(m_recoCollName) == m_collections.end()) {
createCollection<edm4hep::ReconstructedParticleCollection>(m_recoCollName);
}
if (m_collections.find(m_mcRecoAssocCollName) == m_collections.end()) {
createCollection<edm4hep::RecoMCParticleLinkCollection>(m_mcRecoAssocCollName);
if (m_collections.find(m_recoMCLinkCollName) == m_collections.end()) {
createCollection<edm4hep::RecoMCParticleLinkCollection>(m_recoMCLinkCollName);
}
if (m_collections.find(m_particleIDName) == m_collections.end()) {
createCollection<edm4hep::ParticleIDCollection>(m_particleIDName);
Expand Down

0 comments on commit f5d8af8

Please sign in to comment.