DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4Interrupts.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DDG4_GEANT4INTERRUPTS_H
14 #define DDG4_GEANT4INTERRUPTS_H
15 
17 #include <DD4hep/SignalHandler.h>
18 
20 
22 namespace dd4hep {
23 
25  namespace sim {
26 
28  class Geant4Kernel;
29 
31 
37  public:
40  Geant4Kernel& kernel() { return m_kernel; }
41 
43  static bool default_sigint_handler(void* user_context, int signum);
44 
45  public:
49  virtual ~Geant4Interrupts() = default;
52  };
53  } // End namespace sim
54 } // End namespace dd4hep
55 #endif // DDG4_GEANT4INTERRUPTS_H
dd4hep::sim::Geant4Interrupts::kernel
Geant4Kernel & kernel()
Definition: Geant4Interrupts.h:40
dd4hep::sim::Geant4Interrupts
Interruptsback interface class with argument.
Definition: Geant4Interrupts.h:36
dd4hep::sim::Geant4Interrupts::Geant4Interrupts
Geant4Interrupts(Geant4Kernel &krnl)
Default constructor.
Definition: Geant4Interrupts.h:47
SignalHandler
dd4hep::sim::Geant4Kernel
Class, which allows all Geant4Action derivatives to access the DDG4 kernel structures.
Definition: Geant4Kernel.h:64
dd4hep::sim::Geant4Interrupts::m_kernel
Geant4Kernel & m_kernel
Reference to simulation kernel.
Definition: Geant4Interrupts.h:39
dd4hep::sim::Geant4Interrupts::~Geant4Interrupts
virtual ~Geant4Interrupts()=default
Default destructor.
SignalHandler.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::Geant4Interrupts::default_sigint_handler
static bool default_sigint_handler(void *user_context, int signum)
Default SIGINT handler: trigger end-of-event-loop in Geant4Kernel object.
Definition: Geant4Interrupts.cpp:20
dd4hep::sim::Geant4Interrupts::registerHandler_SIGINT
bool registerHandler_SIGINT()
Specialized handler for SIGINT.
Definition: Geant4Interrupts.cpp:31