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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 2.0)


                                                   >>   1 // This code implementation is the intellectual property of
                                                   >>   2 // the GEANT4 collaboration.
  1 //                                                  3 //
  2 // ******************************************* <<   4 // By copying, distributing or modifying the Program (or any work
  3 // * License and Disclaimer                    <<   5 // based on the Program) you indicate your acceptance of this statement,
  4 // *                                           <<   6 // and all its terms.
  5 // * The  Geant4 software  is  copyright of th <<   7 //
  6 // * the Geant4 Collaboration.  It is provided <<   8 // $Id: G4hIonisation.hh,v 1.9 2000/05/23 14:46:35 urban Exp $
  7 // * conditions of the Geant4 Software License <<   9 // GEANT4 tag $Name: geant4-02-00 $
  8 // * LICENSE and available at  http://cern.ch/ <<  10 //
  9 // * include a list of copyright holders.      <<  11 // 
 10 // *                                           <<  12 // ------------------------------------------------------------
 11 // * Neither the authors of this software syst <<  13 //      GEANT 4 class header file 
 12 // * institutes,nor the agencies providing fin <<  14 //
 13 // * work  make  any representation or  warran <<  15 //      For information related to this code contact:
 14 // * regarding  this  software system or assum <<  16 //      CERN, IT Division, ASD group
 15 // * use.  Please see the license in the file  <<  17 //      History: based on object model of
 16 // * for the full disclaimer and the limitatio <<  18 //      2nd December 1995, G.Cosmo
 17 // *                                           <<  19 //      ---------- G4hIonisation physics process -----------
 18 // * This  code  implementation is the result  <<  20 //                by Laszlo Urban, 30 May 1997 
 19 // * technical work of the GEANT4 collaboratio <<  21 // ************************************************************
 20 // * By using,  copying,  modifying or  distri <<  22 // It is the first implementation of the NEW IONISATION     
 21 // * any work based  on the software)  you  ag <<  23 // PROCESS. ( delta rays + continuous energy loss)
 22 // * use  in  resulting  scientific  publicati <<  24 // It calculates the ionisation for charged hadrons.      
 23 // * acceptance of all terms of the Geant4 Sof <<  25 // ************************************************************
 24 // ******************************************* << 
 25 //                                             << 
 26 //                                             << 
 27 // ------------------------------------------- << 
 28 //                                             << 
 29 // GEANT4 Class header file                    << 
 30 //                                             << 
 31 //                                             << 
 32 // File name:     G4hIonisation                << 
 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                26 // corrected by L.Urban on 24/09/97
 41 // corrected by L.Urban on 13/01/98                27 // corrected by L.Urban on 13/01/98
 42 // bugs fixed by L.Urban on 02/02/99               28 // bugs fixed by L.Urban on 02/02/99
 43 // 10/02/00 modifications , new e.m. structure <<  29 // 10/02/00  modifications , new e.m. structure, L.Urban
 44 // 10-08-01 new methods Store/Retrieve Physics <<  30 // ------------------------------------------------------------
 45 // 14-08-01 new function ComputeRestrictedMean <<  31  
 46 // 19-09-01 come back to previous process name << 
 47 // 29-10-01 all static functions no more inlin << 
 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 //                                             << 
 65 // Class Description:                          << 
 66 //                                             << 
 67 // This class manages the ionisation process f << 
 68 // it inherites from G4VContinuousDiscreteProc << 
 69 //                                             << 
 70                                                << 
 71 // ------------------------------------------- << 
 72 //                                             << 
 73                                                << 
 74 #ifndef G4hIonisation_h                            32 #ifndef G4hIonisation_h
 75 #define G4hIonisation_h 1                          33 #define G4hIonisation_h 1
 76                                                <<  34  
 77 #include "G4VEnergyLossProcess.hh"             <<  35 #include "G4ios.hh"
 78 #include "G4Electron.hh"                       << 
 79 #include "G4Positron.hh"                       << 
 80 #include "globals.hh"                              36 #include "globals.hh"
                                                   >>  37 #include "Randomize.hh"
                                                   >>  38 #include "G4VhEnergyLoss.hh"
                                                   >>  39 #include "globals.hh"
                                                   >>  40 #include "G4Track.hh"
                                                   >>  41 #include "G4Step.hh"
                                                   >>  42 #include "G4Electron.hh"
                                                   >>  43 #include "G4PhysicsLogVector.hh"
                                                   >>  44 #include "G4PhysicsLinearVector.hh"
                                                   >>  45  
                                                   >>  46  
                                                   >>  47 class G4hIonisation : public G4VhEnergyLoss 
                                                   >>  48  
                                                   >>  49 {
                                                   >>  50   public:
                                                   >>  51  
                                                   >>  52      G4hIonisation(const G4String& processName = "hIoni"); 
 81                                                    53 
 82 class G4Material;                              <<  54     ~G4hIonisation();
 83                                                    55 
 84 class G4hIonisation : public G4VEnergyLossProc <<  56     G4bool IsApplicable(const G4ParticleDefinition&);
 85 {                                              << 
 86                                                    57 
 87 public:                                        <<  58     void BuildPhysicsTable(const G4ParticleDefinition& aParticleType);
 88                                                    59 
 89   explicit G4hIonisation(const G4String& name  <<  60     virtual void BuildLossTable(const G4ParticleDefinition& aParticleType);
 90                                                    61 
 91   ~G4hIonisation() override = default;         <<  62     void BuildLambdaTable(const G4ParticleDefinition& aParticleType);
 92                                                    63 
 93   G4bool IsApplicable(const G4ParticleDefiniti <<  64     virtual void PrintInfoDefinition();
 94                                                    65 
 95   G4double MinPrimaryEnergy(const G4ParticleDe <<  66     G4double GetMeanFreePath(
 96           const G4Material*, G4double cut) fin <<  67                              const G4Track& track,
                                                   >>  68                              G4double previousStepSize,
                                                   >>  69                              G4ForceCondition* condition ) ;
                                                   >>  70  
                                                   >>  71     G4VParticleChange *PostStepDoIt(const G4Track& track,
                                                   >>  72                                     const G4Step& Step  ) ;                 
 97                                                    73 
 98   // print documentation in html format        <<  74   protected:
 99   void ProcessDescription(std::ostream&) const << 
100                                                    75 
101   // hide assignment operator                  <<  76     virtual G4double ComputeMicroscopicCrossSection(
102   G4hIonisation & operator=(const G4hIonisatio <<  77                             const G4ParticleDefinition& aParticleType,
103   G4hIonisation(const G4hIonisation&) = delete <<  78                             G4double KineticEnergy,
                                                   >>  79                             G4double AtomicNumber);
104                                                    80 
105 protected:                                     <<  81   private:
106                                                    82 
107   void InitialiseEnergyLossProcess(const G4Par <<  83   // hide assignment operator 
108            const G4ParticleDefinition*) overri <<  84     G4hIonisation & operator=(const G4hIonisation &right);
                                                   >>  85     G4hIonisation(const G4hIonisation&);
109                                                    86 
110 private:                                       <<  87   private:
                                                   >>  88   //  private data members ...............................
111                                                    89 
112   G4bool isInitialised = false;                <<  90     G4PhysicsTable* theMeanFreePathTable;
113   G4double mass = 0.0;                         <<  91 
114   G4double ratio = 0.0;                        <<  92     // particles , cuts in kinetic energy ........
115   G4double eth;                                <<  93     const G4Electron* theElectron;
116 };                                             <<  94     const G4Proton* theProton;
                                                   >>  95     const G4AntiProton* theAntiProton;
                                                   >>  96 
                                                   >>  97     const G4double* DeltaCutInKineticEnergy ; 
                                                   >>  98  
                                                   >>  99     G4double DeltaCutInKineticEnergyNow ;
                                                   >> 100     static G4double Tmincut ;
                                                   >> 101 
                                                   >> 102     static G4double LowerBoundLambda ; // bining for lambda table
                                                   >> 103     static G4double UpperBoundLambda ;
                                                   >> 104     static G4int    NbinLambda ;
                                                   >> 105     G4double LowestKineticEnergy,HighestKineticEnergy ;
                                                   >> 106     G4int    TotBin ;
                                                   >> 107 
                                                   >> 108   public:
117                                                   109 
118 //....oooOO0OOooo........oooOO0OOooo........oo << 110     static void SetLowerBoundLambda(G4double val) {LowerBoundLambda = val;};
                                                   >> 111     static void SetUpperBoundLambda(G4double val) {UpperBoundLambda = val;};
                                                   >> 112     static void SetNbinLambda(G4int n) {NbinLambda = n;};
                                                   >> 113     static G4double GetLowerBoundLambda() { return LowerBoundLambda;};
                                                   >> 114     static G4double GetUpperBoundLambda() { return UpperBoundLambda;};
                                                   >> 115     static G4int GetNbinLambda() {return NbinLambda;};
119                                                   116 
                                                   >> 117 };
                                                   >> 118  
                                                   >> 119 #include "G4hIonisation.icc"
                                                   >> 120  
120 #endif                                            121 #endif
                                                   >> 122  
                                                   >> 123 
                                                   >> 124 
                                                   >> 125 
                                                   >> 126 
                                                   >> 127 
                                                   >> 128 
                                                   >> 129 
121                                                   130