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 file 00031 // 00032 // 00033 // File name: G4MuIonisation 00034 // 00035 // Author: Laszlo Urban 00036 // 00037 // Creation date: 30.09.1997 00038 // 00039 // Modifications: 00040 // 00041 // 08-04-98 remove 'tracking cut' of the ionizing particle (mma) 00042 // 26-10-98 new stuff from R.Kokoulin + cleanup , L.Urban 00043 // 10-02-00 modifications , new e.m. structure, L.Urban 00044 // 23-03-01 R.Kokoulin's correction is commented out, L.Urban 00045 // 29-05-01 V.Ivanchenko minor changes to provide ANSI -wall compilation 00046 // 10-08-01 new methods Store/Retrieve PhysicsTable (mma) 00047 // 28-08-01 new function ComputeRestrictedMeandEdx() + 'cleanup' (mma) 00048 // 17-09-01 migration of Materials to pure STL (mma) 00049 // 26-09-01 completion of RetrievePhysicsTable (mma) 00050 // 29-10-01 all static functions no more inlined (mma) 00051 // 07-11-01 correction(Tmax+xsection computation) L.Urban 00052 // 08-11-01 particleMass becomes a local variable (mma) 00053 // 10-05-02 V.Ivanchenko update to new design 00054 // 04-12-02 V.Ivanchenko the low energy limit for Kokoulin model to 10 GeV 00055 // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko) 00056 // 26-12-02 Secondary production moved to derived classes (V.Ivanchenko) 00057 // 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko) 00058 // 23-05-03 Define default integral + BohrFluctuations (V.Ivanchenko) 00059 // 03-06-03 Add SetIntegral method to choose fluctuation model (V.Ivanchenko) 00060 // 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko) 00061 // 04-08-03 Set integral=false to be default (V.Ivanchenko) 00062 // 08-08-03 STD substitute standard (V.Ivanchenko) 00063 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko) 00064 // 10-02-04 Calculation of radiative corrections using R.Kokoulin model (V.Ivanchenko) 00065 // 27-05-04 Set integral to be a default regime (V.Ivanchenko) 00066 // 17-08-04 Utilise mu+ tables for mu- (V.Ivanchenko) 00067 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko) 00068 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) 00069 // 12-08-05 SetStepLimits(0.2, 0.1*mm) (mma) 00070 // 02-09-05 SetStepLimits(0.2, 1*mm) (V.Ivantchenko) 00071 // 12-08-05 SetStepLimits(0.2, 0.1*mm) + integral off (V.Ivantchenko) 00072 // 10-01-06 SetStepLimits -> SetStepFunction (V.Ivantchenko) 00073 // 00074 // ------------------------------------------------------------------- 00075 // 00076 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00077 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00078 00079 #include "G4MuIonisation.hh" 00080 #include "G4PhysicalConstants.hh" 00081 #include "G4SystemOfUnits.hh" 00082 #include "G4Electron.hh" 00083 #include "G4MuonPlus.hh" 00084 #include "G4MuonMinus.hh" 00085 #include "G4BraggModel.hh" 00086 #include "G4BetheBlochModel.hh" 00087 #include "G4MuBetheBlochModel.hh" 00088 #include "G4UniversalFluctuation.hh" 00089 #include "G4IonFluctuations.hh" 00090 #include "G4BohrFluctuations.hh" 00091 #include "G4UnitsTable.hh" 00092 #include "G4ICRU73QOModel.hh" 00093 00094 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00095 00096 using namespace std; 00097 00098 G4MuIonisation::G4MuIonisation(const G4String& name) 00099 : G4VEnergyLossProcess(name), 00100 theParticle(0), 00101 theBaseParticle(0), 00102 isInitialised(false) 00103 { 00104 mass = ratio = 0; 00105 // SetStepFunction(0.2, 1*mm); 00106 //SetIntegral(true); 00107 //SetVerboseLevel(1); 00108 SetProcessSubType(fIonisation); 00109 SetSecondaryParticle(G4Electron::Electron()); 00110 } 00111 00112 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00113 00114 G4MuIonisation::~G4MuIonisation() 00115 {} 00116 00117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00118 00119 G4bool G4MuIonisation::IsApplicable(const G4ParticleDefinition& p) 00120 { 00121 return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV); 00122 } 00123 00124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00125 00126 G4double G4MuIonisation::MinPrimaryEnergy(const G4ParticleDefinition*, 00127 const G4Material*, 00128 G4double cut) 00129 { 00130 G4double x = 0.5*cut/electron_mass_c2; 00131 G4double gam = x*ratio + std::sqrt((1. + x)*(1. + x*ratio*ratio)); 00132 return mass*(gam - 1.0); 00133 } 00134 00135 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00136 00137 void G4MuIonisation::InitialiseEnergyLossProcess(const G4ParticleDefinition* part, 00138 const G4ParticleDefinition* bpart) 00139 { 00140 if(!isInitialised) { 00141 00142 theParticle = part; 00143 theBaseParticle = bpart; 00144 00145 mass = theParticle->GetPDGMass(); 00146 G4double q = theParticle->GetPDGCharge(); 00147 G4double elow = 0.2*MeV; 00148 00149 // Bragg peak model 00150 if (!EmModel(1)) { 00151 if(q > 0.0) { SetEmModel(new G4BraggModel(),1); } 00152 else { SetEmModel(new G4ICRU73QOModel(),1); } 00153 } 00154 EmModel(1)->SetLowEnergyLimit(MinKinEnergy()); 00155 EmModel(1)->SetHighEnergyLimit(elow); 00156 AddEmModel(1, EmModel(1), new G4IonFluctuations()); 00157 00158 // high energy fluctuation model 00159 if (!FluctModel()) { SetFluctModel(new G4UniversalFluctuation()); } 00160 00161 // moderate energy model 00162 if (!EmModel(2)) { SetEmModel(new G4BetheBlochModel(),2); } 00163 EmModel(2)->SetLowEnergyLimit(elow); 00164 EmModel(2)->SetHighEnergyLimit(1.0*GeV); 00165 AddEmModel(2, EmModel(2), FluctModel()); 00166 00167 // high energy model 00168 if (!EmModel(3)) { SetEmModel(new G4MuBetheBlochModel(),3); } 00169 EmModel(3)->SetLowEnergyLimit(1.0*GeV); 00170 EmModel(3)->SetHighEnergyLimit(MaxKinEnergy()); 00171 AddEmModel(3, EmModel(3), FluctModel()); 00172 00173 ratio = electron_mass_c2/mass; 00174 isInitialised = true; 00175 } 00176 } 00177 00178 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00179 00180 void G4MuIonisation::PrintInfo() 00181 {} 00182 00183 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 00184 00185 00186 00187