Message: Re: Secondary gamma slice-energy was abscent in Hadrontherapy Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Secondary gamma slice-energy was abscent in Hadrontherapy 

Forum: Medical Applications
Re: Question Secondary gamma slice-energy was abscent in Hadrontherapy
Date: 21 Feb, 2008
From: Francesco Romano <Francesco Romano>

Dear Gao,

I’d like to know if your small region is entirely housed inside the water phantom or not. As I see from your code, “phantomPhysicalVolume” is its mother volume, but if I look at the position it seems to be out of the Phantom, which is 40 mm of side in the original version of Hadrontherapy. Anyway, in case it is inside the water phantom, hooking “PhantomNLog” to sensitive detector is correct but not sufficient. You should also modify “HadrontherapyPhantomSD.cc” in order to collect the energy deposition in this region, too. I think this could be a way; instead of:

G4bool HadrontherapyPhantomSD::ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist)
{
  if(!ROhist)
    return false;

  if(aStep -> GetPreStepPoint() -> GetPhysicalVolume() -> GetName() != "PhantomPhys")
    return false;

  G4double energyDeposit = aStep -> GetTotalEnergyDeposit();

  if(energyDeposit == 0.) return false;

...

you should write:

G4bool HadrontherapyPhantomSD::ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist)
{
  if(!ROhist)
    return false;

  G4String sensitiveVolume = aStep -> GetPreStepPoint() -> GetPhysicalVolume() -> GetName();

  if((sensitiveVolume != "PhantomPhys")&( sensitiveVolume != " PhantomNPhys "))
    return false;

  G4double energyDeposit = aStep -> GetTotalEnergyDeposit();

  if(energyDeposit == 0.) return false;

...

Adding the name of the small volume in the if condition should provide the energy collection also in that volume.

Cheers,

Francesco Romano (for the Catania Geant4 group)

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

1 Question: Re: Secondary gamma slice-energy was abscent in Hadrontherapy   (jfgao@mdanderson.org - 25 Feb, 2008)
 Add Message Add Message
to: "Re: Secondary gamma slice-energy was abscent in Hadrontherapy"

 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 ]