Message: problem with a modified hadrontherapy example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question problem with a modified hadrontherapy example 

Keywords: SensitiveDetector, geometry update, hadrontherapy
Forum: Hits, Digitization and Pileup
Date: 31 Mar, 2006
From: Sara Vecchio <>

Hallo, I have a big problem which seems to be common to many users, but the answers in this forum are not satisfying (at least: I have not been able to found the right answer..).

I have extended in the hadrontherapy example the possibility to change geometry through the messenger. To be sure of the result, after the changes I apply a command /geometry_update, which corresponds to:

* void  HadrontherapyDetectorConstruction::UpdateGeometry()
* {  // clean-up previous geometry
*  G4GeometryManager::GetInstance()->OpenGeometry();
*  phantomLogicalVolume->SetRegionRootFlag(0);
*  delete specialRegion;
*  G4PhysicalVolumeStore::GetInstance()->Clean();
*  G4LogicalVolumeStore::GetInstance()->Clean();
*  G4SolidStore::GetInstance()->Clean();
*  //define new one
*  Construct();
*  G4RunManager::GetRunManager()->DefineWorldVolume(physicalTreatmentRoom); 
*  G4RunManager::GetRunManager()->GeometryHasBeenModified(); 
* }

and then a command /update_cuts to set again the cuts in the specialRegion phantomLog.

Without applying /geometry_update my geometry does not really change. However, when I use this command (even without applying changes in geometry), , though the simulation is properly working, the result from the sensitive detector is empty.

So the question is: how can I update correctly the sensitive detector geometry? what's wrong or missing in my function UpdateGeometry() ?

Please, I really need it, because I am testing the program with several targets, at the end of the proton beam, and it would be time-consuming to compile the example every time..

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

1 None: Re: problem with a modified hadrontherapy example   (Makoto Asai - 03 Apr, 2006)
(_ Sad: Re: problem with a modified hadrontherapy example   (Sara Vecchio - 04 Apr, 2006)
(_ None: Re: problem with a modified hadrontherapy example   (Makoto Asai - 14 Apr, 2006)
(_ News: Re: problem with a modified hadrontherapy example   (Sara Vecchio - 14 Apr, 2006)
 Add Message Add Message
to: "problem with a modified hadrontherapy example"

 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 ]