How to execute Generate resolution under G4RunAction class?

I write some lines code in Generate resolution under G4RunAction class,but this section code is not executed,what can i do to enable these code to be executed?