DetectorConstruction bug

Hello, i faced with wonder occasion. When i tried to check how much events hits my sensitive detector, i found that it does not getting anything.

The problem, i guess, is covered in ConstuctSDandField - it’s just being unused.

How to fix it? I have tried to follow example G04 , but still…
hitProb.zip.txt (166 Bytes)

I found out more preciselly. I have written a program, showing what is going on. When you try load gdml part througt the code , ConstructSDandField() will work, but when we put gdml reader in .mac file the work of the method disappears.
geares.zip.txt (164 Bytes)