![]() |
|
|||
File indexing completed on 2025-02-23 09:22:22
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 OpNovice/include/OpNoviceRun.hh 0027 /// \brief Definition of the OpNoviceRun class 0028 // 0029 // 0030 // 0031 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0032 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0033 0034 #ifndef OpNoviceRun_h 0035 #define OpNoviceRun_h 1 0036 0037 #include "G4Run.hh" 0038 0039 class G4ParticleDefinition; 0040 0041 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0042 0043 class OpNoviceRun : public G4Run 0044 { 0045 public: 0046 OpNoviceRun() = default; 0047 ~OpNoviceRun() override = default; 0048 0049 void SetPrimary(G4ParticleDefinition* particle, G4double energy); 0050 0051 void AddCerenkov(G4double n) 0052 { 0053 fCerenkovCounter += n; 0054 fCerenkov2 += n * n; 0055 }; 0056 void AddScintillation(G4double n) 0057 { 0058 fScintillationCounter += n; 0059 fScintillation2 += n * n; 0060 }; 0061 void AddRayleigh(G4double n) 0062 { 0063 fRayleighCounter += n; 0064 fRayleigh2 += n * n; 0065 }; 0066 void AddAbsorption(G4double n) 0067 { 0068 fAbsorptionCounter += n; 0069 fAbsorption2 += n * n; 0070 }; 0071 void AddMie(G4double n) 0072 { 0073 fMieCounter += n; 0074 fMie2 += n * n; 0075 }; 0076 void AddBoundary(G4double n) 0077 { 0078 fBoundaryCounter += n; 0079 fBoundary2 += n * n; 0080 }; 0081 0082 void Merge(const G4Run*) override; 0083 void EndOfRun(); 0084 0085 private: 0086 G4ParticleDefinition* fParticle = nullptr; 0087 0088 G4double fCerenkovCounter = 0.; 0089 G4double fCerenkov2 = 0.; 0090 G4double fScintillationCounter = 0.; 0091 G4double fScintillation2 = 0.; 0092 G4double fRayleighCounter = 0.; 0093 G4double fRayleigh2 = 0.; 0094 G4double fAbsorptionCounter = 0.; 0095 G4double fAbsorption2 = 0.; 0096 G4double fMieCounter = 0.; 0097 G4double fMie2 = 0.; 0098 G4double fBoundaryCounter = 0.; 0099 G4double fBoundary2 = 0.; 0100 G4double fEnergy = -1.; 0101 }; 0102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0103 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |