00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 // 00028 // ------------------------------------------------------------------- 00029 // 00030 // GEANT4 Class header file 00031 // 00032 // 00033 // File name: G4UniversalFluctuation 00034 // 00035 // Author: V.Ivanchenko make a class with the Laszlo Urban model 00036 // 00037 // Creation date: 03.01.2002 00038 // 00039 // Modifications: 00040 // 00041 // 09-12-02 remove warnings (V.Ivanchenko) 00042 // 28-12-02 add method Dispersion (V.Ivanchenko) 00043 // 07-02-03 change signature (V.Ivanchenko) 00044 // 13-02-03 Add name (V.Ivanchenko) 00045 // 16-10-03 Changed interface to Initialisation (V.Ivanchenko) 00046 // 07-02-05 define problim = 5.e-3 (mma) 00047 // 00048 // Class Description: 00049 // 00050 // Implementation of energy loss fluctuations 00051 00052 // ------------------------------------------------------------------- 00053 // 00054 00055 #ifndef G4UniversalFluctuation_h 00056 #define G4UniversalFluctuation_h 1 00057 00058 00059 #include "G4VEmFluctuationModel.hh" 00060 #include "G4ParticleDefinition.hh" 00061 00062 class G4UniversalFluctuation : public G4VEmFluctuationModel 00063 { 00064 00065 public: 00066 00067 G4UniversalFluctuation(const G4String& nam = "UniFluc"); 00068 00069 virtual ~G4UniversalFluctuation(); 00070 00071 virtual G4double SampleFluctuations(const G4Material*, 00072 const G4DynamicParticle*, 00073 G4double&, 00074 G4double&, 00075 G4double&); 00076 00077 virtual G4double Dispersion( const G4Material*, 00078 const G4DynamicParticle*, 00079 G4double&, 00080 G4double&); 00081 00082 virtual void InitialiseMe(const G4ParticleDefinition*); 00083 00084 // Initialisation prestep 00085 virtual void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); 00086 00087 private: 00088 00089 // hide assignment operator 00090 G4UniversalFluctuation & operator=(const G4UniversalFluctuation &right); 00091 G4UniversalFluctuation(const G4UniversalFluctuation&); 00092 00093 const G4ParticleDefinition* particle; 00094 const G4Material* lastMaterial; 00095 00096 G4double particleMass; 00097 G4double chargeSquare; 00098 00099 // data members to speed up the fluctuation calculation 00100 G4double ipotFluct; 00101 G4double electronDensity; 00102 00103 G4double f1Fluct; 00104 G4double f2Fluct; 00105 G4double e1Fluct; 00106 G4double e2Fluct; 00107 G4double e1LogFluct; 00108 G4double e2LogFluct; 00109 G4double ipotLogFluct; 00110 G4double e0; 00111 G4double esmall; 00112 00113 G4double e1,e2; 00114 00115 G4double minNumberInteractionsBohr; 00116 G4double theBohrBeta2; 00117 G4double minLoss; 00118 G4double nmaxCont; 00119 G4double rate,fw; 00120 00121 00122 }; 00123 00124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00125 00126 #endif 00127