Skip to content

Commit

Permalink
Make sure that CaloHitContributions are present
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 2, 2024
1 parent 57c3734 commit f9a5b78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion standalone/lcio2edm4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ int main(int argc, char* argv[]) {
if (patching == true) {
colPatcher.patchCollections(evt);
}
const auto edmEvent = LCIO2EDM4hepConv::convertEvent(evt, collsToConvert);
auto edmEvent = LCIO2EDM4hepConv::convertEvent(evt, collsToConvert);
if (edmEvent.get("AllCaloHitContributionsCombined") == nullptr) {
edmEvent.put(edm4hep::CaloHitContributionCollection(), "AllCaloHitContributionsCombined");
}

// For the first event we also convert some meta information for the
// ParticleID handling
Expand Down

0 comments on commit f9a5b78

Please sign in to comment.