Message: Run condition access from master thread Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Run condition access from master thread 

Forum: Multithreading
Date: Mar 12, 14:31
From: Delvan Neville <Delvan Neville>

Since updating to Geant 10.5, I've been working on converting my application over to support multithreading. I'm nearly there, with just one last hang-up:

How do I access run condition details from GPS (e.g. source particle type, energy) from within the master thread given that the master run manager has no primary generator action object?

Previously I accessed it via GetUserPrimaryGeneratorAction()->GetParticleGun() to create a G4GeneralParticleSource* that I'd then poll for ->GetParticleName() and ->GetEneDist(). I use the output as part of a CSV table written to a file, so having the worker threads do it would mean duplicated entries and potential simultaneous file access.

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

1 None: Re: Run condition access from master thread   (Makoto Asai - Mar 12, 16:09)
(_ Ok: Re: Run condition access from master thread   (Delvan Neville - Mar 12, 16:26)
 Add Message Add Message
to: "Run condition access from master thread"

 Subscribe Subscribe

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