Message: Sharing a logic volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Sharing a logic volume 

Forum: Geometry
Date: 02 Jul, 2012
From: Manuel Castro Avila <Manuel Castro Avila>

Hi Geant4 Users,

I am creating a geometry involving an array. I mean, building one geometry (I call the main geometry), I replicate it to build the 2x2 array. Each element of the 2x2 array is built from the main geometry but for each one, I add others volumes. I define de main geometry as:

G4Trd* SolPyr=new G4Trd("Pyramid",89.45*mm,244.45*mm,89.45*mm,244.45*mm,PyrHeight/2);

G4LogicalVolume* logicPyr= new G4LogicalVolume(SolPyr,VacMater, "logicPyr", 0, 0, 0);

Now, I define two new logical volumes:

G4LogicalVolume* logicPyr1; and

G4LogicalVolume* logicPyr2;

with

logicPyr1=logicPyr; logicPyr2=logicPyr;

To verify this, I define a test box as:

box=new G4Box("test",5.*cm,5.*cm,10.*cm); logicbox=new G4LogicalVolume(box,VacMater,"logicbox",0,0,0); physibox=new G4PVPlacement(0,G4ThreeVector(0.0*mm,10.*cm,20.*cm),logicbox,"physibox",logicPyr1,false,0);

finally,

physiPyr1=new G4PVPlacement(rot1,G4ThreeVector(-89.45*mm-75.7*mm,-89.45*mm-75.7*mm,PyrHeight/2),logicPyr1,"physiPyr1",logicWorld,false,0);

physiPyr2=new G4PVPlacement(rot3,G4ThreeVector(89.45+75.7*mm*mm,-89.45*mm-75+7*mm,PyrHeight/2),logicPyr2,"physiPyr2",logicWorld,false,0);

The test box should appear only in the logicPyr1, but when I run the simulation is appearing in both logicPyr1 and logicPyr2. I don't know what is wrong..?

Any idea ?

Thanks in advance,

Manuel

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

1 More: Re: Sharing a logic volume   (Gabriele Cosmo - 06 Jul, 2012)
 Add Message Add Message
to: "Sharing a logic 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 ]