Message: many spheres and tubes into ComputeSolid function Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question many spheres and tubes into ComputeSolid function 

Forum: Geometry
Date: 22 Apr, 2013
From: Batom <Batom>

Dear Users,

I am trying to build own geometry model into the function ComputeSolid in the Parameterisation class. The my simple model is several spheres and tubs with different sized. In this case, how to use the function ComputeSolid in the Parameterisation class? Follow, I don`t know that true declared for spheres and tubs. Please advise me for detail.

examParameterisation::ComputeSolid(const G4int copyNo,
                                               G4VPhysicalVolume* physiVol )
{
	G4VSolid* target;
    if( tar[copyNo] == 2 ) {	
	target = new G4Sphere("solidS", 0.*um, RadiusS[copyNo],0.*deg, 360*deg,0.*deg, 180*deg);	 
	return target;   }
    else if(tar[copyNo] == 1 ) { 
	target = new G4Tubs("solidT", 0.*um, RadiusT[copyNo],LengthT[copyNo],0.*deg, 360*deg); 	 
 	return target;          }

}

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

1 Warning: Re: many spheres and tubes into ComputeSolid function   (Batom - 22 Apr, 2013)
 Add Message Add Message
to: "many spheres and tubes into ComputeSolid function"

 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 ]