Message: Re: G4VPVParameterisation::ComputeSolid Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: G4VPVParameterisation::ComputeSolid 

Keywords: ComputeSolid, parameterisation
Forum: Geometry
Re: Question G4VPVParameterisation::ComputeSolid (Patrick Sizun)
Date: 18 Oct, 2007
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Patrick,

> Is there any complete example implementing the ComputeSolid method of
> G4VPVParameterisation to change the solid depending on the copy number ?

not in the official examples...

> What I need is to setup a mask with closed and open cells, where some cells
> are perfectly square and others have rounded corners. Should I create all the
> required solids (G4Box, G4SubtractionSolid), give them to the constructor of
> my class derived from G4VPVParameterisation, and implement ComputeSolid?

You can certainly do so (i.e. by implementing an ad-hoc constructor of your
parameterisation which takes pointers to the solids as additional arguments...)
however, the most straightforward way is perhaps to dynamically create them
once in the constructor (and delete them in the destructor); then you return the
pointers from ComputeSolid according to your parameterisation.

Cheers, Gabriele

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

 Add Message Add Message
to: "Re: G4VPVParameterisation::ComputeSolid"

 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 ]