Message: AW: Check the field existence Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None AW: Check the field existence 

Forum: Fields: Magnetic and Otherwise
Re: Question Check the field existence (Oleg Kiselev)
Re: Feedback Re: Check the field existence (Gumplinger Peter)
Date: 19 May, 2010
From: Oleg Kiselev <Oleg Kiselev>

Dear Peter,
I checked the programs that read the field values - they are OK. I also tried to set the uniform magnetic field - still problems. The method GetFieldValue is really called at each step. I checked that it gives the correct field values at the initialization stage - everything looks fine. The problem is that the same method gives absolutely wrong (zero) values during tracking. 
I would be glad if you would have a look on the code and the log file (MuCatcher.out). You would see that there is a difference between the field values at the initialization (line 167) and tracking (start from line 440).
Sorry, the code is a bit large but the part related to the field is based on the field04 example.  
The link to the code: http://people.web.psi.ch/kiselev/G4/MuCatcher.tar.gz  

Thank you in advance, Oleg Kiselev.
  

-----Ursprüngliche Nachricht-----
Von: Gumplinger Peter [mailto:gum@triumf.ca] 
Gesendet: Donnerstag, 29. April 2010 22:31
An: emfields-g4hn@slac.stanford.edu
Betreff: Re: Check the field existence


*** Discussion title: Fields: Magnetic and Otherwise

Well, you could check that your method GetFieldValue is actually called.
Also, field04 is maybe the most complicated example you could start from
when all you want is one field for the entire simulation world. I think
for the mechanics of how to attach a global field to the 'world', the
field01 example would suffice.

-------------------------------------------------------------
Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emfields/169/1.html 

 Add Message Add Message
to: "AW: Check the field existence"

 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 ]