|
||||
File indexing completed on 2025-01-18 09:58:31
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 // 0027 // ------------------------------------------------------------------- 0028 // 0029 // GEANT4 Class header file 0030 // 0031 // 0032 // File name: G4IonFluctuations 0033 // 0034 // Author: Vladimir Ivanchenko 0035 // 0036 // Creation date: 02.04.2003 0037 // 0038 // Modifications: 0039 // 0040 // 16-10-03 Changed interface to Initialisation (V.Ivanchenko) 0041 // 01-06-08 Added initialisation of effective charge prestep (V.Ivanchenko) 0042 // 0043 // Class Description: 0044 // 0045 // Implementation of ion energy loss fluctuations 0046 0047 // ------------------------------------------------------------------- 0048 // 0049 0050 #ifndef G4IonFluctuations_h 0051 #define G4IonFluctuations_h 1 0052 0053 #include "G4VEmFluctuationModel.hh" 0054 #include "G4ParticleDefinition.hh" 0055 0056 class G4Pow; 0057 class G4UniversalFluctuation; 0058 0059 class G4IonFluctuations : public G4VEmFluctuationModel 0060 { 0061 0062 public: 0063 0064 explicit G4IonFluctuations(const G4String& nam = "IonFluc"); 0065 0066 ~G4IonFluctuations() override; 0067 0068 // Sample fluctuations 0069 G4double SampleFluctuations(const G4MaterialCutsCouple*, 0070 const G4DynamicParticle*, 0071 const G4double tcut, 0072 const G4double tmax, 0073 const G4double length, 0074 const G4double meanLoss) override; 0075 0076 // Compute dispertion 0077 G4double Dispersion(const G4Material*, 0078 const G4DynamicParticle*, 0079 const G4double tcut, 0080 const G4double tmax, 0081 const G4double length) override; 0082 0083 // Initialisation prerun 0084 void InitialiseMe(const G4ParticleDefinition*) override; 0085 0086 // Initialisation prestep 0087 void SetParticleAndCharge(const G4ParticleDefinition*, 0088 G4double q2) override; 0089 0090 // hide assignment operator 0091 G4IonFluctuations & operator=(const G4IonFluctuations &right) = delete; 0092 G4IonFluctuations(const G4IonFluctuations&) = delete; 0093 0094 private: 0095 0096 G4double Factor(const G4Material*, G4double Zeff); 0097 G4double RelativisticFactor(const G4Material*, G4double Zeff); 0098 0099 const G4ParticleDefinition* particle = nullptr; 0100 G4UniversalFluctuation* uniFluct; 0101 G4Pow* g4calc; 0102 0103 G4double particleMass; 0104 G4double charge = 1.0; 0105 G4double chargeSquare = 1.0; 0106 G4double effChargeSquare = 1.0; 0107 0108 // data members to speed up the fluctuation calculation 0109 G4double parameter; 0110 G4double theBohrBeta2; 0111 G4double minFraction = 0.2; 0112 G4double xmin = 0.2; 0113 G4double minLoss; 0114 // cash 0115 G4double kineticEnergy = 0.0; 0116 G4double beta2 = 0.0; 0117 }; 0118 0119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0120 0121 #endif 0122
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |