ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimRunAction.cc
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 11/2004
2 /******************************************************************
3  * Copyright (C) 2005-2016, Hector Alvarez-Pol *
4  * All rights reserved. *
5  * *
6  * License according to GNU LESSER GPL (see lgpl-3.0.txt). *
7  * For the list of contributors see CREDITS. *
8  ******************************************************************/
9 //////////////////////////////////////////////////////////////////
10 /// \class ActarSimRunAction
11 /// Controls the actions to perform before and after a run.
12 /////////////////////////////////////////////////////////////////
13 
14 #include "ActarSimRunAction.hh"
15 
16 #include "ActarSimROOTAnalysis.hh"
17 
18 #include "G4Run.hh"
19 #include "G4RunManager.hh"
20 
21 //////////////////////////////////////////////////////////////////
22 /// Constructor. Makes nothing
24 }
25 
26 //////////////////////////////////////////////////////////////////
27 /// Destructor. Makes nothing
29 }
30 
31 //////////////////////////////////////////////////////////////////
32 /// Actions to perform at the beginning og the run
33 void ActarSimRunAction::BeginOfRunAction(const G4Run* aRun) {
34 
35  const G4int verboseLevel = G4RunManager::GetRunManager()->GetVerboseLevel();
36  if(verboseLevel>2){
37  G4cout << "##################################################################"
38  << G4endl
39  << "########### ActarSimRunAction::BeginOfRunAction() ##############"
40  << G4endl
41  << "### Run " << aRun->GetRunID() << " start." << G4endl;
42  G4cout << "##################################################################"
43  << G4endl;
44  }
45 
46  //inform the runManager to save random number seed
47  G4RunManager::GetRunManager()->SetRandomNumberStore(true);
48 
49  // Histogramming
51 }
52 
53 //////////////////////////////////////////////////////////////////
54 /// Actions to perform at the end of the run
55 void ActarSimRunAction::EndOfRunAction(const G4Run* aRun) {
56  // Histogramming
58 }
void EndOfRunAction(const G4Run *)
Actions to perform in the analysis at the end of the run.
void BeginOfRunAction(const G4Run *)
Actions to perform at the beginning og the run.
~ActarSimRunAction()
Destructor. Makes nothing.
ActarSimROOTAnalysis * gActarSimROOTAnalysis
Global pointer to this soliton.
void EndOfRunAction(const G4Run *)
Actions to perform at the end of the run.
void BeginOfRunAction(const G4Run *)
Actions to perform in the analysis at the beginning of the run.
ActarSimRunAction()
Constructor. Makes nothing.