Skip to content
Snippets Groups Projects
Commit 67d590f9 authored by Dave Casper's avatar Dave Casper
Browse files

Test gdml output

parent 7f96e456
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,9 @@
#include "G4VModularPhysicsList.hh"
#include "G4ParallelWorldPhysics.hh"
#include "G4LogicalVolumeStore.hh"
#include "G4GDMLParser.hh"
// CLHEP includes
#include "CLHEP/Random/RandomEngine.h"
......@@ -198,6 +201,12 @@ void G4FaserAlg::initializeOnce()
throw std::runtime_error("Could not initialize ATLAS UserLimitsSvc!");
}
G4LogicalVolumeStore* store = G4LogicalVolumeStore::GetInstance();
G4LogicalVolume* world = store->GetVolume("Faser::Faser");
G4GDMLParser parser {};
parser.Write("Faser.gdml", world);
ATH_MSG_ALWAYS("Wrote detector geometry to GDML file");
if (m_activateParallelGeometries) {
G4VModularPhysicsList* thePhysicsList=dynamic_cast<G4VModularPhysicsList*>(m_physListSvc->GetPhysicsList());
if (!thePhysicsList) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment