Skip to content

Commit

Permalink
Update TopRecoilHook.h
Browse files Browse the repository at this point in the history
  • Loading branch information
vslokenb authored Sep 25, 2023
1 parent 8097923 commit cce6879
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GeneratorInterface/Pythia8Interface/plugins/TopRecoilHook.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ namespace Pythia8 {
}

// Destructor prints histogram.
~TopRecoilHook() override { delete wtCorr; }
~TopRecoilHook() override {
if (doTopRecoil)
;
delete wtCorr;
}

// Initialise. Only use hook for simple showers with recoilToColoured = off.
bool initAfterBeams() override {
Expand Down

0 comments on commit cce6879

Please sign in to comment.