|Message: multiple field manager problem||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)|
Hi, I created a simple detector structure based on one of the novice examples and incorporated my own Field class derived from G4ElectroMagneticField and it works fine. I followed the instructions on page: http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch04s03.html and I can see the charged particles trajectories bending in the field OK. It is actually on sourceforge in case you want to look at it (just private code, nothing fancy): https://sourceforge.net/p/cuspg4/code/21/tree/trunk/Ex1/src/Field.cc https://sourceforge.net/p/cuspg4/code/21/tree/trunk/Ex1/include/Field.hh Now, I needed to incorporate this EM field implementation into a bigger Geant4 code in which there are other fields as well, buy they have their own local field managers created in them, and they associate the local field managers with the relevant logical volumes only. I also associate my field manager with separate logical volumes only. I can even see that my class's GetFieldValue(…) function is being called all the time but still I cannot see the particle trajectories bending! My original code (with a single global field manager) works both under 4.9.4.p04 and 4.9.5.p02, but when doing the same with multiple field managers it doesn't work (that I reproduced only with 4.9.4.p04 because we are still migrating the code to 4.9.5). 1) I suspect maybe there is some field manager ownership problem, although only local field managers are created. Can this be a problem? How can I find out in run time which field manager is 'in action' during tracking? 2) Since I don't have any clue what the problem can be I was wondering if there is any significance that in my original code I used standard volumes (G4Box and G4Tubs), while in the other bigger code there is a lot of G4SubtractionSolids the logical volumes of which I am using to associate them with the field manager of my class. 3) Apart from GetFieldValue, is there other any other way to - extract what the field value is at a certain space point ? - debug the charged particle's evolution to find out what field value they 'see' while propagating in space? 4) Could any of you point me to a working example code in which there are multiple field managers involved? Thanks a lot for any hints, Balint [ MIME part of type text/html without a name stripped ]
|Inline Depth:||Outline Depth:||Add message:|