ATLAS Offline Software
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 
13  : m_notifierSvc(gs)
14 {
15  G4LogicalVolumeStore* store = G4LogicalVolumeStore::GetInstance();
16  store->SetNotifier(this);
17 }
18 
20 {
21  G4LogicalVolumeStore* store = G4LogicalVolumeStore::GetInstance();
22  G4LogicalVolume* lV = store->back();
23  lV->SetName( m_notifierSvc->GetCurrentDetectorName() + "::" + lV->GetName() );
24 }
25 
27 {
28 }
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:69
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