Geant4  10.02.p01
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: 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 
void AddEnergy(G4double edep)
Definition: Run.hh:60
G4double GetTotCluster() const
Definition: Run.hh:120
void BeginOfRun()
Definition: Run.cc:64
Run()
Definition: Run.cc:43
G4int fNbins
Definition: Run.hh:83
G4double fWidthALICE
Definition: Run.hh:91
void SetVerbose(G4int val)
Definition: Run.hh:70
const G4StatDouble * GetStat() const
Definition: Run.hh:130
G4StatDouble fEdep
Definition: Run.hh:95
TestParameters * fParam
Definition: Run.hh:100
G4double fTotCluster
Definition: Run.hh:88
int G4int
Definition: G4Types.hh:78
G4double fFactorALICE
Definition: Run.hh:90
G4double fEvt
Definition: Run.hh:92
G4double fTotStepGas
Definition: Run.hh:87
G4double fMeanCluster
Definition: Run.hh:89
void EndOfEvent()
Definition: Run.cc:175
void BeginOfEvent()
Definition: Run.cc:165
G4double fEdep
Definition: Run.hh:76
Definition: G4Run.hh:46
Definition: G4Step.hh:76
G4double fStepGas
Definition: Run.hh:84
G4double fOverflow
Definition: Run.hh:96
G4double fTotEdep
Definition: Run.hh:94
G4ElectronIonPair * fElIonPair
Definition: Run.hh:99
G4DataVector fEgas
Definition: Run.hh:97
G4double fMaxEnergy
Definition: Run.hh:85
G4double GetTotStepGas() const
Definition: Run.hh:115
void EndOfRun()
Definition: Run.cc:147
double G4double
Definition: G4Types.hh:76
Definition: Run.hh:46
G4int GetVerbose() const
Definition: Run.hh:110
virtual void Merge(const G4Run *)
Definition: Run.cc:115
G4int fVerbose
Definition: Run.hh:103
G4double fCluster
Definition: Run.hh:86
G4double GetMeanCluster() const
Definition: Run.hh:125
~Run()
Definition: Run.cc:72