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

More 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)
Date: 11 Jan, 2008
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Emilia,

> What I am interested to know is what will be a negatif effect using
> DetectorConstruction classe as singleton.

the main detector-construction class in Geant4 is a -derived- class the user has
to implement and create -dynamically- in the 'main' of the application to be
given as a pointer argument to the run-manager.
It -cannot- be defined as a singleton since also its memory deallocation is handled
by the run-manager.

Cheers, Gabriele

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

1 None: Re: Use of DetectorConstruction class as singleton   (John Allison - 11 Jan, 2008)
 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 ]