Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
extended/electromagnetic/TestEm8/include/Run.hh
이 파일의 문서화 페이지로 가기
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: Run.hh 75565 2013-11-04 11:24:11Z vnivanch $
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 "G4DataVector.hh"
39 #include "G4StatDouble.hh"
40 
41 #include "g4root.hh"
42 
43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44 
45 class G4Step;
46 class G4ElectronIonPair;
47 class TestParameters;
48 
49 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50 
51 class Run : public G4Run
52 {
53 public:
54 
55  Run();
56  virtual ~Run();
57 
58  virtual void Merge(const G4Run*);
59 
60  void BeginOfRun();
61  void EndOfRun();
62 
63  void BeginOfEvent();
64  void EndOfEvent();
65 
66  void AddEnergy(G4double edep, const G4Step*);
67 
68  inline void SetVerbose(G4int value);
69 
70  inline G4int GetVerbose() const;
71 
72  inline G4double GetTotStepGas() const;
73 
74  inline G4double GetTotCluster() const;
75 
76  inline G4double GetMeanCluster() const;
77 
78  inline const G4StatDouble* GetStat() const;
79 
80 private:
81 
93 
98 
101 };
102 
103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104 
105 inline void Run::SetVerbose(G4int value)
106 {
107  fVerbose = value;
108 }
109 
110 inline G4int Run::GetVerbose() const
111 {
112  return fVerbose;
113 }
114 
116 {
117  return fTotStepGas;
118 }
119 
121 {
122  return fTotCluster;
123 }
124 
126 {
127  return fMeanCluster;
128 }
129 
130 inline const G4StatDouble* Run::GetStat() const
131 {
132  return &fEdep;
133 }
134 
135 #endif
136 
137 
double G4double
Definition: G4Types.hh:76
const XML_Char int const XML_Char * value
Definition: expat.h:331
virtual void Merge(const G4Run *)
Definition: G4Step.hh:76
Double_t edep
Definition: G4Run.hh:46
const G4StatDouble * GetStat() const
int G4int
Definition: G4Types.hh:78