File indexing completed on 2026-04-07 07:51:57
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 #ifndef Run_h
0030 #define Run_h 1
0031
0032 #include "G4AnalysisManager.hh"
0033 #include "G4DataVector.hh"
0034 #include "G4Run.hh"
0035 #include "G4StatDouble.hh"
0036
0037
0038
0039 class G4Step;
0040 class G4ElectronIonPair;
0041 class TestParameters;
0042
0043
0044
0045 class Run : public G4Run
0046 {
0047 public:
0048 Run();
0049 ~Run() override = default;
0050
0051 void Merge(const G4Run*) override;
0052
0053 void BeginOfRun();
0054 void EndOfRun();
0055
0056 void BeginOfEvent();
0057 void EndOfEvent();
0058
0059 void AddEnergy(G4double edep, const G4Step*);
0060
0061 Run& operator=(const Run& right) = delete;
0062 Run(const Run&) = delete;
0063
0064 inline void SetVerbose(G4int value);
0065
0066 inline G4int GetVerbose() const;
0067
0068 inline G4double GetTotStepGas() const;
0069
0070 inline G4double GetTotCluster() const;
0071
0072 inline G4double GetMeanCluster() const;
0073
0074 inline const G4StatDouble* GetStat() const;
0075
0076 private:
0077 G4int fVerbose = 1;
0078 G4int fNbins = 0;
0079 G4double fStepGas = 0.0;
0080 G4double fMaxEnergy = 0.0;
0081 G4double fCluster = 0.0;
0082 G4double fTotStepGas = 0.0;
0083 G4double fTotCluster = 0.0;
0084 G4double fMeanCluster = 0.0;
0085 G4double fFactorALICE;
0086 G4double fWidthALICE;
0087 G4double fEvt = 0.0;
0088 G4double fTotEdep = 0.0;
0089 G4double fOverflow = 0.0;
0090
0091 G4StatDouble fEdep = 325;
0092 G4DataVector fEgas;
0093
0094 G4ElectronIonPair* fElIonPair;
0095 TestParameters* fParam;
0096 };
0097
0098
0099
0100 inline void Run::SetVerbose(G4int value)
0101 {
0102 fVerbose = value;
0103 }
0104
0105 inline G4int Run::GetVerbose() const
0106 {
0107 return fVerbose;
0108 }
0109
0110 inline G4double Run::GetTotStepGas() const
0111 {
0112 return fTotStepGas;
0113 }
0114
0115 inline G4double Run::GetTotCluster() const
0116 {
0117 return fTotCluster;
0118 }
0119
0120 inline G4double Run::GetMeanCluster() const
0121 {
0122 return fMeanCluster;
0123 }
0124
0125 inline const G4StatDouble* Run::GetStat() const
0126 {
0127 return &fEdep;
0128 }
0129
0130 #endif