ATLAS Offline Software
Loading...
Searching...
No Matches
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
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
G4GeometryNotifierSvc.h
LVNotifier.h
PVNotifier.h
G4GeometryNotifierSvc::~G4GeometryNotifierSvc
virtual ~G4GeometryNotifierSvc()
Definition
G4GeometryNotifierSvc.cxx:16
G4GeometryNotifierSvc::G4GeometryNotifierSvc
G4GeometryNotifierSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition
G4GeometryNotifierSvc.cxx:10
G4GeometryNotifierSvc::lvNotifier
G4VNotifier * lvNotifier
Definition
G4GeometryNotifierSvc.h:34
G4GeometryNotifierSvc::initialize
StatusCode initialize() override final
Definition
G4GeometryNotifierSvc.cxx:22
G4GeometryNotifierSvc::m_activatePVNotifier
Gaudi::Property< bool > m_activatePVNotifier
Definition
G4GeometryNotifierSvc.h:33
G4GeometryNotifierSvc::finalize
StatusCode finalize() override final
Definition
G4GeometryNotifierSvc.cxx:34
G4GeometryNotifierSvc::pvNotifier
G4VNotifier * pvNotifier
Definition
G4GeometryNotifierSvc.h:35
G4GeometryNotifierSvc::m_activateLVNotifier
Gaudi::Property< bool > m_activateLVNotifier
Definition
G4GeometryNotifierSvc.h:32
LVNotifier
Definition
LVNotifier.h:15
PVNotifier
Notifier class to prepend detector name to all G4 Physical Volumes Only to be used by the G4GeometryN...
Definition
PVNotifier.h:16
Generated on
for ATLAS Offline Software by
1.14.0