Message: Mixed Electromagnetic field and ChordFinder Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Mixed Electromagnetic field and ChordFinder 

Forum: Fields: Magnetic and Otherwise
Date: 22 Apr, 2015
From: Francois Mauger <Francois Mauger>

Dear G4-ers,

I'm trying to implement a generic interface between my own library that 
discribes
arbitrary EM fields (pure electric, pure magnetic, mixed 
electromagnetic, time dependant or not...) and the G4 field modelling 
system that proposes an API based on the G4Field class
and its companion classes (G4FieldManager, G4ChordFinder...).

It works well for pure magnetic fields thanks to the G4MagneticField class.
The problem occurs while I want to implement a mixed electro-magnetic field
attached to some logical volume.
What I understood for now it that I need to:
1 - create an instance of a home-made "E+B field" class
     inherited from the G4ElectroMagneticField class
2 - create a G4FieldManager instance associated to this "E+B field" object
3 - attach a G4ChordFinder to the field manager
4 - tune some parameters (delta_chord, min_step, blah blah...)
5 - attach the field manager to some logical volume(s) of interest

Browsing the source code and trying to compile some preliminary "E+B 
field" code
inherited from the G4ElectroMagneticField class and wrapping
my own *electromagnetic field objects*, it turns out that I cannot create
a G4ChordFinder object in my field manager from a G4ElectroMagneticField 
object,
but only for a G4MagneticField  !
I was not able to find a method in the API that would allow
to create a G4ChordDriver object from a G4ElectroMagneticField object, 
nor a G4ElectricField or even a G4Field.

What is the solution to this problem ?
The ChordFinder seems to be mandatory for the tracking of the particle.

I'm using 4.9.6.

Thanks for help.

Fran├žois Mauger
--

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

1 None: Electric field and "local time goes back" issue   (Francois Mauger - 23 Apr, 2015)
1 None: Re: Electric field and "local time goes back" issue   (John Apostolakis - 24 Apr, 2015)
1 None: Re: Electric field and "local time goes back" issue   (Francois Mauger - 25 Apr, 2015)
2 None: Re: Electric field and "local time goes back" issue   (Francois Mauger - 25 Apr, 2015)
2 Feedback: Re: Mixed Electromagnetic field and ChordFinder   (Gumplinger Peter - 30 Apr, 2015)
 Add Message Add Message
to: "Mixed Electromagnetic field and ChordFinder"

 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 ]