I'm trying to single out hadronic processes at tracking time (in a shower) and a convenient way would be to look at the process type (from G4VProcess' GetProcessType() method) but this turns out not to be set (it is still set to fNotDefined)
I'll have a look to see the implications. Many greetings, Hans-Peter.
G4ProcessType is set for hadronics as of geant4-07-01-patch-01