|Message: Mixed Electromagnetic field and ChordFinder||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
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:||Outline Depth:||Add message:|