Message: Re: Adding new fields between runs Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad Re: Adding new fields between runs 

Forum: Fields: Magnetic and Otherwise
Re: Question Adding new fields between runs (Jan Pipek)
Re: None Re: Adding new fields between runs (Makoto Asai)
Date: 10 Feb, 2016
From: Jan Pipek <Jan Pipek>

Thanks Makoto,

I think I must have described my case incorrectly. Or perhaps I don't understand the answer.

Whatever I do (and how deeply I delve into Geant4 source code),
I can't see a way how to have the "ConstructSDandField"
called for me by the kernel a second time.
(I am not sure I want this anyway - I would rather like to find a better place to introduce a new field)

Specifically, if I issue this set of commands:

/run/beamOn 1      # RUN 0
/changeGeometry    # Simple command changing translation of one phys.volume
[/run/initialize]  # Doesn't make any difference if present or not
/run/beamOn 1      # RUN 1

ConstructSDandField is called only once (or: master + once per worker),
for Run 0. Not for Run 1. (I am positive about this - print debugging on enter).
Are you suggesting it should be called twice (per thread and master)?


P.S. I am using Geant4 10.2.

 Add Message Add Message
to: "Re: Adding new fields between runs"

 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 ]