/[PAMELA software]/PamG4/src/RunAction.cc
ViewVC logotype

Annotation of /PamG4/src/RunAction.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Dec 13 16:20:39 2005 UTC (18 years, 11 months ago) by cafagna
Branch point for: start, MAIN
Initial revision

1 cafagna 1.1 #include "RunAction.hh"
2     #include "G4Run.hh"
3     #include "G4UImanager.hh"
4     #include "G4VVisManager.hh"
5     #include "G4ios.hh"
6    
7     RunAction::RunAction()
8     {
9     runIDcounter = 0;
10    
11     }
12    
13     RunAction::~RunAction()
14     {
15     }
16    
17     void RunAction::BeginOfRunAction(const G4Run* aRun)
18     {
19     N=0;
20    
21     ((G4Run *)(aRun))->SetRunID(runIDcounter++);
22    
23     G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
24    
25     // G4UImanager* UI = G4UImanager::GetUIpointer();
26     // G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
27    
28     // if(pVVisManager) UI->ApplyCommand("/vis/scene/notifyHandlers");
29    
30    
31     }
32    
33    
34     void RunAction::EndOfRunAction(const G4Run* aRun)
35     {
36    
37     // if (G4VVisManager::GetConcreteInstance())
38     // G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
39    
40     G4cout << "number of event=" << aRun->GetNumberOfEvent() << G4endl;
41     N=0;
42     }
43    
44     // 2005 by G.I.Vasilyev

  ViewVC Help
Powered by ViewVC 1.1.23