26 #include "G4UImanager.hh"
27 #include "G4VisManager.hh"
34 : runID(0), analysis(AN)
36 G4cout << G4endl <<
"###### Calling/Leaving QweakSimRunAction::QweakSimRunAction()" << G4endl << G4endl;
42 G4cout << G4endl <<
"###### Calling/Leaving QweakSimRunAction::~QweakSimRunAction()" << G4endl << G4endl;
48 G4cout << G4endl <<
"###### Calling QweakSimRunAction::BeginOfRunAction()" << G4endl << G4endl;
51 runID = aRun->GetRunID();
54 G4cout <<
"### Start of Run " <<
runID << G4endl;
61 if (G4VVisManager::GetConcreteInstance())
63 G4UImanager* UI = G4UImanager::GetUIpointer();
64 UI->ApplyCommand(
"/vis/scene/notifyHandlers");
67 G4cout << G4endl <<
"###### Leaving QweakSimRunAction::BeginOfRunAction()" << G4endl << G4endl;
73 G4cout << G4endl <<
"###### Calling QweakSimRunAction::EndOfRunAction()" << G4endl << G4endl;
76 if (
runID != aRun->GetRunID())
78 G4cout <<
"### Run number has changed from " <<
runID <<
" to " << aRun->GetRunID() <<
"." << G4endl;
82 G4cout <<
"### End of Run " <<
runID << G4endl;
88 if (G4VVisManager::GetConcreteInstance())
90 G4UImanager* UI = G4UImanager::GetUIpointer();
91 UI->ApplyCommand(
"/vis/viewer/update");
94 G4cout << G4endl <<
"###### Leaving QweakSimRunAction::EndOfRunAction()" << G4endl << G4endl;
void SetNumberOfEventToBeProcessed(G4int n)
void BeginOfRun(const G4Run *aRun)
void BeginOfRunAction(const G4Run *)
Handling of the output ROOT file.
QweakSimRunAction(QweakSimAnalysis *AN)
QweakSimAnalysis * analysis
void EndOfRunAction(const G4Run *)
void EndOfRun(const G4Run *aRun)