Last change
on this file since 114 was
114,
checked in by moretto, 11 years ago
|
actual version of ESAF at CCin2p3
|
File size:
1.1 KB
|
Line | |
---|
1 | #include "OptRunAction.hh" |
---|
2 | #include <G4Run.hh> |
---|
3 | #include <G4Timer.hh> |
---|
4 | |
---|
5 | |
---|
6 | #include <iostream> |
---|
7 | using namespace std; |
---|
8 | |
---|
9 | OptRunAction* OptRunAction::fMe = 0; |
---|
10 | OptRunAction::OptRunAction() |
---|
11 | { |
---|
12 | fMe = this; |
---|
13 | timer = new G4Timer; |
---|
14 | SetSender("OptRunAction"); |
---|
15 | } |
---|
16 | |
---|
17 | //_______________________________________________________________________________ |
---|
18 | OptRunAction::~OptRunAction() |
---|
19 | { |
---|
20 | delete timer; |
---|
21 | } |
---|
22 | |
---|
23 | //_______________________________________________________________________________ |
---|
24 | |
---|
25 | |
---|
26 | void OptRunAction::BeginOfRunAction(const G4Run* aRun) |
---|
27 | { |
---|
28 | //G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl; |
---|
29 | timer->Start(); |
---|
30 | } |
---|
31 | //_______________________________________________________________________________ |
---|
32 | |
---|
33 | |
---|
34 | void OptRunAction::EndOfRunAction(const G4Run* aRun) |
---|
35 | { |
---|
36 | timer->Stop(); |
---|
37 | // G4cout << "number of event = " << aRun->GetNumberOfEvent() |
---|
38 | // << " " << *timer << G4endl; |
---|
39 | // MsgForm(EsafMsg::Info,"Number of events processed = %i.",aRun->GetNumberOfEvent() ); |
---|
40 | // MsgForm(EsafMsg::Info,"Begin writing file."); |
---|
41 | // MsgForm(EsafMsg::Info,"End writing file."); |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.