Message: Changing an user defined variable with UI Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Changing an user defined variable with UI 

Forum: Run Management
Date: 16 Jul, 2014
From: <cddcdd>

Hi,

I would like to define a variable in SteppingAction called "factor" and then using the macro file change that variable every 1000 runs. For example in my .mac file I would have:

factor = 0.1

/run/beamOn 1000

factor = 0.2

/run/beamOn 1000

factor = 0.3

/run/beamOn 1000 ...

Is this possible in Geant4? I have looked through the documentation/examples and have only found how to change things such as your detector parameters in the DetectorConstruction class. Are there any examples that do something similar for a user defined variable in the SteppingAction class?

Thanks

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

1 Feedback: Re: Changing an user defined variable with UI   (Gumplinger Peter - 16 Jul, 2014)
(_ Feedback: Re: Changing an user defined variable with UI   (cddcdd - 16 Jul, 2014)
 Add Message Add Message
to: "Changing an user defined variable with UI"

 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 ]