Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
82  G4int fVerbose;
83  G4int fNbins;
84  G4double fStepGas;
85  G4double fMaxEnergy;
86  G4double fCluster;
87  G4double fTotStepGas;
88  G4double fTotCluster;
89  G4double fMeanCluster;
90  G4double fFactorALICE;
91  G4double fWidthALICE;
92  G4double fEvt;
93 
94  G4double fTotEdep;
95  G4StatDouble fEdep;
96  G4double fOverflow;
97  G4DataVector fEgas;
98 
99  G4ElectronIonPair* fElIonPair;
100  TestParameters* fParam;
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
void SetVerbose(G4int val)
Definition: Run.hh:70
const G4StatDouble * GetStat() const
Definition: Run.hh:130
int G4int
Definition: G4Types.hh:78
void EndOfEvent()
Definition: Run.cc:180
void BeginOfEvent()
Definition: Run.cc:170
const XML_Char int const XML_Char * value
Definition: expat.h:331
Definition: G4Run.hh:46
Definition: G4Step.hh:76
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
G4double GetMeanCluster() const
Definition: Run.hh:125
~Run()
Definition: Run.cc:72