Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:21:04

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 electromagnetic/TestEm8/include/Run.hh
0027 /// \brief Definition of the Run class
0028 //
0029 //
0030 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0031 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0042 
0043 class G4Step;
0044 class G4ElectronIonPair;
0045 class TestParameters;
0046 
0047 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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