Skip to content

Commit

Permalink
Add conversion of MCRecoCaloParticleAssociations
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 2, 2023
1 parent 19ed20b commit afb9450
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions k4EDM4hep2LcioConv/src/k4Lcio2EDM4hepConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,16 @@ namespace LCIO2EDM4hepConv {
relations, typeMapping.vertices, typeMapping.recoParticles);
assoCollVec.emplace_back(name, std::move(mc_a));
}
else if (fromType == "CalorimeterHit" && toType == "MCParticle") {
auto assoc = createAssociationCollection<edm4hep::MCRecoCaloParticleAssociationCollection, true>(
relations, typeMapping.caloHits, typeMapping.mcParticles);
assoCollVec.emplace_back(name, std::move(assoc));
}
else if (fromType == "MCParticle" && toType == "CalorimeterHit") {
auto assoc = createAssociationCollection<edm4hep::MCRecoCaloParticleAssociationCollection, false>(
relations, typeMapping.mcParticles, typeMapping.caloHits);
assoCollVec.emplace_back(name, std::move(assoc));
}
else {
std::cout << "Relation from: " << fromType << " to: " << toType << " (" << name
<< ") is not beeing handled during creation of associations" << std::endl;
Expand Down

0 comments on commit afb9450

Please sign in to comment.