Message: Getting UserDetectorConstruction Instance Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Getting UserDetectorConstruction Instance 

Forum: Run Management
Date: 02 Dec, 2010
From: Michael Rinaldi <Michael Rinaldi>

Hi, This is probably more of a C++ question than Geant4 bu how do I retrieve my Detectorconstruction object that I created earlier from within my myPrimaryGeneratorAction::GeneratePrimaries() method? I tried using the runManager as in,

G4RunManager *runManager = G4RunManager::GetRunManager(); const G4VUserDetectorConstruction* myDet = runManager->GetUserDetectorConstruction();

But this does not return my object since some of the methods in my Detectorconstruction object were not defined.

Mike

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

1 Feedback: Re: Getting UserDetectorConstruction Instance   (Gumplinger Peter - 02 Dec, 2010)
1 None: Re: Getting UserDetectorConstruction Instance   (Michael H. Kelsey - 02 Dec, 2010)
2 None: Re: Getting UserDetectorConstruction Instance   (michel maire - 03 Dec, 2010)
1 Feedback: Re: Getting UserDetectorConstruction Instance   (Michael Rinaldi - 03 Dec, 2010)
 Add Message Add Message
to: "Getting UserDetectorConstruction Instance"

 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 ]