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.7.4.2 2001/06/28 20:19:48 gunter Exp $ >> 25 // GEANT4 tag $Name: $ 28 // 26 // 29 // GEANT4 Class header file << 27 // 30 // << 28 // ------------------------------------------------------------ 31 // << 29 // GEANT 4 class header file 32 // File name: G4eIonisation << 30 // 33 // << 31 // History: based on object model of 34 // Author: Laszlo Urban << 32 // 2nd December 1995, G.Cosmo 35 // << 33 // ---------- G4eIonisation physics process ----------- 36 // Creation date: 20.03.1997 << 34 // by Laszlo Urban, 20 March 1997 37 // << 35 // ************************************************************ 38 // Modifications: << 36 // It is the first implementation of the NEW IONISATION 39 // << 37 // PROCESS. ( delta rays + continuous energy loss) 40 // 10-02-00 modifications , new e.m. structure << 38 // It calculates the ionisation for e+/e-. 41 // 03-08-01 new methods Store/Retrieve Physics << 39 // ************************************************************ 42 // 13-08-01 new function ComputeRestrictedMean << 40 // 43 // 19-09-01 come back to previous ProcessName << 41 // 10/02/00 modifications , new e.m. structure, L.Urban 44 // 29-10-01 all static functions no more inlin << 42 // ------------------------------------------------------------ 45 // 07-01-02 new design of em processes (V.Ivan << 43 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 // << 59 // Class Description: << 60 // << 61 // This class manages the ionisation process f << 62 // it inherites from G4VContinuousDiscreteProc << 63 // << 64 << 65 // ------------------------------------------- << 66 // << 67 << 68 #ifndef G4eIonisation_h 44 #ifndef G4eIonisation_h 69 #define G4eIonisation_h 1 45 #define G4eIonisation_h 1 70 << 46 71 #include "G4VEnergyLossProcess.hh" << 47 #include "G4ios.hh" >> 48 #include "globals.hh" >> 49 #include "Randomize.hh" >> 50 #include "G4VeEnergyLoss.hh" >> 51 #include "globals.hh" >> 52 #include "G4Track.hh" >> 53 #include "G4Step.hh" 72 #include "G4Electron.hh" 54 #include "G4Electron.hh" 73 #include "G4Positron.hh" 55 #include "G4Positron.hh" 74 #include "G4VEmModel.hh" << 56 #include "G4Gamma.hh" 75 << 57 #include "G4PhysicsLogVector.hh" 76 class G4Material; << 58 #include "G4PhysicsLinearVector.hh" 77 class G4ParticleDefinition; << 59 78 << 60 79 class G4eIonisation : public G4VEnergyLossProc << 61 class G4eIonisation : public G4VeEnergyLoss >> 62 80 { 63 { >> 64 public: >> 65 >> 66 G4eIonisation(const G4String& processName = "eIoni"); >> 67 >> 68 ~G4eIonisation(); >> 69 >> 70 G4bool IsApplicable(const G4ParticleDefinition&); >> 71 >> 72 void BuildPhysicsTable(const G4ParticleDefinition& aParticleType); >> 73 >> 74 void BuildLossTable(const G4ParticleDefinition& aParticleType); >> 75 >> 76 void BuildLambdaTable(const G4ParticleDefinition& aParticleType); >> 77 >> 78 void PrintInfoDefinition(); >> 79 >> 80 G4double GetMeanFreePath(const G4Track& track, >> 81 G4double previousStepSize, >> 82 G4ForceCondition* condition ) ; >> 83 >> 84 G4VParticleChange *PostStepDoIt(const G4Track& track, >> 85 const G4Step& Step ) ; >> 86 >> 87 G4double GetLambda( >> 88 G4double KineticEnergy,G4Material* material); >> 89 >> 90 protected: >> 91 >> 92 virtual G4double ComputeMicroscopicCrossSection( >> 93 const G4ParticleDefinition& aParticleType, >> 94 G4double KineticEnergy, >> 95 G4double AtomicNumber, >> 96 G4double DeltaThreshold); >> 97 >> 98 G4PhysicsTable* theMeanFreePathTable; >> 99 >> 100 private: >> 101 >> 102 // hide assignment operator >> 103 G4eIonisation & operator=(const G4eIonisation &right); >> 104 G4eIonisation(const G4eIonisation&); >> 105 >> 106 private: >> 107 >> 108 // G4PhysicsTable* theMeanFreePathTable; >> 109 >> 110 static G4double LowerBoundLambda ; // bining for lambda table >> 111 static G4double UpperBoundLambda ; >> 112 static G4int NbinLambda ; >> 113 G4double LowestKineticEnergy,HighestKineticEnergy ; >> 114 G4int TotBin ; >> 115 >> 116 public: >> 117 >> 118 static void SetLowerBoundLambda(G4double val) {LowerBoundLambda = val;}; >> 119 static void SetUpperBoundLambda(G4double val) {UpperBoundLambda = val;}; >> 120 static void SetNbinLambda(G4int n) {NbinLambda = n;}; >> 121 static G4double GetLowerBoundLambda() { return LowerBoundLambda;}; >> 122 static G4double GetUpperBoundLambda() { return UpperBoundLambda;}; >> 123 static G4int GetNbinLambda() {return NbinLambda;}; 81 124 82 public: << 83 << 84 explicit G4eIonisation(const G4String& name << 85 << 86 ~G4eIonisation() override; << 87 << 88 G4bool IsApplicable(const G4ParticleDefiniti << 89 << 90 // print documentation in html format << 91 void ProcessDescription(std::ostream&) const << 92 << 93 // hide assignment operator << 94 G4eIonisation & operator=(const G4eIonisatio << 95 G4eIonisation(const G4eIonisation&) = delete << 96 << 97 protected: << 98 << 99 void InitialiseEnergyLossProcess(const G4Par << 100 const G4ParticleDefinition* << 101 << 102 G4double MinPrimaryEnergy(const G4ParticleDe << 103 const G4Material*, G4double cut) fin << 104 << 105 private: << 106 << 107 const G4ParticleDefinition* theElectron; << 108 << 109 G4bool isElectron; << 110 G4bool isInitialised; << 111 }; 125 }; 112 << 126 113 //....oooOO0OOooo........oooOO0OOooo........oo << 127 #include "G4eIonisation.icc" 114 << 128 115 #endif 129 #endif >> 130 116 131