| Message: Problem defining FastSimulationModel with Logical World Volume | Not Logged In (login) |
|
Hi, I want to implement a Fast Simulation Model in the World Logical Volume with Geant 4.8. I have the following code in the Detector Construction: **************************************************************
G4VPhysicalVolume* MyDetector::Construct( )
{
......
......
G4Region* detectorRegion = new G4Region("EM_Detector_Region");
detectorRegion->AddRootLogicalVolume(logicalMyWorld);
MyEMShowerModel* myShowerModel =
new MyEMShowerModel("emShowerModel",detectorRegion);
......
......
}
*************************************************************** MyEMShowerModel class inherits from the Abstract Class G4VFastSimulationModel But, when I run the program I get the following error: **************************************************************** ......... ......... ......... The world volume has a user-defined region <EM_Detector_Region>.
*** G4Exception : RUN:WorldHasUserDefinedRegion
issued by : G4RunManager::DefineWorldVolume
World would have a default region assigned by RunManagerKernel.
*** Fatal Exception *** core dump ***
*** G4Exception: Aborting execution *** Aborted **************************************************************** I have done this , and is working properly with Geant 4.7. How can I do this in Geant 4.8 without having to change the detector geometry? thanks... |
| Inline Depth: | Outline Depth: | Add message: |
|
to: |