Message: Re: how to make an array of the same absorber with different characteristics Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to make an array of the same absorber with different characteristics 

Forum: Geometry
Re: Question how to make an array of the same absorber with different characteristics (Mehmet)
Date: 24 Jul, 2010
From: michel maire <michel maire>

On Mon, 19 Jul 2010 19:47:05 GMT, Mehmet wrote:
> I tried something like
> 
> G4Material* air[i] = new G4Material("Air", density, ncomponents=1,
> kStateGas, temperature, pressure);
> 
> air[i]->AddMaterial(Air, fractionmass=1.);
> 
> but apparently it does not like the array air[i] in G4Material*. Do you
> think it is possible to make such an array, or any other way to solve my
> problem other than defining air1, air2, ....air100?
> 
  your construction is perfectly legal and should work.

  However, all air[i] have the same name "Air".

    Cheers,  Michel

 Add Message Add Message
to: "Re: how to make an array of the same absorber with different characteristics"

 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 ]