Created attachment 242 [details] tar file with modified files including the fix When running Geant4 VMC test with optical physics and use of G4Root navigation with Geant4 10.0, we are getting many G4Exceptions of this kind -------- WWWW ------- G4Exception-START -------- WWWW ------- *** G4Exception : GeomNav0003 issued by : G4Navigator::GetLocalExitNormal() Function called when *NOT* at a Boundary. *** This is just a warning message. *** -------- WWWW -------- G4Exception-END --------- WWWW ------- and the number of produced photons is wrong. The problem was identified by A. Gheate (G4Root developer) in G4TransportationManager::SetNavigatorForTracking(..) where new navigator is not set to all data of the class and so it is not used consistently with all Geant4 classes. This seems to happen in G4OpBoundaryProcess since Geant4 10.00. A fix is proposed in the attachment. After applying this fix the Geant4 VMC test is working correctly as before. Thank you, Ivana
Thanks for the report. We're going to look into this. One question: any reason why in the proposed solution the method has been moved to non-inline ?
Keeping the method in .icc requires to add #include "G4PropagatorInField.hh", which causes then compilation error in building event: [ 80%] Building CXX object source/event/CMakeFiles/G4event.dir/src/G4EventManager.cc.o In file included from /work/packages/geant4/geant4.10.00/source/geometry/navigation/include/G4TransportationManager.hh:49:0, from /work/packages/geant4/geant4.10.00/source/event/src/G4EventManager.cc:41: /work/packages/geant4/geant4.10.00/source/geometry/navigation/include/G4PropagatorInField.hh:54:27: fatal error: G4FieldTrack.hh: No such file or directory compilation terminated. make[2]: *** [source/event/CMakeFiles/G4event.dir/src/G4EventManager.cc.o] Error 1 make[1]: *** [source/event/CMakeFiles/G4event.dir/all] Error 2 make: *** [all] Error 2 Ivana
The fixed version is now included in the development branch (tag "geomnav-V10-00-00) and will be included in a future patch. Thanks.