Message: G4VPhysicalVolume->GetTranslation() from threads Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4VPhysicalVolume->GetTranslation() from threads 

Forum: Multithreading
Date: 07 Apr, 2016
From: Jan Pipek <Jan Pipek>


I have one question regarding the MT implementation of the geometry.

In my application, I run a simple web server in a separate thread (not master, not worker) that allows me to remotely inspect and control some aspects of the running application. However, when I try to access (some) geometry information (like PV translations, LV materials etc.), I run into an unpleasant surprise in the form of application crash. This seems to be the result of the "subinstances" being used to hold this information (these subinstances, as I understand it, are relevant only for threads initialized by the Geant4 MT mechanism).

So the question is - can I somehow get to full geometry data from an independent thread? Or is there any other suggested approach? I don't have the necessary deep understanding of Geant4 MT :-(

Thanks for any ideas, Jan

P.S. Of course, general access to geometry may be dangerous, but at least in Idle state, I don't see any reason why the information should not be readable (if not writable).

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

1 Idea: Re: G4VPhysicalVolume->GetTranslation() from threads   (Andrea Dotti - 07 Apr, 2016)
 Add Message Add Message
to: "G4VPhysicalVolume->GetTranslation() from threads"

 Subscribe Subscribe

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