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[ 10.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/G4eBremsstrahlung.hh (Version 11.3.0) and /processes/electromagnetic/standard/include/G4eBremsstrahlung.hh (Version 5.2.p2)


  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: G4eBremsstrahlung.hh,v 1.16 2003/06/16 17:01:59 gunter Exp $
 28 //                                             <<  25 // GEANT4 tag $Name: geant4-05-02-patch-01 $
 29 // GEANT4 Class header file                    << 
 30 //                                             << 
 31 //                                             << 
 32 // File name:     G4eBremsstrahlung            << 
 33 //                                             << 
 34 // Author:        Laszlo Urban                 << 
 35 //                                             << 
 36 // Creation date: 24.06.1996                   << 
 37 //                                             << 
 38 // Modifications:                              << 
 39 //                                                 26 //
                                                   >>  27 // 
                                                   >>  28 //      ------------ G4eBremsstrahlung physics process ------
                                                   >>  29 //                     by Laszlo Urban, 24 July 1996
                                                   >>  30 // 
 40 // 01-10-96 new type G4OrderedTable;  ComputeP     31 // 01-10-96 new type G4OrderedTable;  ComputePartialSumSigma()
 41 // 20-03-97 new energy loss+ionisation+brems s     32 // 20-03-97 new energy loss+ionisation+brems scheme, L.Urban
 42 // 01-09-98 new method  PrintInfo()            <<  33 // 01-09-98 new method  PrintInfo() 
 43 // 10-02-00 modifications , new e.m. structure     34 // 10-02-00 modifications , new e.m. structure, L.Urban
 44 // 07-08-00 new cross section/en.loss parametr     35 // 07-08-00 new cross section/en.loss parametrisation, LPM flag , L.Urban
 45 // 09-08-01 new methods Store/Retrieve Physics     36 // 09-08-01 new methods Store/Retrieve PhysicsTable (mma)
 46 // 19-09-01 come back to previous process name     37 // 19-09-01 come back to previous process name "eBrem"
 47 // 29-10-01 all static functions no more inlin <<  38 // 29-10-01 all static functions no more inlined (mma)  
 48 // 07-01-02 new design of em processes (V.Ivan <<  39 // 16-01-03 Migrade to cut per region (V.Ivanchenko)
 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 // 08-08-03 STD substitute standard  (V.Ivanch << 
 53 // 17-10-03 PrintInfoDefinition - virtual (V.I << 
 54 // 12-11-03 G4EnergyLossSTD -> G4EnergyLossPro << 
 55 // 21-01-04 Migrade to G4ParticleChangeForLoss << 
 56 // 04-11-04 add gamma threshold (V.Ivanchenko) << 
 57 // 08-11-04 Migration to new interface of Stor << 
 58 // 08-04-05 Major optimisation of internal int << 
 59 // 11-04-04 Move MaxSecondaryEnergy to models  << 
 60 //                                                 40 //
 61 // Class Description:                          <<  41 // ------------------------------------------------------------
                                                   >>  42 
                                                   >>  43 // Class description
 62 //                                                 44 //
 63 // This class manages the bremsstrahlung for e     45 // This class manages the bremsstrahlung for e-/e+
 64 // it inherites from G4VContinuousDiscreteProc <<  46 // it inherites from G4VContinuousDiscreteProcess via G4VeEnergyLoss.
 65 //                                                 47 //
                                                   >>  48 // Class description - end
 66                                                    49 
 67 // ------------------------------------------- <<  50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 68 //                                             <<  51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 69                                                    52 
 70 #ifndef G4eBremsstrahlung_h                        53 #ifndef G4eBremsstrahlung_h
 71 #define G4eBremsstrahlung_h 1                      54 #define G4eBremsstrahlung_h 1
 72                                                    55 
 73 #include "G4VEnergyLossProcess.hh"             <<  56 #include "G4ios.hh"
 74 #include "G4DynamicParticle.hh"                <<  57 #include "globals.hh"
                                                   >>  58 #include "Randomize.hh"
                                                   >>  59 #include "G4VeEnergyLoss.hh"
                                                   >>  60 #include "G4Track.hh"
                                                   >>  61 #include "G4Step.hh"
                                                   >>  62 #include "G4Gamma.hh"
 75 #include "G4Electron.hh"                           63 #include "G4Electron.hh"
 76 #include "G4Positron.hh"                           64 #include "G4Positron.hh"
                                                   >>  65 #include "G4OrderedTable.hh"
                                                   >>  66 #include "G4PhysicsTable.hh"
                                                   >>  67 #include "G4PhysicsLogVector.hh"
                                                   >>  68 #include "G4MaterialCutsCouple.hh"
                                                   >>  69 
                                                   >>  70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 77                                                    71 
 78 class G4Material;                              <<  72 class G4eBremsstrahlung : public G4VeEnergyLoss
 79                                                    73 
 80 class G4eBremsstrahlung : public G4VEnergyLoss << 
 81 {                                                  74 {
                                                   >>  75   public:
 82                                                    76 
 83 public:                                        <<  77      G4eBremsstrahlung(const G4String& processName = "eBrem");
 84                                                    78 
 85   explicit G4eBremsstrahlung(const G4String& n <<  79     ~G4eBremsstrahlung();
 86                                                    80 
 87   ~G4eBremsstrahlung() override;               <<  81      G4bool IsApplicable(const G4ParticleDefinition&);
 88                                                    82 
 89   G4bool IsApplicable(const G4ParticleDefiniti <<  83      void PrintInfoDefinition();
 90                                                <<  84 
 91   // print documentation in html format        <<  85      void BuildPhysicsTable(const G4ParticleDefinition& ParticleType);
 92   void ProcessDescription(std::ostream&) const <<  86 
                                                   >>  87      void BuildLossTable(const G4ParticleDefinition& ParticleType);
                                                   >>  88 
                                                   >>  89      void BuildLambdaTable(const G4ParticleDefinition& ParticleType);
                                                   >>  90 
                                                   >>  91      G4double GetMeanFreePath(const G4Track& track,
                                                   >>  92                               G4double previousStepSize,
                                                   >>  93                               G4ForceCondition* condition );
                                                   >>  94 
                                                   >>  95      G4VParticleChange *PostStepDoIt(const G4Track& track,
                                                   >>  96                                      const G4Step&  step);
                                                   >>  97 
                                                   >>  98      G4double GetLambda(G4double KineticEnergy, const G4MaterialCutsCouple* couple);
                                                   >>  99 
                                                   >> 100      G4bool StorePhysicsTable(G4ParticleDefinition* ,
                                                   >> 101                     const G4String& directory, G4bool);
                                                   >> 102       // store eLoss and MeanFreePath tables into an external file
                                                   >> 103       // specified by 'directory' (must exist before invokation)
                                                   >> 104 
                                                   >> 105      G4bool RetrievePhysicsTable(G4ParticleDefinition* ,
                                                   >> 106                const G4String& directory, G4bool);
                                                   >> 107       // retrieve eLoss and MeanFreePath tables from an external file
                                                   >> 108       // specified by 'directory'
                                                   >> 109 
                                                   >> 110   protected:
                                                   >> 111 
                                                   >> 112      G4double ComputeMeanFreePath( const G4ParticleDefinition* ParticleType,
                                                   >> 113                                          G4double KineticEnergy,
                                                   >> 114                                    const G4MaterialCutsCouple* couple);
 93                                                   115 
 94   // hide assignment operator                  << 116      void ComputePartialSumSigma( const G4ParticleDefinition* ParticleType,
 95   G4eBremsstrahlung & operator=(const G4eBrems << 117                                         G4double KineticEnergy,
 96   G4eBremsstrahlung(const G4eBremsstrahlung&)  << 118                                   const G4MaterialCutsCouple* couple);
 97                                                   119 
 98 protected:                                     << 120      virtual G4double ComputeCrossSectionPerAtom(
                                                   >> 121                                   const G4ParticleDefinition* ParticleType,
                                                   >> 122                                         G4double KineticEnergy,
                                                   >> 123                                         G4double AtomicNumber,
                                                   >> 124                                         G4double GammaEnergyCut);
 99                                                   125 
100   // Print out of the class parameters         << 126   private:
101   void StreamProcessInfo(std::ostream& outFile << 
102                                                   127 
103   void                                         << 128      G4double ComputeBremLoss(G4double Z,G4double natom,G4double T,
104   InitialiseEnergyLossProcess(const G4Particle << 129                               G4double Cut,G4double x);
105             const G4ParticleDefinition*) overr << 
106                                                   130 
107 private:                                       << 131      G4double ComputePositronCorrFactorLoss(G4double AtomicNumber,
                                                   >> 132                                             G4double KineticEnergy,
                                                   >> 133                                             G4double GammaEnergyCut);
108                                                   134 
109   G4bool isInitialised = false;                << 135      G4double ComputePositronCorrFactorSigma(G4double AtomicNumber,
                                                   >> 136                                              G4double KineticEnergy,
                                                   >> 137                                              G4double GammaEnergyCut);
                                                   >> 138 
                                                   >> 139      G4Element* SelectRandomAtom(const G4MaterialCutsCouple* couple) const;
                                                   >> 140 
                                                   >> 141      G4double ScreenFunction1(G4double ScreenVariable);
                                                   >> 142 
                                                   >> 143      G4double ScreenFunction2(G4double ScreenVariable);
                                                   >> 144 
                                                   >> 145      G4double SupressionFunction(const G4Material* aMaterial,
                                                   >> 146                                   G4double KineticEnergy,
                                                   >> 147                                   G4double GammaEnergy) ;
                                                   >> 148 
                                                   >> 149      G4eBremsstrahlung & operator=(const G4eBremsstrahlung &right);
                                                   >> 150 
                                                   >> 151      G4eBremsstrahlung(const G4eBremsstrahlung&);
                                                   >> 152 
                                                   >> 153   protected:
                                                   >> 154 
                                                   >> 155      virtual G4double SecondaryEnergyThreshold(size_t index);
                                                   >> 156 
                                                   >> 157   private:
                                                   >> 158 
                                                   >> 159      G4PhysicsTable* theMeanFreePathTable;
                                                   >> 160 
                                                   >> 161      G4OrderedTable PartialSumSigma;       // partial sum of total crosssection
                                                   >> 162 
                                                   >> 163      static G4double LowerBoundLambda;     // low  energy limit of crossection table
                                                   >> 164      static G4double UpperBoundLambda;     // high energy limit of crossection table
                                                   >> 165      static G4int    NbinLambda;           // number of bins in the tables
                                                   >> 166 
                                                   >> 167      G4double MinThreshold;                // minimun value for the production threshold
                                                   >> 168 
                                                   >> 169      G4double LowestKineticEnergy,HighestKineticEnergy; // bining of the Eloss table
                                                   >> 170      G4int    TotBin;                                   // (from G4VeEnergyLoss)
                                                   >> 171 
                                                   >> 172      static G4double probsup;
                                                   >> 173      static G4bool LPMflag;
                                                   >> 174 
                                                   >> 175      const std::vector<G4double>* secondaryEnergyCuts;
                                                   >> 176 
                                                   >> 177   public:
                                                   >> 178 
                                                   >> 179      static void SetLowerBoundLambda(G4double val);
                                                   >> 180      static void SetUpperBoundLambda(G4double val);
                                                   >> 181      static void SetNbinLambda(G4int n);
                                                   >> 182      static G4double GetLowerBoundLambda();
                                                   >> 183      static G4double GetUpperBoundLambda();
                                                   >> 184      static G4int GetNbinLambda();
                                                   >> 185 
                                                   >> 186      static void   SetLPMflag(G4bool val);
                                                   >> 187      static G4bool GetLPMflag();
110 };                                                188 };
111                                                   189 
112 //....oooOO0OOooo........oooOO0OOooo........oo << 190 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113                                                   191 
                                                   >> 192 #include "G4eBremsstrahlung.icc"
                                                   >> 193   
114 #endif                                            194 #endif
115                                                << 
116                                                   195