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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/G4eIonisation.hh (Version 11.3.0) and /processes/electromagnetic/standard/include/G4eIonisation.hh (Version 5.2.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: G4eIonisation.hh,v 1.18 2003/06/16 17:02:02 gunter Exp $
                                                   >>  25 // GEANT4 tag $Name: geant4-05-02-patch-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 <<  35 // 15-01-03 Migrade to cut per region (V.Ivanchenko)
 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 //                                                 36 //
 59 // Class Description:                          <<  37 //------------------------------------------------------------------------------
                                                   >>  38 
                                                   >>  39 // Class description
 60 //                                                 40 //
 61 // This class manages the ionisation process f     41 // This class manages the ionisation process for e-/e+
 62 // it inherites from G4VContinuousDiscreteProc <<  42 // it inherites from G4VContinuousDiscreteProcess via G4VeEnergyLoss.
 63 //                                                 43 //
                                                   >>  44 // Class description - end
 64                                                    45 
 65 // ------------------------------------------- <<  46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 66 //                                             <<  47 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 67                                                    48 
 68 #ifndef G4eIonisation_h                            49 #ifndef G4eIonisation_h
 69 #define G4eIonisation_h 1                          50 #define G4eIonisation_h 1
 70                                                    51 
 71 #include "G4VEnergyLossProcess.hh"             <<  52 #include "G4VeEnergyLoss.hh"
 72 #include "G4Electron.hh"                       <<  53 #include "G4MaterialCutsCouple.hh"
 73 #include "G4Positron.hh"                       <<  54 
 74 #include "G4VEmModel.hh"                       <<  55 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 75                                                    56 
 76 class G4Material;                              <<  57 class G4eIonisation : public G4VeEnergyLoss
 77 class G4ParticleDefinition;                    << 
 78                                                    58 
 79 class G4eIonisation : public G4VEnergyLossProc << 
 80 {                                                  59 {
                                                   >>  60   public:   // with description
                                                   >>  61 
                                                   >>  62     G4eIonisation(const G4String& processName = "eIoni");
                                                   >>  63 
                                                   >>  64    ~G4eIonisation();
                                                   >>  65 
                                                   >>  66     G4bool IsApplicable(const G4ParticleDefinition&);
                                                   >>  67       // return true for e+/e-, false otherwise
                                                   >>  68 
                                                   >>  69     void BuildPhysicsTable(const G4ParticleDefinition& aParticleType);
                                                   >>  70       // this function overloads a virtual function of the base class.
                                                   >>  71       // It is invoked by the G4ParticleWithCuts::SetCut() method.
                                                   >>  72       // It invokes BuildLambdaTable(), BuildLossTable(), BuildDEDXTable()
 81                                                    73 
 82 public:                                        <<  74     void BuildLossTable(const G4ParticleDefinition& aParticleType);
                                                   >>  75       // build the dE/dx tables due to the ionisation, for every materials.
                                                   >>  76       // (restricted stopping power, Berger-Seltzer formula)
 83                                                    77 
 84   explicit G4eIonisation(const G4String& name  <<  78     void BuildLambdaTable(const G4ParticleDefinition& aParticleType);
                                                   >>  79       // build mean free path tables for the delta rays production.
                                                   >>  80       // the tables are built for every materials.
 85                                                    81 
 86   ~G4eIonisation() override;                   <<  82     G4bool StorePhysicsTable(G4ParticleDefinition* ,
                                                   >>  83                  const G4String& directory, G4bool);
                                                   >>  84       // store eLoss and MeanFreePath tables into an external file
                                                   >>  85       // specified by 'directory' (must exist before invokation)
 87                                                    86 
 88   G4bool IsApplicable(const G4ParticleDefiniti <<  87     G4bool RetrievePhysicsTable(G4ParticleDefinition* ,
                                                   >>  88               const G4String& directory, G4bool);
                                                   >>  89       // retrieve eLoss and MeanFreePath tables from an external file
                                                   >>  90       // specified by 'directory'
 89                                                    91 
 90   // print documentation in html format        <<  92     void PrintInfoDefinition();
 91   void ProcessDescription(std::ostream&) const <<  93       // Print few lines of informations about the process: validity range,
                                                   >>  94       // origine ..etc..
                                                   >>  95       // Invoked by BuildPhysicsTable().
 92                                                    96 
 93   // hide assignment operator                  <<  97     G4double GetMeanFreePath(const G4Track& track,
 94   G4eIonisation & operator=(const G4eIonisatio <<  98                              G4double previousStepSize,
 95   G4eIonisation(const G4eIonisation&) = delete <<  99                              G4ForceCondition* condition );
                                                   >> 100       // It returns the MeanFreePath of the process for the current track :
                                                   >> 101       // (energy, material)
                                                   >> 102       // The previousStepSize and G4ForceCondition* are not used.
                                                   >> 103       // This function overloads a virtual function of the base class.
                                                   >> 104       // It is invoked by the ProcessManager of the Particle.
 96                                                   105 
 97 protected:                                     << 106     G4VParticleChange *PostStepDoIt(const G4Track& track,
                                                   >> 107                                     const G4Step& Step );
                                                   >> 108       // It computes the final state of the process (at end of step),
                                                   >> 109       // returned as a ParticleChange object.
                                                   >> 110       // This function overloads a virtual function of the base class.
                                                   >> 111       // It is invoked by the ProcessManager of the Particle.
 98                                                   112 
 99   void InitialiseEnergyLossProcess(const G4Par << 113     G4double GetLambda(G4double KineticEnergy, const G4MaterialCutsCouple* couple);
100                    const G4ParticleDefinition* << 114       // It returns the MeanFreePath of the process for a (energy, material)
101                                                   115 
102   G4double MinPrimaryEnergy(const G4ParticleDe << 116   protected:   // with description
103           const G4Material*, G4double cut) fin << 
104                                                   117 
105 private:                                       << 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.
106                                                   124 
107   const G4ParticleDefinition* theElectron;     << 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     virtual G4double SecondaryEnergyThreshold(size_t index);
                                                   >> 135 
                                                   >> 136     G4PhysicsTable* theMeanFreePathTable;
                                                   >> 137 
                                                   >> 138   private:
                                                   >> 139 
                                                   >> 140     // hide assignment operator
                                                   >> 141     G4eIonisation & operator=(const G4eIonisation &right);
                                                   >> 142     G4eIonisation(const G4eIonisation&);
                                                   >> 143 
                                                   >> 144   private:
                                                   >> 145 
                                                   >> 146     static G4double LowerBoundLambda;    // binning for mean free path table
                                                   >> 147     static G4double UpperBoundLambda;
                                                   >> 148     static G4int    NbinLambda;
                                                   >> 149 
                                                   >> 150     G4double LowestKineticEnergy;        // binning for dE/dx table
                                                   >> 151     G4double HighestKineticEnergy;
                                                   >> 152     G4int    TotBin;
                                                   >> 153 
                                                   >> 154     const std::vector<G4double>* secondaryEnergyCuts;
                                                   >> 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.
108                                                   167 
109   G4bool isElectron;                           << 
110   G4bool isInitialised;                        << 
111 };                                                168 };
112                                                   169 
113 //....oooOO0OOooo........oooOO0OOooo........oo    170 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
114                                                   171 
                                                   >> 172 #include "G4eIonisation.icc"
                                                   >> 173 
115 #endif                                            174 #endif
                                                   >> 175 
116                                                   176