Geant4  10.02
Run.hh
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 //
28 //
29 // $Id: RunAction.hh 68999 2013-04-15 09:23:17Z gcosmo $
30 //
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 
34 #ifndef Run_h
35 #define Run_h 1
36 
37 #include "G4Run.hh"
38 #include "ProcessesCount.hh"
39 #include "globals.hh"
40 
41 
42 class G4Run;
43 class G4Material;
47 
48 
49 
50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51 
52 class Run : public G4Run
53 {
54  public:
56  ~Run();
57 
58  public:
59  virtual void Merge(const G4Run*);
61 
62  void EndOfRun();
63 
64 
66  void sumEsecond(G4double e) { fEsecondary += e; fEsecondary2 += e*e;
67  fNbSec++;};
68 
70  fPartFlowCavity[k]++;};
71 
72  void AddEdepCavity(G4double de) { fEdepCavity += de; fEdepCavity2 += de*de;
73  fNbEventCavity++;};
75 
77  fNbStepWall++;};
79  fNbStepCavity++;};
80 
81 
82  private:
86 
89 
95 
97 
101 
102  private:
107 
115 
116 };
117 
118 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
119 
120 #endif
121 
void AddTrakCavity(G4double dt)
Definition: Run.hh:74
std::vector< OneProcessCount * > ProcessesCount
G4double fCavityRadius
Definition: Run.hh:109
PrimaryGeneratorAction class.
G4double fDensityCavity
Definition: Run.hh:113
G4double fEdepCavity2
Definition: Run.hh:92
void CountProcesses(G4String procName)
Definition: Run.cc:72
G4double fOldEmean
Definition: Run.hh:96
G4double fSurfaceCavity
Definition: Run.hh:110
void StepInCavity(G4double s)
Definition: Run.hh:78
Run()
Definition: Run.cc:43
G4double fEnerFlowCavity[2]
Definition: Run.hh:91
void sumEsecond(G4double e)
Definition: Run.hh:66
long G4long
Definition: G4Types.hh:80
G4double fDensityWall
Definition: Run.hh:106
G4double fEsecondary
Definition: Run.hh:87
G4long fPartFlowCavity[2]
Definition: Run.hh:90
int G4int
Definition: G4Types.hh:78
G4double fEsecondary2
Definition: Run.hh:87
static const double s
Definition: G4SIunits.hh:168
void SurveyConvergence(G4int)
Definition: Run.cc:315
G4double fEdepCavity
Definition: Run.hh:92
G4long fNbSec
Definition: Run.hh:88
G4double fStepCavity
Definition: Run.hh:99
G4double fMassCavity
Definition: Run.hh:114
G4long fNbStepWall
Definition: Run.hh:100
Definition: G4Run.hh:46
PrimaryGeneratorAction * fKinematic
Definition: Run.hh:84
G4double fStepWall2
Definition: Run.hh:98
G4double fWallRadius
Definition: Run.hh:104
G4double fTrkSegmCavity
Definition: Run.hh:93
G4long fNbEventCavity
Definition: Run.hh:94
G4double fOldDose
Definition: Run.hh:96
Definition of the ProcessesCount class.
G4Material * fMateWall
Definition: Run.hh:105
ProcessesCount * fProcCounter
Definition: Run.hh:85
G4double fVolumeCavity
Definition: Run.hh:111
void StepInWall(G4double s)
Definition: Run.hh:76
G4double fWallThickness
Definition: Run.hh:103
void FlowInCavity(G4int k, G4double e)
Definition: Run.hh:69
G4double fStepCavity2
Definition: Run.hh:99
G4long fNbStepCavity
Definition: Run.hh:100
DetectorConstruction * fDetector
Definition: Run.hh:63
Detector construction class to demonstrate various ways of placement.
void EndOfRun()
Definition: Run.cc:147
G4double fStepWall
Definition: Run.hh:98
double G4double
Definition: G4Types.hh:76
Definition: Run.hh:46
void AddEdepCavity(G4double de)
Definition: Run.hh:72
G4Material * fMateCavity
Definition: Run.hh:112
virtual void Merge(const G4Run *)
Definition: Run.cc:115
~Run()
Definition: Run.cc:72
G4double fCavityThickness
Definition: Run.hh:108