ATLAS Offline Software
Simulation
G4Atlas
G4AtlasServices
src
G4GeometryNotifierSvc.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
G4GeometryNotifierSvc.h
"
6
7
#include "
PVNotifier.h
"
8
#include "
LVNotifier.h
"
9
10
G4GeometryNotifierSvc::G4GeometryNotifierSvc
(
const
std::string&
name
, ISvcLocator* pSvcLocator )
11
: base_class(
name
,pSvcLocator)
12
{
13
ATH_MSG_DEBUG
(
"G4GeometryNotifierSvc being created!"
);
14
}
15
16
G4GeometryNotifierSvc::~G4GeometryNotifierSvc
()
17
{
18
if
(
lvNotifier
)
delete
lvNotifier
;
19
if
(
pvNotifier
)
delete
pvNotifier
;
20
}
21
22
StatusCode
G4GeometryNotifierSvc::initialize
(){
23
if
(
m_activateLVNotifier
||
m_activatePVNotifier
)
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
}
33
34
StatusCode
G4GeometryNotifierSvc::finalize
(){
35
ATH_MSG_DEBUG
(
"G4GeometryNotifierSvc being finalized!!!"
);
36
return
StatusCode::SUCCESS;
37
}
PVNotifier.h
G4GeometryNotifierSvc::m_activateLVNotifier
Gaudi::Property< bool > m_activateLVNotifier
Definition:
G4GeometryNotifierSvc.h:32
G4GeometryNotifierSvc::finalize
StatusCode finalize() override final
Definition:
G4GeometryNotifierSvc.cxx:34
G4GeometryNotifierSvc.h
G4GeometryNotifierSvc::G4GeometryNotifierSvc
G4GeometryNotifierSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
G4GeometryNotifierSvc.cxx:10
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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
G4GeometryNotifierSvc::initialize
StatusCode initialize() override final
Definition:
G4GeometryNotifierSvc.cxx:22
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
G4GeometryNotifierSvc::lvNotifier
G4VNotifier * lvNotifier
Definition:
G4GeometryNotifierSvc.h:34
G4GeometryNotifierSvc::~G4GeometryNotifierSvc
virtual ~G4GeometryNotifierSvc()
Definition:
G4GeometryNotifierSvc.cxx:16
G4GeometryNotifierSvc::m_activatePVNotifier
Gaudi::Property< bool > m_activatePVNotifier
Definition:
G4GeometryNotifierSvc.h:33
LVNotifier.h
Generated on Fri Jan 10 2025 21:10:33 for ATLAS Offline Software by
1.8.18