Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-07 07:51:57

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 #include "G4AnalysisManager.hh"
0033 #include "G4DataVector.hh"
0034 #include "G4Run.hh"
0035 #include "G4StatDouble.hh"
0036 
0037 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0038 
0039 class G4Step;
0040 class G4ElectronIonPair;
0041 class TestParameters;
0042 
0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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