Skip to content
Snippets Groups Projects

G4AtlasAlg: Fix case where shadow truth event is not used (ATLASSIM-6614)

Merged John Derek Chapman requested to merge jchapman/athena:FixATLASSIM-6614_23.0 into 23.0
All threads resolved!
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -360,6 +360,8 @@ StatusCode G4AtlasAlg::execute()
else {
// copy input Evgen collection to output Truth collection
outputTruthCollection = std::make_unique<McEventCollection>(*inputTruthCollection);
// empty shadow Truth collection
shadowTruth = std::make_unique<McEventCollection>();
// Apply QS patch if required
if ( not m_qspatcher.empty() ) {
for (HepMC::GenEvent* currentGenEvent : *outputTruthCollection ) {
Loading