Message: Re: Use of DetectorConstruction class as singleton Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Use of DetectorConstruction class as singleton  

Forum: Geometry
Re: None Use of DetectorConstruction class as singleton (Emilia BECHEVA)
Re: Feedback Re: Use of DetectorConstruction class as singleton (Gabriele Cosmo)
Re: Question Re: Use of DetectorConstruction class as singleton (Emilia BECHEVA)
Re: More Re: Use of DetectorConstruction class as singleton (Gabriele Cosmo)
Date: 11 Jan, 2008
From: John Allison <John Allison>

Dear Emilia,

Maybe, like me, you want to access members of that class. This can be done with code like this:

  const JRUMasterDetectorConstruction* dc =
    dynamic_cast<const JRUMasterDetectorConstruction*>
    (runManager->GetUserDetectorConstruction());

Hope that helps.

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

 Add Message Add Message
to: "Re: Use of DetectorConstruction class as singleton "

 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 ]