Skip to content

Commit

Permalink
Reverse the direction of PID and reco relations
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Feb 26, 2024
1 parent ec61c34 commit 32c808f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions converter/src/DelphesEDM4HepConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ namespace k4SimDelphes {
cand.addToTracks(track);

// id.addToParameters(delphesCand->IsolationVar);
cand.addToParticleIDs(id);
id.setParticle(cand);

UInt_t genId = delphesCand->Particle.GetUniqueID();
if (const auto genIt = m_genParticleIds.find(genId); genIt != m_genParticleIds.end()) {
Expand Down Expand Up @@ -370,7 +370,7 @@ namespace k4SimDelphes {
// id.addToParameters(delphesCand->IsolationVar);
id.addToParameters(delphesCand->BTag);
id.addToParameters(delphesCand->TauTag);
jet.addToParticleIDs(id);
id.setParticle(jet);

const auto& constituents = delphesCand->Constituents;
for (auto iConst = 0; iConst < constituents.GetEntries(); ++iConst) {
Expand Down

0 comments on commit 32c808f

Please sign in to comment.