ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Run.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file 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 //
26 
29 //
30 //
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33 
34 #ifndef Run_h
35 #define Run_h 1
36 
37 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
38 
39 #include "G4Run.hh"
40 #include "G4DataVector.hh"
41 #include "G4StatDouble.hh"
42 
43 #include "g4root.hh"
44 
45 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46 
47 class G4Step;
48 class G4ElectronIonPair;
49 class TestParameters;
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 const G4StatDouble* GetStat() const;
75 
76 private:
77 
79  G4int fNbins;
83  G4double fEvt;
84 
89 
91 };
92 
93 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94 
95 inline void Run::SetVerbose(G4int value)
96 {
97  fVerbose = value;
98 }
99 
100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101 
102 inline G4int Run::GetVerbose() const
103 {
104  return fVerbose;
105 }
106 
107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
108 
109 inline G4double Run::GetTotStepGas() const
110 {
111  return fTotStepGas;
112 }
113 
114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115 
116 inline const G4StatDouble* Run::GetStat() const
117 {
118  return &fEdep;
119 }
120 
121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122 
123 #endif
124 
125