Message: Re: How to give different names to the copies of Physical volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to give different names to the copies of Physical volume 

Forum: Geometry
Re: Question How to give different names to the copies of Physical volume (Amit Kumar)
Date: 06 May, 2015
From: michel maire <michel maire>

On Tue, 05 May 2015 16:17:00 GMT, Amit Kumar wrote:
> Dear All
> 
> I want to give different names to same logical volumes physically placed
> at ten different places and I want to use them in steppingAction. Please
> let me know whether following lines are appropriate to serve my purpose.
> 
> 1. Following lines are added to DetectorConstruction class
> 
> for (G4int i=0; i<10; i++) {
> new G4PVPlacement(0, G4ThreeVector(0,0,Z), LogicBox,
>                         "physBox[i]",worldVolume,false,i, 0); 
> }
> 
> 2. And following lines are added to SteppingAction class
> 
> for (G4int j=0; j<10; j++) { if (step->GetPhysicalVolume()->GetNames() =
> "physBox[j]") {;} }
> 

 examples/basic/B3 illustrates placement with copy number

 Add Message Add Message
to: "Re: How to give different names to the copies of Physical volume"

 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 ]