Problem 1537 - Problem with SetNavigatorForTracking with Geant4 10.0
Summary: Problem with SetNavigatorForTracking with Geant4 10.0
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/navigation (show other problems)
Version: other
Hardware: All All
: P5 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2013-12-10 14:25 CET by Ivana Hrivnacova
Modified: 2013-12-11 11:24 CET (History)
1 user (show)

See Also:


Attachments
tar file with modified files including the fix (4.69 KB, application/x-gzip)
2013-12-10 14:25 CET, Ivana Hrivnacova
Details

Note You need to log in before you can comment on or make changes to this problem.
Description Ivana Hrivnacova 2013-12-10 14:25:25 CET
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
Comment 1 Gabriele Cosmo 2013-12-10 17:03:12 CET
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 ?
Comment 2 Ivana Hrivnacova 2013-12-10 17:19:23 CET
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
Comment 3 Gabriele Cosmo 2013-12-11 11:24:58 CET
The fixed version is now included in the development branch (tag "geomnav-V10-00-00) and will be included in a future patch. Thanks.