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: G4VEmFluctuationModel 00034 // 00035 // Author: Vladimir Ivanchenko 00036 // 00037 // Creation date: 03.01.2002 00038 // 00039 // Modifications: 00040 // 00041 // 28-12-02 add method Dispersion (V.Ivanchenko) 00042 // 07-02-03 change signature (V.Ivanchenko) 00043 // 13-02-03 Add name (V.Ivanchenko) 00044 // 16-10-03 Changed interface to Initialisation (V.Ivanchenko) 00045 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) 00046 // 25-07-05 Move constructor and destructor to the body (V.Ivanchenko) 00047 // 00048 // 00049 // Class Description: 00050 // 00051 // Abstract class for interface to simualtion of energy loss fluctuations 00052 00053 // ------------------------------------------------------------------- 00054 // 00055 00056 #ifndef G4VEmFluctuationModel_h 00057 #define G4VEmFluctuationModel_h 1 00058 00059 00060 #include "globals.hh" 00061 00062 class G4ParticleDefinition; 00063 class G4DynamicParticle; 00064 class G4Material; 00065 00066 class G4VEmFluctuationModel 00067 { 00068 00069 public: 00070 00071 G4VEmFluctuationModel(const G4String& nam); 00072 00073 virtual ~G4VEmFluctuationModel(); 00074 00075 //------------------------------------------------------------------------ 00076 // Virtual methods to be implemented for the concrete model 00077 //------------------------------------------------------------------------ 00078 00079 virtual G4double SampleFluctuations(const G4Material*, 00080 const G4DynamicParticle*, 00081 G4double& tmax, 00082 G4double& length, 00083 G4double& meanLoss) = 0; 00084 00085 virtual G4double Dispersion(const G4Material*, 00086 const G4DynamicParticle*, 00087 G4double& tmax, 00088 G4double& length) = 0; 00089 00090 //------------------------------------------------------------------------ 00091 // Methods with standard implementation; may be overwritten if needed 00092 //------------------------------------------------------------------------ 00093 00094 virtual void InitialiseMe(const G4ParticleDefinition*); 00095 00096 virtual void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); 00097 00098 //------------------------------------------------------------------------ 00099 // Generic methods common to all models 00100 //------------------------------------------------------------------------ 00101 00102 inline G4String GetName() const; 00103 00104 private: 00105 00106 // hide assignment operator 00107 G4VEmFluctuationModel & operator=(const G4VEmFluctuationModel &right); 00108 G4VEmFluctuationModel(const G4VEmFluctuationModel&); 00109 00110 const G4String name; 00111 }; 00112 00113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00115 00116 inline G4String G4VEmFluctuationModel::GetName() const 00117 { 00118 return name; 00119 } 00120 00121 #endif 00122