W pliku MyRunAction.hh         (zmiany kolorem czerwonym)

.................................................................
class MyRunAction : public G4UserRunAction {
.................................................................
 
  // Method
   void BeginOfRunAction(const G4Run* );
   void EndOfRunAction(const G4Run* );
   G4Run* GenerateRun();

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

W pliku MyRunAction.cc         (zmiany kolorem czerwonym)

.................................................................

#include "MyRunAction.hh"
#include "G4Run.hh"
#include "MyRun.hh"
#include "globals.hh"

.....................................................................

G4Run* MyRunAction::GenerateRun()
{
 return new MyRun();
}