ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
G4GeometryNotifierSvc Class Reference

#include <G4GeometryNotifierSvc.h>

Inheritance diagram for G4GeometryNotifierSvc:
Collaboration diagram for G4GeometryNotifierSvc:

Public Member Functions

 G4GeometryNotifierSvc (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~G4GeometryNotifierSvc ()
 
StatusCode initialize () override final
 
StatusCode finalize () override final
 
void SetCurrentDetectorName (const std::string &s) override final
 
const std::string GetCurrentDetectorName () const override final
 

Private Attributes

std::string m_currentDetectorName {""}
 
Gaudi::Property< bool > m_activateLVNotifier {this, "ActivateLVNotifier", true, "Toggle on/off the G4 LV notifier"}
 
Gaudi::Property< bool > m_activatePVNotifier {this, "ActivatePVNotifier", false, "Toggle on/off the G4 PV notifier"}
 
G4VNotifier * lvNotifier {}
 
G4VNotifier * pvNotifier {}
 

Detailed Description

Definition at line 14 of file G4GeometryNotifierSvc.h.

Constructor & Destructor Documentation

◆ G4GeometryNotifierSvc()

G4GeometryNotifierSvc::G4GeometryNotifierSvc ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 10 of file G4GeometryNotifierSvc.cxx.

11  : base_class(name,pSvcLocator)
12 {
13  ATH_MSG_DEBUG( "G4GeometryNotifierSvc being created!" );
14 }

◆ ~G4GeometryNotifierSvc()

G4GeometryNotifierSvc::~G4GeometryNotifierSvc ( )
virtual

Definition at line 16 of file G4GeometryNotifierSvc.cxx.

17 {
18  if (lvNotifier) delete lvNotifier;
19  if (pvNotifier) delete pvNotifier;
20 }

Member Function Documentation

◆ finalize()

StatusCode G4GeometryNotifierSvc::finalize ( )
finaloverride

Definition at line 34 of file G4GeometryNotifierSvc.cxx.

34  {
35  ATH_MSG_DEBUG( "G4GeometryNotifierSvc being finalized!!!" );
36  return StatusCode::SUCCESS;
37 }

◆ GetCurrentDetectorName()

const std::string G4GeometryNotifierSvc::GetCurrentDetectorName ( ) const
inlinefinaloverride

Definition at line 27 of file G4GeometryNotifierSvc.h.

27 {return m_currentDetectorName;}

◆ initialize()

StatusCode G4GeometryNotifierSvc::initialize ( )
finaloverride

Definition at line 22 of file G4GeometryNotifierSvc.cxx.

22  {
24  {
25  ATH_MSG_DEBUG( "Notifiers being instantiated " );
28  }
29 
30  ATH_MSG_DEBUG( "G4GeometryNotifierSvc initialized!!!" );
31  return StatusCode::SUCCESS;
32 }

◆ SetCurrentDetectorName()

void G4GeometryNotifierSvc::SetCurrentDetectorName ( const std::string &  s)
inlinefinaloverride

Definition at line 26 of file G4GeometryNotifierSvc.h.

Member Data Documentation

◆ lvNotifier

G4VNotifier* G4GeometryNotifierSvc::lvNotifier {}
private

Definition at line 34 of file G4GeometryNotifierSvc.h.

◆ m_activateLVNotifier

Gaudi::Property<bool> G4GeometryNotifierSvc::m_activateLVNotifier {this, "ActivateLVNotifier", true, "Toggle on/off the G4 LV notifier"}
private

Definition at line 32 of file G4GeometryNotifierSvc.h.

◆ m_activatePVNotifier

Gaudi::Property<bool> G4GeometryNotifierSvc::m_activatePVNotifier {this, "ActivatePVNotifier", false, "Toggle on/off the G4 PV notifier"}
private

Definition at line 33 of file G4GeometryNotifierSvc.h.

◆ m_currentDetectorName

std::string G4GeometryNotifierSvc::m_currentDetectorName {""}
private

Definition at line 30 of file G4GeometryNotifierSvc.h.

◆ pvNotifier

G4VNotifier* G4GeometryNotifierSvc::pvNotifier {}
private

Definition at line 35 of file G4GeometryNotifierSvc.h.


The documentation for this class was generated from the following files:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
G4GeometryNotifierSvc::m_activateLVNotifier
Gaudi::Property< bool > m_activateLVNotifier
Definition: G4GeometryNotifierSvc.h:32
G4GeometryNotifierSvc::m_currentDetectorName
std::string m_currentDetectorName
Definition: G4GeometryNotifierSvc.h:30
LVNotifier
Definition: LVNotifier.h:15
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
PVNotifier
Definition: PVNotifier.h:16
G4GeometryNotifierSvc::pvNotifier
G4VNotifier * pvNotifier
Definition: G4GeometryNotifierSvc.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4GeometryNotifierSvc::lvNotifier
G4VNotifier * lvNotifier
Definition: G4GeometryNotifierSvc.h:34
G4GeometryNotifierSvc::m_activatePVNotifier
Gaudi::Property< bool > m_activatePVNotifier
Definition: G4GeometryNotifierSvc.h:33