Message: Re: Access to DetectorConstruction in hits file: a C++ problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Access to DetectorConstruction in hits file: a C++ problem 

Forum: Run Management
Re: None Access to DetectorConstruction in hits file: a C++ problem (David Oxley)
Date: 07 Apr, 2008
From: Jeremy McCormick <Jeremy McCormick>

You can access the detector construction through the run manager.

Assuming your specific construction class is "MyDetectorConstruction"...

MyDetectorConstruction det = (MyDetectorConstruction)G4RunManager::GetRunManager()->GetUserDetectorConstruction();

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: Access to DetectorConstruction in hits file: a C++ problem"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]