Message: Voxels for G4Tubs Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Voxels for G4Tubs 

Forum: Geometry
Date: 07 Dec, 2006
From: <fere>

I am trying to divide a cylindrical volume into rings along the z-axis and the r-axis. I have attached part of the code. I am able to divide the code along the z-axis with no problem, but I do not think it reads the division along the r-axis. I have attached part the code.

G4Tubs*phantomDet = new G4Tubs("phantomDet", 0.*mm, (20.)*cm, 0.125*mm,0.*deg,360.*deg);

for (int i=0; i<1601; i++) { name1[i]= itoa(i); name[i] = "phantomDetlog" + name1[i]; name2[i] = "phantomDetphy" + name1[i]; nameR1[i] = "phantomDetlogR" + name1[i]; nameR2[i] = "phantomDetphyR" + name1[i]; phantomDetlog[i] = new G4LogicalVolume(phantomDet, Water, name[i]); phantomDetphy[i] = new G4PVPlacement(0, G4ThreeVector(0.,0.,((i-400)*0.25)*mm), phantomDetlog[i], name2[i], mainboxlog, false, i);

for (j=0; j<800; j++)

phantomDetR[i] = new G4Tubs("phantomDetR", (j*0.25)*mm, (j+1)*0.25*mm, 0.125*mm, 0.*deg, 360.*deg); phantomDetlogR[i] = new G4LogicalVolume(phantomDetR[i], Water, nameR1[i]); phantomDetphyR[i] = new G4PVPlacement(0, G4ThreeVector(0., 0., ((i-400)*0.25)*mm), phantomDetlogR[i], nameR2[i], phantomDetlog[i], false, j); }

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

1 None: Re: Voxels for G4Tubs   ( - 07 Dec, 2006)
 Add Message Add Message
to: "Voxels for G4Tubs"

 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 ]