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

None Re: Voxels for G4Tubs 

Forum: Geometry
Re: None Voxels for G4Tubs
Date: 07 Dec, 2006
From: <fere>

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)

 Add Message Add Message
to: "Re: 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 ]