ATLAS Offline Software
Simulation
G4Atlas
G4AtlasServices
src
LVNotifier.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LVNotifier.h
"
6
7
#include "G4LogicalVolumeStore.hh"
8
#include "G4LogicalVolume.hh"
9
10
#include "
G4GeometryNotifierSvc.h
"
11
12
LVNotifier::LVNotifier
(
G4GeometryNotifierSvc
* gs)
13
: m_notifierSvc(gs)
14
{
15
G4LogicalVolumeStore*
store
= G4LogicalVolumeStore::GetInstance();
16
store
->SetNotifier(
this
);
17
}
18
19
void
LVNotifier::NotifyRegistration
()
20
{
21
G4LogicalVolumeStore*
store
= G4LogicalVolumeStore::GetInstance();
22
G4LogicalVolume* lV =
store
->back();
23
lV->SetName(
m_notifierSvc
->
GetCurrentDetectorName
() +
"::"
+ lV->GetName() );
24
}
25
26
void
LVNotifier::NotifyDeRegistration
()
27
{
28
}
SGTest::store
TestStore store
Definition:
TestStore.cxx:23
LVNotifier::LVNotifier
LVNotifier(G4GeometryNotifierSvc *)
Definition:
LVNotifier.cxx:12
G4GeometryNotifierSvc
Definition:
G4GeometryNotifierSvc.h:14
LVNotifier::NotifyRegistration
void NotifyRegistration()
Definition:
LVNotifier.cxx:19
G4GeometryNotifierSvc.h
G4GeometryNotifierSvc::GetCurrentDetectorName
const std::string GetCurrentDetectorName() const override final
Definition:
G4GeometryNotifierSvc.h:27
LVNotifier::m_notifierSvc
G4GeometryNotifierSvc * m_notifierSvc
Definition:
LVNotifier.h:27
LVNotifier.h
LVNotifier::NotifyDeRegistration
void NotifyDeRegistration()
Definition:
LVNotifier.cxx:26
Generated on Fri Jan 10 2025 21:13:43 for ATLAS Offline Software by
1.8.18