Skip to content

Commit

Permalink
Add the conversion of subdetector energies
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Nov 3, 2023
1 parent 37c9a9f commit 30e7afa
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@ namespace EDM4hep2LCIOConv {
}
lcio_cluster->setShape(shape_vec);

auto& subdetEnergies = lcio_cluster->subdetectorEnergies();
for (const auto edmEnergy : edm_cluster.getSubdetectorEnergies()) {
std::cout << "Adding subdetector energy " << edmEnergy << '\n';
subdetEnergies.push_back(edmEnergy);
}

// Convert ParticleIDs associated to the recoparticle
for (const auto& edm_pid : edm_cluster.getParticleIDs()) {
if (edm_pid.isAvailable()) {
Expand Down

0 comments on commit 30e7afa

Please sign in to comment.