File indexing completed on 2025-02-23 09:21:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifndef Run_h
0034 #define Run_h 1
0035
0036 #include "G4AnalysisManager.hh"
0037 #include "G4DataVector.hh"
0038 #include "G4Run.hh"
0039 #include "G4StatDouble.hh"
0040
0041
0042
0043 class G4Step;
0044 class G4ElectronIonPair;
0045 class TestParameters;
0046
0047
0048
0049 class Run : public G4Run
0050 {
0051 public:
0052 Run();
0053 ~Run() override = default;
0054
0055 void Merge(const G4Run*) override;
0056
0057 void BeginOfRun();
0058 void EndOfRun();
0059
0060 void BeginOfEvent();
0061 void EndOfEvent();
0062
0063 void AddEnergy(G4double edep, const G4Step*);
0064
0065 Run& operator=(const Run& right) = delete;
0066 Run(const Run&) = delete;
0067
0068 inline void SetVerbose(G4int value);
0069
0070 inline G4int GetVerbose() const;
0071
0072 inline G4double GetTotStepGas() const;
0073
0074 inline G4double GetTotCluster() const;
0075
0076 inline G4double GetMeanCluster() const;
0077
0078 inline const G4StatDouble* GetStat() const;
0079
0080 private:
0081 G4int fVerbose = 1;
0082 G4int fNbins = 0;
0083 G4double fStepGas = 0.0;
0084 G4double fMaxEnergy = 0.0;
0085 G4double fCluster = 0.0;
0086 G4double fTotStepGas = 0.0;
0087 G4double fTotCluster = 0.0;
0088 G4double fMeanCluster = 0.0;
0089 G4double fFactorALICE;
0090 G4double fWidthALICE;
0091 G4double fEvt = 0.0;
0092 G4double fTotEdep = 0.0;
0093 G4double fOverflow = 0.0;
0094
0095 G4StatDouble fEdep = 325;
0096 G4DataVector fEgas;
0097
0098 G4ElectronIonPair* fElIonPair;
0099 TestParameters* fParam;
0100 };
0101
0102
0103
0104 inline void Run::SetVerbose(G4int value)
0105 {
0106 fVerbose = value;
0107 }
0108
0109 inline G4int Run::GetVerbose() const
0110 {
0111 return fVerbose;
0112 }
0113
0114 inline G4double Run::GetTotStepGas() const
0115 {
0116 return fTotStepGas;
0117 }
0118
0119 inline G4double Run::GetTotCluster() const
0120 {
0121 return fTotCluster;
0122 }
0123
0124 inline G4double Run::GetMeanCluster() const
0125 {
0126 return fMeanCluster;
0127 }
0128
0129 inline const G4StatDouble* Run::GetStat() const
0130 {
0131 return &fEdep;
0132 }
0133
0134 #endif