W pliku
MyRun.hh
zmiany
kolorem czerwonym
.............................................................................
class
G4Event;
class MyRun : public G4Run {
public:
..............................................................................
//Method
void
RecordEvent(const G4Event*);
};
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
W pliku MyRun.cc
zmiany
kolorem czerwonym
.............................................................................
#include "MyRun.hh"
#include
"G4Event.hh"
#include
"globals.hh"
#include
"G4TrajectoryContainer.hh"
MyRun::MyRun()
{}
MyRun::~MyRun()
{}
void
MyRun::RecordEvent(const G4Event* evt)
{
numberOfEvent++;
G4TrajectoryContainer* container =
evt->GetTrajectoryContainer();
G4cout
<<
"MyLog: number of particle processed in this event "
<<
container->size() << G4endl;
}