DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dd4hep::sim::Geant4Interrupts Class Reference

Interruptsback interface class with argument. More...

#include <Geant4Interrupts.h>

Inheritance diagram for dd4hep::sim::Geant4Interrupts:
dd4hep::SignalHandler

Public Member Functions

Geant4Kernelkernel ()
 
 Geant4Interrupts (Geant4Kernel &krnl)
 Default constructor. More...
 
virtual ~Geant4Interrupts ()=default
 Default destructor. More...
 
bool registerHandler_SIGINT ()
 Specialized handler for SIGINT. More...
 
- Public Member Functions inherited from dd4hep::SignalHandler
 SignalHandler ()
 Default constructor. More...
 
virtual ~SignalHandler ()
 Default destructor. More...
 
void applyHandlers ()
 (Re-)apply registered interrupt handlers to override potentially later registrations by other libraries More...
 
bool registerHandler (int sig_num, void *param, signal_handler_t handler)
 Specialized handler for any signal. More...
 

Static Public Member Functions

static bool default_sigint_handler (void *user_context, int signum)
 Default SIGINT handler: trigger end-of-event-loop in Geant4Kernel object. More...
 

Public Attributes

Geant4Kernelm_kernel
 Reference to simulation kernel. More...
 

Additional Inherited Members

- Public Types inherited from dd4hep::SignalHandler
typedef bool(* signal_handler_t) (void *user_context, int signal)
 User signal handler definition. More...
 

Detailed Description

Interruptsback interface class with argument.

Author
M.Frank
Version
1.0

Definition at line 36 of file Geant4Interrupts.h.

Constructor & Destructor Documentation

◆ Geant4Interrupts()

dd4hep::sim::Geant4Interrupts::Geant4Interrupts ( Geant4Kernel krnl)
inline

Default constructor.

Definition at line 47 of file Geant4Interrupts.h.

◆ ~Geant4Interrupts()

virtual dd4hep::sim::Geant4Interrupts::~Geant4Interrupts ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ default_sigint_handler()

bool dd4hep::sim::Geant4Interrupts::default_sigint_handler ( void *  user_context,
int  signum 
)
static

Default SIGINT handler: trigger end-of-event-loop in Geant4Kernel object.

Definition at line 20 of file Geant4Interrupts.cpp.

◆ kernel()

Geant4Kernel& dd4hep::sim::Geant4Interrupts::kernel ( )
inline

Definition at line 40 of file Geant4Interrupts.h.

◆ registerHandler_SIGINT()

bool dd4hep::sim::Geant4Interrupts::registerHandler_SIGINT ( )

Specialized handler for SIGINT.

Install specialized handler for SIGINT.

Definition at line 31 of file Geant4Interrupts.cpp.

Member Data Documentation

◆ m_kernel

Geant4Kernel& dd4hep::sim::Geant4Interrupts::m_kernel

Reference to simulation kernel.

Definition at line 39 of file Geant4Interrupts.h.


The documentation for this class was generated from the following files: