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: G4MuIonisation.hh,v 1.13 2001/10/29 13:53:18 maire Exp $ >> 25 // GEANT4 tag $Name: geant4-04-00 $ 28 // 26 // 29 // GEANT4 Class header file << 27 // --------------- G4MuIonisation physics process ------------------------------ >> 28 // by Laszlo Urban, September 1997 >> 29 // ----------------------------------------------------------------------------- 30 // 30 // 31 // << 31 // 10-02-00 modifications , new e.m. structure, L.Urban 32 // File name: G4MuIonisation << 33 // << 34 // Author: Laszlo Urban << 35 // << 36 // Creation date: 30.05.1997 << 37 // << 38 // Modifications: << 39 // << 40 // corrected by L.Urban on 24/09/97 << 41 // corrected by L.Urban on 13/01/98 << 42 // bugs fixed by L.Urban on 02/02/99 << 43 // 10/02/00 modifications , new e.m. structure << 44 // 10-08-01 new methods Store/Retrieve Physics 32 // 10-08-01 new methods Store/Retrieve PhysicsTable (mma) 45 // 14-08-01 new function ComputeRestrictedMean << 33 // 29-08-01 new function ComputeRestrictedMeandEdx() + 'cleanup' (mma) 46 // 19-09-01 come back to previous process name << 34 // 19-09-01 come back to the old process name 'MuIoni' 47 // 29-10-01 all static functions no more inlin << 35 // 29-10-01 all static functions no more inlined (mma) 48 // 10-05-02 V.Ivanchenko update to new design << 49 // 09-12-02 V.Ivanchenko remove warning << 50 // 26-12-02 Secondary production moved to deri << 51 // 24-01-03 Make models region aware (V.Ivanch << 52 // 05-02-03 Fix compilation warnings (V.Ivanch << 53 // 13-02-03 SubCutoff regime is assigned to a << 54 // 23-05-03 Add fluctuation model as a member << 55 // 03-06-03 Add SetIntegral method to choose f << 56 // 03-06-03 Fix initialisation problem for STD << 57 // 08-08-03 STD substitute standard (V.Ivanch << 58 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossPro << 59 // 21-01-04 Migrade to G4ParticleChangeForLoss << 60 // 17-08-04 Rename the process "Mu" -> "mu" (V << 61 // 08-11-04 Migration to new interface of Stor << 62 // 08-04-05 Major optimisation of internal int << 63 // 36 // 64 // Class Description: << 37 // ----------------------------------------------------------------------------- >> 38 >> 39 // Class description 65 // 40 // 66 // This class manages the ionisation process f 41 // This class manages the ionisation process for muons. 67 // it inherites from G4VContinuousDiscreteProc << 42 // it inherites from G4VContinuousDiscreteProcess via G4VMuEnergyLoss. 68 // << 69 << 70 // ------------------------------------------- << 71 // 43 // >> 44 // Class description - end 72 45 >> 46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 47 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 48 73 #ifndef G4MuIonisation_h 49 #ifndef G4MuIonisation_h 74 #define G4MuIonisation_h 1 50 #define G4MuIonisation_h 1 75 << 51 76 #include "G4VEnergyLossProcess.hh" << 52 #include "G4VMuEnergyLoss.hh" 77 #include "globals.hh" << 53 78 #include "G4VEmModel.hh" << 54 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 79 << 55 80 class G4Material; << 56 class G4MuIonisation : public G4VMuEnergyLoss 81 << 57 82 class G4MuIonisation : public G4VEnergyLossPro << 83 { 58 { >> 59 public: // with description >> 60 >> 61 G4MuIonisation(const G4String& processName = "MuIoni"); >> 62 >> 63 ~G4MuIonisation(); >> 64 >> 65 G4bool IsApplicable(const G4ParticleDefinition&); >> 66 // return true for charged particles, false otherwise >> 67 >> 68 void BuildPhysicsTable(const G4ParticleDefinition& aParticleType); >> 69 // this function overloads a virtual function of the base class. >> 70 // It is invoked by the G4ParticleWithCuts::SetCut() method. >> 71 // It invokes BuildLambdaTable(), BuildLossTable(), BuildDEDXTable() >> 72 >> 73 void BuildLossTable(const G4ParticleDefinition& aParticleType); >> 74 // build the dE/dx tables due to the ionisation, for every materials. >> 75 // (restricted stopping power, Bethe-Bloch formula) >> 76 >> 77 void BuildLambdaTable(const G4ParticleDefinition& aParticleType); >> 78 // build mean free path tables for the delta rays production. >> 79 // the tables are built for every materials. >> 80 >> 81 G4bool StorePhysicsTable(G4ParticleDefinition* , >> 82 const G4String& directory, G4bool); >> 83 // store eLoss and MeanFreePath tables into an external file >> 84 // specified by 'directory' (must exist before invokation) >> 85 >> 86 G4bool RetrievePhysicsTable(G4ParticleDefinition* , >> 87 const G4String& directory, G4bool); >> 88 // retrieve eLoss and MeanFreePath tables from an external file >> 89 // specified by 'directory' >> 90 >> 91 virtual void PrintInfoDefinition(); >> 92 // Print few lines of informations about the process: validity range, >> 93 // origine ..etc.. >> 94 // Invoked by BuildPhysicsTable(). >> 95 >> 96 G4double GetMeanFreePath(const G4Track& track, >> 97 G4double previousStepSize, >> 98 G4ForceCondition* condition ); >> 99 // It returns the MeanFreePath of the process for the current track : >> 100 // (energy, material) >> 101 // The previousStepSize and G4ForceCondition* are not used. >> 102 // This function overloads a virtual function of the base class. >> 103 // It is invoked by the ProcessManager of the Particle. >> 104 >> 105 G4VParticleChange* PostStepDoIt(const G4Track& track, >> 106 const G4Step& Step ); >> 107 // It computes the final state of the process (at end of step), >> 108 // returned as a ParticleChange object. >> 109 // This function overloads a virtual function of the base class. >> 110 // It is invoked by the ProcessManager of the Particle. >> 111 >> 112 >> 113 protected: // with description >> 114 >> 115 virtual G4double ComputeRestrictedMeandEdx( >> 116 const G4ParticleDefinition& aParticleType, >> 117 G4double KineticEnergy, >> 118 const G4Material* material, >> 119 G4double DeltaThreshold); >> 120 // computes restricted mean dE/dx in Geant4 internal units. >> 121 >> 122 virtual G4double ComputeCrossSectionPerAtom( >> 123 const G4ParticleDefinition& aParticleType, >> 124 G4double KineticEnergy, >> 125 G4double AtomicNumber, >> 126 G4double DeltaThreshold); >> 127 // computes total cross section per atom in Geant4 internal units. >> 128 >> 129 virtual G4double ComputeDifCrossSectionPerAtom( >> 130 const G4ParticleDefinition& aParticleType, >> 131 G4double KineticEnergy, >> 132 G4double AtomicNumber, >> 133 G4double KnockonEnergy); >> 134 // computes differential cross section per atom. >> 135 >> 136 protected: >> 137 >> 138 G4PhysicsTable* theMeanFreePathTable; >> 139 >> 140 private: >> 141 >> 142 // hide assignment operator >> 143 G4MuIonisation & operator=(const G4MuIonisation &right); >> 144 G4MuIonisation(const G4MuIonisation&); >> 145 >> 146 private: >> 147 >> 148 static G4double LowerBoundLambda; // bining for lambda table >> 149 static G4double UpperBoundLambda; >> 150 static G4int NbinLambda; >> 151 >> 152 G4double LowestKineticEnergy; // binning for dE/dx table >> 153 G4double HighestKineticEnergy; >> 154 G4int TotBin; >> 155 >> 156 public: // with description >> 157 >> 158 static void SetLowerBoundLambda(G4double val); >> 159 static void SetUpperBoundLambda(G4double val); >> 160 static void SetNbinLambda(G4int n); >> 161 // set the parameters of the mean free path table. >> 162 >> 163 static G4double GetLowerBoundLambda(); >> 164 static G4double GetUpperBoundLambda(); >> 165 static G4int GetNbinLambda(); >> 166 // get the parameters of the mean free path table. >> 167 }; >> 168 >> 169 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 170 >> 171 #include "G4MuIonisation.icc" >> 172 >> 173 #endif >> 174 84 175 85 public: << 86 << 87 explicit G4MuIonisation(const G4String& name << 88 << 89 ~G4MuIonisation() override = default; << 90 << 91 G4bool IsApplicable(const G4ParticleDefiniti << 92 << 93 G4double MinPrimaryEnergy(const G4ParticleDe << 94 const G4Material*, << 95 << 96 << 97 // print description in html << 98 void ProcessDescription(std::ostream&) const << 99 << 100 // hide assignment operator << 101 G4MuIonisation & operator=(const G4MuIonisat << 102 G4MuIonisation(const G4MuIonisation&) = dele << 103 << 104 protected: << 105 << 106 void InitialiseEnergyLossProcess(const G4Par << 107 const G4Par << 108 176 109 private: << 110 177 111 const G4ParticleDefinition* theParticle = nu << 112 const G4ParticleDefinition* theBaseParticle << 113 178 114 G4double mass = 0.0; << 115 G4double ratio = 0.0; << 116 179 117 G4bool isInitialised = false; << 118 }; << 119 180 120 //....oooOO0OOooo........oooOO0OOooo........oo << 121 181 122 #endif << 123 182