Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-06 07:48:48

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 /// \file Run.hh
0027 /// \brief Definition of the Run class
0028 
0029 #ifndef Run_h
0030 #define Run_h 1
0031 
0032 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0033 
0034 #include "G4AnalysisManager.hh"
0035 #include "G4DataVector.hh"
0036 #include "G4Run.hh"
0037 #include "G4StatDouble.hh"
0038 
0039 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0040 
0041 class G4Step;
0042 class G4ElectronIonPair;
0043 class TestParameters;
0044 
0045 class Run : public G4Run
0046 {
0047   public:
0048     Run();
0049     virtual ~Run();
0050 
0051     virtual void Merge(const G4Run*);
0052 
0053     void BeginOfRun();
0054     void EndOfRun();
0055 
0056     void BeginOfEvent();
0057     void EndOfEvent();
0058 
0059     void AddEnergy(G4double edep, const G4Step*);
0060 
0061     inline void SetVerbose(G4int value);
0062 
0063     inline G4int GetVerbose() const;
0064 
0065     inline G4double GetTotStepGas() const;
0066 
0067     inline const G4StatDouble* GetStat() const;
0068 
0069   private:
0070     G4int fVerbose;
0071     G4int fNbins;
0072     G4double fStepGas;
0073     G4double fMaxEnergy;
0074     G4double fTotStepGas;
0075     G4double fEvt;
0076 
0077     G4double fTotEdep;
0078     G4StatDouble fEdep;
0079     G4double fOverflow;
0080     G4DataVector fEgas;
0081 
0082     TestParameters* fParam;
0083 };
0084 
0085 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0086 
0087 inline void Run::SetVerbose(G4int value)
0088 {
0089   fVerbose = value;
0090 }
0091 
0092 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0093 
0094 inline G4int Run::GetVerbose() const
0095 {
0096   return fVerbose;
0097 }
0098 
0099 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0100 
0101 inline G4double Run::GetTotStepGas() const
0102 {
0103   return fTotStepGas;
0104 }
0105 
0106 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0107 
0108 inline const G4StatDouble* Run::GetStat() const
0109 {
0110   return &fEdep;
0111 }
0112 
0113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0114 
0115 #endif