ATLAS Offline Software
Loading...
Searching...
No Matches
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
}
G4GeometryNotifierSvc.h
LVNotifier.h
LVNotifier::G4GeometryNotifierSvc
friend class G4GeometryNotifierSvc
Definition
LVNotifier.h:16
LVNotifier::LVNotifier
LVNotifier(G4GeometryNotifierSvc *)
Definition
LVNotifier.cxx:12
LVNotifier::m_notifierSvc
G4GeometryNotifierSvc * m_notifierSvc
Definition
LVNotifier.h:27
LVNotifier::NotifyDeRegistration
void NotifyDeRegistration()
Definition
LVNotifier.cxx:26
LVNotifier::NotifyRegistration
void NotifyRegistration()
Definition
LVNotifier.cxx:19
Generated on
for ATLAS Offline Software by
1.14.0