Message: Re: surface properties of copies of physical volumes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: surface properties of copies of physical volumes 

Forum: Processes Involving Optical Photons
Re: Question surface properties of copies of physical volumes
Date: 19 Jul, 2010
From: Gumplinger Peter <Gumplinger Peter>

>  G4LogicalBorderSurface* Surfacedetphys = 
>                                 new G4LogicalBorderSurface("detphys",
>                                 box_phys,det_phys,Surfacedetphys);

Yes, you discovered the expected behaviour of the code above; e.g. you are providing the constructor of G4LogicalBorderSurface with a pointer which points to just the last created G4PVPlacement. If you want this surface for all of your cells you need to put the above code inside your loop.

Now, it may be possible in your case (I don't know) to specify a G4LogicalSkinSurface and assign it to det_phys's corresponding logical volume (but in that case all its surfaces will be the same). If that's not desired/correct, you may find that you could assign a G4LogicalSkinSurface to your auxiliary box_phys's logical volume, for example, if your surface is a dielectric_metal surface. Then it wouldn't matter what box_phys's other surfaces are because no photon would ever encounter them.

Hope this helps, Peter

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

1 Feedback: Re: surface properties of copies of physical volumes   (Mike - 20 Jul, 2010)
 Add Message Add Message
to: "Re: surface properties of copies of physical volumes"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews