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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/G4MollerBhabhaModel.hh (Version 11.3.0) and /processes/electromagnetic/standard/include/G4MollerBhabhaModel.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 // -------------------------------------------------------------------
 28 //                                                 25 //
 29 // GEANT4 Class header file                        26 // GEANT4 Class header file
 30 //                                                 27 //
 31 //                                                 28 //
 32 // File name:     G4MollerBhabhaModel              29 // File name:     G4MollerBhabhaModel
 33 //                                                 30 //
 34 // Author:        Vladimir Ivanchenko on base      31 // Author:        Vladimir Ivanchenko on base of Laszlo Urban code
 35 //                                                 32 //
 36 // Creation date: 07.01.2002                       33 // Creation date: 07.01.2002
 37 //                                                 34 //
 38 // Modifications:                                  35 // Modifications:
 39 //                                                 36 //
 40 // 23-12-02 Change interface in order to move      37 // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
 41 // 24-01-03 Make models region aware (V.Ivanch     38 // 24-01-03 Make models region aware (V.Ivanchenko)
 42 // 13-02-03 Add name (V.Ivanchenko)                39 // 13-02-03 Add name (V.Ivanchenko)
 43 // 06-02-06 ComputeCrossSectionPerElectron, Co << 
 44 // 14-01-07 promote SetParticle() from private << 
 45                                                    40 
 46 //                                                 41 //
 47 // Class Description:                              42 // Class Description:
 48 //                                                 43 //
 49 // Implementation of energy loss process and d     44 // Implementation of energy loss process and delta-electrons production
 50 // of electrons and positrons                      45 // of electrons and positrons
 51                                                    46 
 52 // -------------------------------------------     47 // -------------------------------------------------------------------
 53 //                                                 48 //
 54                                                    49 
 55 #ifndef G4MollerBhabhaModel_h                      50 #ifndef G4MollerBhabhaModel_h
 56 #define G4MollerBhabhaModel_h 1                    51 #define G4MollerBhabhaModel_h 1
 57                                                    52 
 58 #include "G4VEmModel.hh"                           53 #include "G4VEmModel.hh"
 59                                                    54 
 60 class G4ParticleChangeForLoss;                 << 
 61                                                << 
 62 class G4MollerBhabhaModel : public G4VEmModel      55 class G4MollerBhabhaModel : public G4VEmModel
 63 {                                                  56 {
 64                                                    57 
 65 public:                                            58 public:
 66                                                    59 
 67   explicit G4MollerBhabhaModel(const G4Particl <<  60   G4MollerBhabhaModel(const G4ParticleDefinition* p = 0, const G4String& nam = "MollerBhabha");
 68              const G4String& nam = "MollerBhab << 
 69                                                    61 
 70   ~G4MollerBhabhaModel() override;             <<  62   ~G4MollerBhabhaModel();
 71                                                    63 
 72   void Initialise(const G4ParticleDefinition*, <<  64   void Initialise(const G4ParticleDefinition*, const G4DataVector&);
 73                                                    65 
 74   virtual G4double ComputeCrossSectionPerElect <<  66   G4double HighEnergyLimit(const G4ParticleDefinition* p);
 75          const G4ParticleDefinition*,          << 
 76          G4double kineticEnergy,               << 
 77          G4double cutEnergy,                   << 
 78          G4double maxEnergy);                  << 
 79                                                << 
 80   G4double ComputeCrossSectionPerAtom(         << 
 81          const G4ParticleDefinition*,          << 
 82          G4double kineticEnergy,               << 
 83          G4double Z, G4double A,               << 
 84          G4double cutEnergy,                   << 
 85          G4double maxEnergy) override;         << 
 86                                                << 
 87   G4double CrossSectionPerVolume(const G4Mater << 
 88          const G4ParticleDefinition*,          << 
 89          G4double kineticEnergy,               << 
 90          G4double cutEnergy,                   << 
 91          G4double maxEnergy) override;         << 
 92                                                << 
 93   G4double ComputeDEDXPerVolume(const G4Materi << 
 94         const G4ParticleDefinition*,           << 
 95         G4double kineticEnergy,                << 
 96         G4double cutEnergy) override;          << 
 97                                                << 
 98   void SampleSecondaries(std::vector<G4Dynamic << 
 99        const G4MaterialCutsCouple*,            << 
100        const G4DynamicParticle*,               << 
101        G4double tmin,                          << 
102        G4double maxEnergy) override;           << 
103                                                    67 
104   // hide assignment operator                  <<  68   G4double LowEnergyLimit(const G4ParticleDefinition* p);
105   G4MollerBhabhaModel & operator=(const  G4Mol <<  69 
106   G4MollerBhabhaModel(const  G4MollerBhabhaMod <<  70   void SetHighEnergyLimit(G4double e) {highKinEnergy = e;};
                                                   >>  71 
                                                   >>  72   void SetLowEnergyLimit(G4double e) {lowKinEnergy = e;};
                                                   >>  73 
                                                   >>  74   G4double MinEnergyCut(const G4ParticleDefinition*,
                                                   >>  75                         const G4MaterialCutsCouple*);
                                                   >>  76 
                                                   >>  77   G4bool IsInCharge(const G4ParticleDefinition*);
                                                   >>  78 
                                                   >>  79   G4double ComputeDEDX(const G4Material*,
                                                   >>  80                        const G4ParticleDefinition*,
                                                   >>  81                              G4double kineticEnergy,
                                                   >>  82                              G4double cutEnergy);
                                                   >>  83 
                                                   >>  84   G4double CrossSection(const G4Material*,
                                                   >>  85                         const G4ParticleDefinition*,
                                                   >>  86                               G4double kineticEnergy,
                                                   >>  87                               G4double cutEnergy,
                                                   >>  88                               G4double maxEnergy);
                                                   >>  89 
                                                   >>  90   G4DynamicParticle* SampleSecondary(
                                                   >>  91                                 const G4MaterialCutsCouple*,
                                                   >>  92                                 const G4DynamicParticle*,
                                                   >>  93                                       G4double tmin,
                                                   >>  94                                       G4double maxEnergy);
                                                   >>  95 
                                                   >>  96   std::vector<G4DynamicParticle*>* SampleSecondaries(
                                                   >>  97                                 const G4MaterialCutsCouple*,
                                                   >>  98                                 const G4DynamicParticle*,
                                                   >>  99                                       G4double tmin,
                                                   >> 100                                       G4double maxEnergy);
                                                   >> 101 
                                                   >> 102   G4double MaxSecondaryEnergy(const G4DynamicParticle*);
107                                                   103 
108 protected:                                        104 protected:
109                                                   105 
110   G4double MaxSecondaryEnergy(const G4Particle    106   G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
111             G4double kinEnergy) final;         << 107                                     G4double kinEnergy);
112                                                << 
113   inline void SetParticle(const G4ParticleDefi << 
114                                                   108 
115   const G4ParticleDefinition* particle;        << 109 private:
116   G4ParticleDefinition*       theElectron;     << 
117   G4ParticleChangeForLoss*    fParticleChange; << 
118                                                   110 
119   G4bool   isElectron;                         << 111   void SetParticle(const G4ParticleDefinition* p);
                                                   >> 112 
                                                   >> 113   // hide assignment operator 
                                                   >> 114   G4MollerBhabhaModel & operator=(const  G4MollerBhabhaModel &right);
                                                   >> 115   G4MollerBhabhaModel(const  G4MollerBhabhaModel&);
                                                   >> 116 
                                                   >> 117   const G4ParticleDefinition* particle;
                                                   >> 118   G4ParticleDefinition* theElectron;
                                                   >> 119   G4double highKinEnergy;
                                                   >> 120   G4double lowKinEnergy;
120   G4double twoln10;                               121   G4double twoln10;
121   G4double lowLimit;                              122   G4double lowLimit;
122                                                << 123   G4bool   isElectron;
123 private:                                       << 124 };
124                                                   125 
125   G4bool isInitialised;                        << 126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
126                                                   127 
127 };                                             << 128 inline G4double G4MollerBhabhaModel::MaxSecondaryEnergy(
                                                   >> 129           const G4ParticleDefinition*,
                                                   >> 130                 G4double kinEnergy) 
                                                   >> 131 {
                                                   >> 132   G4double tmax = kinEnergy;
                                                   >> 133   if(isElectron) tmax *= 0.5;
                                                   >> 134   return tmax;
                                                   >> 135 }
128                                                   136 
129 //....oooOO0OOooo........oooOO0OOooo........oo << 137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
130                                                   138 
131 inline void G4MollerBhabhaModel::SetParticle(c << 139 inline G4double G4MollerBhabhaModel::MaxSecondaryEnergy(const G4DynamicParticle* dp)
132 {                                                 140 {
133   particle = p;                                << 141   G4double tmax = dp->GetKineticEnergy();
134   isElectron = (p == theElectron);             << 142   if(isElectron) tmax *= 0.5;
                                                   >> 143   return tmax;
135 }                                                 144 }
136                                                   145 
137 //....oooOO0OOooo........oooOO0OOooo........oo << 146 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
138                                                   147 
139 #endif                                            148 #endif
140                                                   149