Message: Getting commented commands read in from macro file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Getting commented commands read in from macro file 

Forum: (Graphical) User Interfaces
Date: 24 Apr, 2014
From: RY <RY>

Hi,

I have a macro file of the following form:

# 1 /gun/particle e- ... # 2 /gun/particle e- ...

Is there anyway to read in the integer in the commented line?

I know, for example, that you can read in the parameters of defined commands such as:

G4double energy = G4UIcommand::ConvertToDouble(UI>GetCurrentValues("/gun/energy"));

Will read in the energy as a double.

Any insight would be appreciated.

Thanks,

Ryan

 Add Message Add Message
to: "Getting commented commands read in from macro file"

 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 ]