Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // 23 // 27 // ------------------------------------------- << 24 // $Id: G4eIonisation.hh,v 1.16 2002/04/09 17:34:41 vnivanch Exp $ >> 25 // GEANT4 tag $Name: geant4-04-01 $ 28 // 26 // 29 // GEANT4 Class header file << 27 //--------------- G4eIonisation physics process -------------------------------- 30 // << 28 // by Laszlo Urban, 20 March 1997 31 // << 32 // File name: G4eIonisation << 33 // << 34 // Author: Laszlo Urban << 35 // << 36 // Creation date: 20.03.1997 << 37 // << 38 // Modifications: << 39 // 29 // 40 // 10-02-00 modifications , new e.m. structure 30 // 10-02-00 modifications , new e.m. structure, L.Urban 41 // 03-08-01 new methods Store/Retrieve Physics 31 // 03-08-01 new methods Store/Retrieve PhysicsTable (mma) 42 // 13-08-01 new function ComputeRestrictedMean 32 // 13-08-01 new function ComputeRestrictedMeandEdx() (mma) 43 // 19-09-01 come back to previous ProcessName 33 // 19-09-01 come back to previous ProcessName "eIoni" 44 // 29-10-01 all static functions no more inlin 34 // 29-10-01 all static functions no more inlined (mma) 45 // 07-01-02 new design of em processes (V.Ivan << 46 // 26-12-02 Secondary production moved to deri << 47 // 24-01-03 Make models region aware (V.Ivanch << 48 // 05-02-03 Fix compilation warnings (V.Ivanch << 49 // 13-02-03 SubCutoff regime is assigned to a << 50 // 23-05-03 Add fluctuation model as a member << 51 // 03-06-03 Fix initialisation problem for STD << 52 // 08-08-03 STD substitute standard (V.Ivanch << 53 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossPro << 54 // 21-01-04 Migrade to G4ParticleChangeForLoss << 55 // 08-11-04 Migration to new interface of Stor << 56 // 08-04-05 Major optimisation of internal int << 57 // 11-04-04 Move MaxSecondaryEnergy to models << 58 // 35 // 59 // Class Description: << 36 //------------------------------------------------------------------------------ >> 37 >> 38 // Class description 60 // 39 // 61 // This class manages the ionisation process f 40 // This class manages the ionisation process for e-/e+ 62 // it inherites from G4VContinuousDiscreteProc << 41 // it inherites from G4VContinuousDiscreteProcess via G4VeEnergyLoss. 63 // << 64 << 65 // ------------------------------------------- << 66 // 42 // >> 43 // Class description - end 67 44 >> 45 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 47 68 #ifndef G4eIonisation_h 48 #ifndef G4eIonisation_h 69 #define G4eIonisation_h 1 49 #define G4eIonisation_h 1 >> 50 >> 51 #include "G4VeEnergyLoss.hh" 70 52 71 #include "G4VEnergyLossProcess.hh" << 53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 72 #include "G4Electron.hh" << 54 73 #include "G4Positron.hh" << 55 class G4eIonisation : public G4VeEnergyLoss 74 #include "G4VEmModel.hh" << 56 75 << 76 class G4Material; << 77 class G4ParticleDefinition; << 78 << 79 class G4eIonisation : public G4VEnergyLossProc << 80 { 57 { 81 << 58 public: // with description 82 public: << 59 83 << 60 G4eIonisation(const G4String& processName = "eIoni"); 84 explicit G4eIonisation(const G4String& name << 61 85 << 62 ~G4eIonisation(); 86 ~G4eIonisation() override; << 63 87 << 64 G4bool IsApplicable(const G4ParticleDefinition&); 88 G4bool IsApplicable(const G4ParticleDefiniti << 65 // return true for e+/e-, false otherwise 89 << 66 90 // print documentation in html format << 67 void BuildPhysicsTable(const G4ParticleDefinition& aParticleType); 91 void ProcessDescription(std::ostream&) const << 68 // this function overloads a virtual function of the base class. 92 << 69 // It is invoked by the G4ParticleWithCuts::SetCut() method. 93 // hide assignment operator << 70 // It invokes BuildLambdaTable(), BuildLossTable(), BuildDEDXTable() 94 G4eIonisation & operator=(const G4eIonisatio << 71 95 G4eIonisation(const G4eIonisation&) = delete << 72 void BuildLossTable(const G4ParticleDefinition& aParticleType); 96 << 73 // build the dE/dx tables due to the ionisation, for every materials. 97 protected: << 74 // (restricted stopping power, Berger-Seltzer formula) 98 << 75 99 void InitialiseEnergyLossProcess(const G4Par << 76 void BuildLambdaTable(const G4ParticleDefinition& aParticleType); 100 const G4ParticleDefinition* << 77 // build mean free path tables for the delta rays production. 101 << 78 // the tables are built for every materials. 102 G4double MinPrimaryEnergy(const G4ParticleDe << 79 103 const G4Material*, G4double cut) fin << 80 G4bool StorePhysicsTable(G4ParticleDefinition* , 104 << 81 const G4String& directory, G4bool); 105 private: << 82 // store eLoss and MeanFreePath tables into an external file 106 << 83 // specified by 'directory' (must exist before invokation) 107 const G4ParticleDefinition* theElectron; << 84 108 << 85 G4bool RetrievePhysicsTable(G4ParticleDefinition* , 109 G4bool isElectron; << 86 const G4String& directory, G4bool); 110 G4bool isInitialised; << 87 // retrieve eLoss and MeanFreePath tables from an external file >> 88 // specified by 'directory' >> 89 >> 90 void PrintInfoDefinition(); >> 91 // Print few lines of informations about the process: validity range, >> 92 // origine ..etc.. >> 93 // Invoked by BuildPhysicsTable(). >> 94 >> 95 G4double GetMeanFreePath(const G4Track& track, >> 96 G4double previousStepSize, >> 97 G4ForceCondition* condition ); >> 98 // It returns the MeanFreePath of the process for the current track : >> 99 // (energy, material) >> 100 // The previousStepSize and G4ForceCondition* are not used. >> 101 // This function overloads a virtual function of the base class. >> 102 // It is invoked by the ProcessManager of the Particle. >> 103 >> 104 G4VParticleChange *PostStepDoIt(const G4Track& track, >> 105 const G4Step& Step ); >> 106 // It computes the final state of the process (at end of step), >> 107 // returned as a ParticleChange object. >> 108 // This function overloads a virtual function of the base class. >> 109 // It is invoked by the ProcessManager of the Particle. >> 110 >> 111 G4double GetLambda(G4double KineticEnergy, G4Material* material); >> 112 // It returns the MeanFreePath of the process for a (energy, material) >> 113 >> 114 protected: // with description >> 115 >> 116 virtual G4double ComputeRestrictedMeandEdx( >> 117 const G4ParticleDefinition& aParticleType, >> 118 G4double KineticEnergy, >> 119 const G4Material* material, >> 120 G4double DeltaThreshold); >> 121 // computes restricted mean dE/dx in Geant4 internal units. >> 122 >> 123 virtual G4double ComputeCrossSectionPerAtom( >> 124 const G4ParticleDefinition& aParticleType, >> 125 G4double KineticEnergy, >> 126 G4double AtomicNumber, >> 127 G4double DeltaThreshold); >> 128 // computes total cross section per atom in Geant4 internal units. >> 129 >> 130 protected: >> 131 >> 132 G4PhysicsTable* theMeanFreePathTable; >> 133 >> 134 private: >> 135 >> 136 // hide assignment operator >> 137 G4eIonisation & operator=(const G4eIonisation &right); >> 138 G4eIonisation(const G4eIonisation&); >> 139 >> 140 private: >> 141 >> 142 static G4double LowerBoundLambda; // binning for mean free path table >> 143 static G4double UpperBoundLambda; >> 144 static G4int NbinLambda; >> 145 >> 146 G4double LowestKineticEnergy; // binning for dE/dx table >> 147 G4double HighestKineticEnergy; >> 148 G4int TotBin; >> 149 >> 150 public: // with description >> 151 >> 152 static void SetLowerBoundLambda(G4double val); >> 153 static void SetUpperBoundLambda(G4double val); >> 154 static void SetNbinLambda(G4int n); >> 155 // set the parameters of the mean free path table. >> 156 >> 157 static G4double GetLowerBoundLambda(); >> 158 static G4double GetUpperBoundLambda(); >> 159 static G4int GetNbinLambda(); >> 160 // get the parameters of the mean free path table. >> 161 111 }; 162 }; 112 163 113 //....oooOO0OOooo........oooOO0OOooo........oo 164 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 114 << 165 >> 166 #include "G4eIonisation.icc" >> 167 115 #endif 168 #endif >> 169 116 170