Message: How to Get a Lateral Dose Profile Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None How to Get a Lateral Dose Profile 

Forum: Biasing and Scoring
Date: 19 Jul, 2012
From: ckying <ckying>

Dear G4users

Hi I am new in G4 and currently I want to simulate and get a lateral beam profile. The geometry setup is just a simple box 20*20*20 cm and 200 copy array detector (sensitive detector) in Y-axis ( 100mm*1mm*0.1mm ).

By the way I can get the energy deposit in the detector and plot a graph. The source is carbon ion (290*12)MeV from Z-axis. using Angular distribution method spread out the beam.

BeamEnergyPattern() is monoenergetic and using CLHEP::RandFlat::shoot(0., twopi); Below is the code for the momentum

  G4double cosTheta= CLHEP::RandFlat::shoot(cos(100 mrad), 1.); 
  G4double phi2= CLHEP::RandFlat::shoot(0., twopi);
  G4double px= momentum* sqrt(1.-cosTheta*cosTheta)* cos(phi2);
  G4double py= momentum* sqrt(1.-cosTheta*cosTheta)* sin(phi2);
  G4double pz= momentum* cosTheta;
  G4PrimaryParticle* primaryParticle = new G4PrimaryParticle(particle, px, py, pz);

But many times I have trying still cannot get a flat lateral dose distribution, may know what is the problems?

Here I attach the graph of the dose profile. Thanks

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2012/07/19/07.09-93274-Lateral_dose.ods

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

1 None: Re: How to Get a Lateral Dose Profile   (ckying - 19 Jul, 2012)
 Add Message Add Message
to: "How to Get a Lateral Dose Profile"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews