ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
friend class G4GeometryNotifierSvc
Definition LVNotifier.h:16
LVNotifier(G4GeometryNotifierSvc *)
G4GeometryNotifierSvc * m_notifierSvc
Definition LVNotifier.h:27
void NotifyDeRegistration()
void NotifyRegistration()