Skip to content

Commit

Permalink
Delete G4AnalysisManager instance
Browse files Browse the repository at this point in the history
Delete singleton instance for Geant4 versions < 1100.
  • Loading branch information
lopezzot committed Aug 25, 2023
1 parent ae5a648 commit 8086b19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ATLHECTBRunAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ ATLHECTBRunAction::ATLHECTBRunAction(ATLHECTBEventAction* eventAction)
//
ATLHECTBRunAction::~ATLHECTBRunAction()
{
// delete G4AnalysisManager::Instance(); //no need to delete AnalysisManager after Geant4-11.0
#if G4VERSION_NUMBER < 1100
delete G4AnalysisManager::Instance(); // not needed for G4 v11 and up
#endif
}

// Define BeginOfRunAction() and EndOfRunAction() methods
Expand Down

0 comments on commit 8086b19

Please sign in to comment.