Message: Pargeant4 and SteppingAction, EventAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Pargeant4 and SteppingAction, EventAction 

Forum: Multithreading
Date: 20 Apr, 2013
From: Athreya Shankar <Athreya Shankar>

Hello all,

I am trying to count the number of photons produced in an event by placing a detector at some place in my geometry, and checking for Detection in SteppingAction, and whenever 'Detection' takes place, I intend to update a counter in eventaction. This method works well in the serial version of the code. However, when I migrate to pargeant4, the counter in eventaction is not getting update at all, and its output is always 0. The way I am accessing this counter is as follows:

In steppingaction, a line

EventAct->num_init();

gives access to the counter function num_init(), which is a member of the object EventAct, which is an instance of Eventaction class.

I would be grateful if someone could tell me how I should modify my code so that it works in the parallel version as well.

Thanks in advance, Athreya

 Add Message Add Message
to: "Pargeant4 and SteppingAction, EventAction"

 Subscribe Subscribe

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