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.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/electromagnetic/standard/include/G4hIonisation.hh (Version 11.3.0) and /processes/electromagnetic/standard/include/G4hIonisation.hh (Version 4.1.p1)


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