Geant4
10.02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
RunAction.cc
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// $Id: RunAction.cc 88353 2015-02-16 08:54:08Z gcosmo $
27
//
30
31
#include "
G4MPImanager.hh
"
32
#include <stdio.h>
33
#include "
G4Threading.hh
"
34
#include "Analysis.hh"
35
#include "RunAction.hh"
36
37
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
38
RunAction::RunAction
()
39
{
40
}
41
42
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
RunAction::~RunAction
()
44
{
45
}
46
47
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48
void
RunAction::BeginOfRunAction
(
const
G4Run
*)
49
{
50
Analysis
* myana =
Analysis::GetAnalysis
();
51
myana->
Clear
();
52
}
53
54
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55
void
RunAction::EndOfRunAction
(
const
G4Run
*)
56
{
57
G4int
rank =
G4MPImanager::GetManager
()-> GetRank();
58
59
char
str[64];
60
sprintf(str,
"dose-rank%03d.root"
, rank);
61
G4String
fname(str);
62
63
Analysis
* myana =
Analysis::GetAnalysis
();
64
myana-> Save(fname);
65
}
RunAction::RunAction
RunAction()
Definition:
RunAction.cc:42
RunAction::BeginOfRunAction
void BeginOfRunAction(const G4Run *)
Definition:
RunAction.cc:57
Analysis
Definition:
Analysis.hh:43
JA::Clear
void Clear(Node *)
Definition:
G4XXXSGSceneHandler.cc:485
G4int
int G4int
Definition:
G4Types.hh:78
G4MPImanager.hh
MPI manager class.
G4Threading.hh
Analysis::GetAnalysis
static Analysis * GetAnalysis()
Definition:
Analysis.cc:45
RunAction::EndOfRunAction
void EndOfRunAction(const G4Run *)
Definition:
RunAction.cc:260
G4Run
Definition:
G4Run.hh:46
G4MPImanager::GetManager
static G4MPImanager * GetManager()
Definition:
G4MPImanager.cc:103
RunAction::~RunAction
~RunAction()
Definition:
RunAction.cc:52
G4String
Definition:
G4String.hh:45
geant4.10.02
examples
extended
parallel
MPI
examples
exMPI02
src
RunAction.cc
Generated on Thu Dec 31 2015 10:42:57 for Geant4 by
1.8.8