Files
geant4/examples/extended/g3tog4/clGeometry/src/G3toG4RunAction.cc
T
2016-06-08 15:55:53 +02:00

39 lines
1.0 KiB
C++

// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3toG4RunAction.cc,v 1.1 2000/07/24 11:23:44 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
#include "G4ios.hh"
#include "G3toG4RunAction.hh"
#include "G4Run.hh"
#include "G4VVisManager.hh"
#include "G4UImanager.hh"
#include "G4ios.hh"
G3toG4RunAction::G3toG4RunAction(){
runIDcounter = 0;
}
G3toG4RunAction::~G3toG4RunAction(){;}
void G3toG4RunAction::BeginOfRunAction(const G4Run* aRun){
((G4Run *)(aRun))->SetRunID(runIDcounter++);
G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
G4UImanager* UI = G4UImanager::GetUIpointer();
if (G4VVisManager::GetConcreteInstance()) {
UI->ApplyCommand("/vis~/clear/view");
UI->ApplyCommand("/vis~/draw/current");
}
}
void G3toG4RunAction::EndOfRunAction(const G4Run* aRun){;}