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: G4ionIonisation 00034 // 00035 // Author: Vladimir Ivanchenko 00036 // 00037 // Creation date: 07.05.2002 00038 // 00039 // Modifications: 00040 // 00041 // 26-12-02 Secondary production moved to derived classes (VI) 00042 // 24-01-03 Make models region aware (V.Ivanchenko) 00043 // 05-02-03 Fix compilation warnings (V.Ivanchenko) 00044 // 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko) 00045 // 15-02-03 Add control on delta pointer (V.Ivanchenko) 00046 // 23-05-03 Add fluctuation model as a member function (V.Ivanchenko) 00047 // 03-08-03 Add effective charge and saturation of tmax (V.Ivanchenko) 00048 // 12-11-03 Fix problem of negative effective charge (V.Ivanchenko) 00049 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko) 00050 // 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko) 00051 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko) 00052 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) 00053 // 11-04-05 Move MaxSecondary energy to model (V.Ivanchneko) 00054 // 11-04-04 Move MaxSecondaryEnergy to models (V.Ivanchenko) 00055 // 10-05-06 Add a possibility to download user data (V.Ivantchenko) 00056 // 22-07-06 Remove obsolete method (V.Ivantchenko) 00057 // 07-11-07 Moved CorrectionsAlongStep to cc (V.Ivantchenko) 00058 // 12-09-08 Removed InitialiseMassCharge and CorrectionsAlongStep (VI) 00059 // 00060 // Class Description: 00061 // 00062 // This class manages the ionisation process for ions. Effective charge, 00063 // nuclear stopping power, energy loss corrections are taken into account. 00064 // It inherites from G4VEnergyLossLoss. 00065 // 00066 00067 // ------------------------------------------------------------------- 00068 // 00069 00070 #ifndef G4ionIonisation_h 00071 #define G4ionIonisation_h 1 00072 00073 #include "G4VEnergyLossProcess.hh" 00074 00075 class G4Material; 00076 class G4EmCorrections; 00077 00078 class G4ionIonisation : public G4VEnergyLossProcess 00079 { 00080 public: 00081 00082 G4ionIonisation(const G4String& name = "ionIoni"); 00083 00084 virtual ~G4ionIonisation(); 00085 00086 virtual G4bool IsApplicable(const G4ParticleDefinition& p); 00087 00088 // Print out of the class parameters 00089 virtual void PrintInfo(); 00090 00091 void AddStoppingData(G4int Z, G4int A, const G4String& materialName, 00092 G4PhysicsVector* dVector); 00093 00094 void ActivateStoppingData(G4bool); 00095 00096 protected: 00097 00098 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*, 00099 const G4ParticleDefinition*); 00100 00101 virtual G4double MinPrimaryEnergy(const G4ParticleDefinition* p, 00102 const G4Material*, G4double cut); 00103 00104 inline G4double BetheBlochEnergyThreshold(); 00105 00106 private: 00107 00108 // hide assignment operator 00109 G4ionIonisation & operator=(const G4ionIonisation &right); 00110 G4ionIonisation(const G4ionIonisation&); 00111 00112 G4EmCorrections* corr; 00113 00114 const G4ParticleDefinition* theParticle; 00115 00116 G4double eth; 00117 00118 G4bool isInitialised; 00119 G4bool stopDataActive; 00120 }; 00121 00122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00124 00125 inline void G4ionIonisation::ActivateStoppingData(G4bool val) 00126 { 00127 stopDataActive = val; 00128 } 00129 00130 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00131 00132 inline G4double G4ionIonisation::BetheBlochEnergyThreshold() 00133 { 00134 return eth; 00135 } 00136 00137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00138 00139 #endif