Message: Since I use an own Run class it gets stuck at the beginning of the second run Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Since I use an own Run class it gets stuck at the beginning of the second run 

Forum: Run Management
Date: 09 Jan, 2015
From: Andrea Conti <Andrea Conti>

I want to simulate the ambient dose outside of a container where there is a source. Therefore I made my own primitive scorer (actually I just doctored up the G4PSCylinderSurfaceFlux class), which stores in an event map the dosis contribution of each particle crossing the detector and I implemented an own Run class extending G4Run, where the method RecordEvent has been rewritten so that it sums in a certain variable each event dosis in order to accumulate the total run dosis: so I just imitate the B3 basic example. I use the command beamOn from the command line, to prompt the decay of some nuclei in the container and so the generation of some radiation. Since I introduced the new own Run class the system runs perfectly in the first run (that is, the first beamOn N command), no matter how many events I order and I get the dosis. But when I use beamOn a second time, to order new events from the command line, it gets immediately stuck and the execution of the program is interrupted by Windows.

Can anybody suggest me where the problem could be, or just in which part of the code I should investigate ? In the B3 example there is a B3ActionInitialization class. I don't have one: is maybe there the root of the problem ?

Andrea Conti

 Add Message Add Message
to: "Since I use an own Run class it gets stuck at the beginning of the second run"

 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 ]