ATLAS Offline Software
Loading...
Searching...
No Matches
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}
#define ATH_MSG_DEBUG(x)

◆ ~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.

◆ initialize()

StatusCode G4GeometryNotifierSvc::initialize ( )
finaloverride

Definition at line 22 of file G4GeometryNotifierSvc.cxx.

22 {
24 {
25 ATH_MSG_DEBUG( "Notifiers being instantiated " );
26 if (m_activateLVNotifier) lvNotifier=new LVNotifier(this);
27 if (m_activatePVNotifier) pvNotifier=new PVNotifier(this);
28 }
29
30 ATH_MSG_DEBUG( "G4GeometryNotifierSvc initialized!!!" );
31 return StatusCode::SUCCESS;
32}
Gaudi::Property< bool > m_activatePVNotifier
Gaudi::Property< bool > m_activateLVNotifier

◆ SetCurrentDetectorName()

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

Member Data Documentation

◆ lvNotifier

G4VNotifier* G4GeometryNotifierSvc::lvNotifier {}
private

Definition at line 34 of file G4GeometryNotifierSvc.h.

34{};

◆ 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.

32{this, "ActivateLVNotifier", true, "Toggle on/off the G4 LV notifier"};

◆ 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.

33{this, "ActivatePVNotifier", false, "Toggle on/off the G4 PV notifier"};

◆ m_currentDetectorName

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

Definition at line 30 of file G4GeometryNotifierSvc.h.

30{""};

◆ pvNotifier

G4VNotifier* G4GeometryNotifierSvc::pvNotifier {}
private

Definition at line 35 of file G4GeometryNotifierSvc.h.

35{};

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