Message: Using GetCurrentValues-method with General Particle Source. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Using GetCurrentValues-method with General Particle Source. 

Forum: Event and Track Management
Date: 01 Oct, 2012
From: Alexandra Lysenko <Alexandra Lysenko>

Hello, everyone!

I use General Particle Source in my simulation. Previously, if I need to get a value from a macrofile, I used Energy=G4UIcommand::ConvertToDouble(UImanager->GetCurrentValues("/gun/energy")); for example.

But now, if I write Energy=G4UIcommand::ConvertToDouble(UImanager->GetCurrentValues("/gps/energy")); or

G4ThreeVector Direction=G4UIcommand::ConvertTo3Vector(UImanager->GetCurrentValues("/gps/direction"));

it doesn't work.

I typed #include "G4GeneralParticleSource.hh", but it didn't help me.

And method GetCurrentDoubleValue("/gps/direction",1) doesn't work too.

So, does /gps/ works with method GetCurrentValues? And what should i do to read a value from a macrofile in /gps/ category in my program?

Thank you in advance.

P.S. Sorry, if I posted this question to the wrong forum.

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

1 Question: Re: Using GetCurrentValues-method with General Particle Source.   (Alexandra Lysenko - 03 Oct, 2012)
 Add Message Add Message
to: "Using GetCurrentValues-method with General Particle Source."

 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 ]