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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/polarisation/include/G4PolarizedComptonModel.hh (Version 11.3.0) and /processes/electromagnetic/polarisation/include/G4PolarizedComptonModel.hh (Version 10.5)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
                                                   >>  26 //
 26 // -------------------------------------------     27 // -------------------------------------------------------------------
 27 //                                                 28 //
 28 // Geant4 Class header file                    <<  29 // GEANT4 Class header file
                                                   >>  30 //
 29 //                                                 31 //
 30 // File name:     G4PolarizedComptonModel          32 // File name:     G4PolarizedComptonModel
 31 //                                                 33 //
 32 // Author:        Andreas Schaelicke               34 // Author:        Andreas Schaelicke
 33 //                                                 35 //
                                                   >>  36 // Creation date: 01.05.2005
                                                   >>  37 //
                                                   >>  38 // Modifications:
                                                   >>  39 // 18-07-06 use newly calculated cross sections (P. Starovoitov)
                                                   >>  40 // 21-08-05 update interface (A. Schaelicke)
                                                   >>  41 //
                                                   >>  42 //
 34 // Class Description:                              43 // Class Description:
 35 //   Implementation of polarized gamma Compton <<  44 //
                                                   >>  45 // Implementation of polarized gamma Compton scattering on free electron
                                                   >>  46 // 
                                                   >>  47 
                                                   >>  48 // -------------------------------------------------------------------
                                                   >>  49 //
 36                                                    50 
 37 #ifndef G4PolarizedComptonModel_h                  51 #ifndef G4PolarizedComptonModel_h
 38 #define G4PolarizedComptonModel_h 1                52 #define G4PolarizedComptonModel_h 1
 39                                                    53 
 40 #include "globals.hh"                          << 
 41 #include "G4KleinNishinaCompton.hh"                54 #include "G4KleinNishinaCompton.hh"
 42 #include "G4StokesVector.hh"                       55 #include "G4StokesVector.hh"
 43 #include "G4ThreeVector.hh"                    << 
 44                                                    56 
 45 class G4DynamicParticle;                       << 
 46 class G4MaterialCutsCouple;                    << 
 47 class G4ParticleDefinition;                    << 
 48 class G4ParticleChangeForGamma;                    57 class G4ParticleChangeForGamma;
 49 class G4VPolarizedXS;                          <<  58 class G4PolarizedComptonCrossSection;
 50                                                    59 
 51 class G4PolarizedComptonModel : public G4Klein     60 class G4PolarizedComptonModel : public G4KleinNishinaCompton
 52 {                                                  61 {
 53  public:                                       <<  62 
                                                   >>  63 public:
                                                   >>  64 
 54   explicit G4PolarizedComptonModel(const G4Par     65   explicit G4PolarizedComptonModel(const G4ParticleDefinition* p = nullptr,
 55                                    const G4Str <<  66       const G4String& nam = "Polarized-Compton");
 56                                                    67 
 57   virtual ~G4PolarizedComptonModel() override; <<  68   virtual G4double ComputeCrossSectionPerAtom(
 58                                                <<  69                                 const G4ParticleDefinition*,
 59   virtual G4double ComputeCrossSectionPerAtom( <<  70                                       G4double kinEnergy, 
 60                                                <<  71                                       G4double Z, 
 61                                                <<  72                                       G4double A, 
 62                                                <<  73                                       G4double cut,
                                                   >>  74                                       G4double emax) override;
 63   G4double ComputeAsymmetryPerAtom(G4double ga     75   G4double ComputeAsymmetryPerAtom(G4double gammaEnergy, G4double Z);
                                                   >>  76   virtual ~G4PolarizedComptonModel();
 64                                                    77 
 65   virtual void SampleSecondaries(std::vector<G     78   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
 66                                  const G4Mater <<  79          const G4MaterialCutsCouple*,
 67                                  const G4Dynam <<  80          const G4DynamicParticle*,
 68                                  G4double maxE <<  81          G4double tmin,
 69                                                <<  82          G4double maxEnergy) override;
 70   // polarized routines                        <<  83 
 71   inline void SetTargetPolarization(const G4Th <<  84   // polarized routines 
 72   inline void SetBeamPolarization(const G4Thre <<  85   inline void SetTargetPolarization(const G4ThreeVector & pTarget);
 73   inline const G4ThreeVector& GetTargetPolariz <<  86   inline void SetBeamPolarization(const G4ThreeVector & pBeam);
 74   inline const G4ThreeVector& GetBeamPolarizat <<  87   inline const G4ThreeVector & GetTargetPolarization() const;
 75   inline const G4ThreeVector& GetFinalGammaPol <<  88   inline const G4ThreeVector & GetBeamPolarization() const;
 76   inline const G4ThreeVector& GetFinalElectron <<  89   inline const G4ThreeVector & GetFinalGammaPolarization() const;
                                                   >>  90   inline const G4ThreeVector & GetFinalElectronPolarization() const;
                                                   >>  91 private:
                                                   >>  92 
                                                   >>  93   void PrintWarning(const G4DynamicParticle*, G4int, G4double grej, 
                                                   >>  94         G4double onecos, G4double phi, const G4String) const;
 77                                                    95 
 78   // hide assignment operator                      96   // hide assignment operator
 79   G4PolarizedComptonModel& operator=(const G4P <<  97   G4PolarizedComptonModel & operator=(const  G4PolarizedComptonModel &right) = delete;
 80     delete;                                    <<  98   G4PolarizedComptonModel(const  G4PolarizedComptonModel&) = delete;
 81   G4PolarizedComptonModel(const G4PolarizedCom <<  99 
 82                                                << 100   G4PolarizedComptonCrossSection * crossSectionCalculator;
 83  private:                                      << 101   // incomming
 84   void PrintWarning(const G4DynamicParticle*,  << 102   G4StokesVector theBeamPolarization;    // photon
 85                     G4double onecos, G4double  << 103   G4StokesVector theTargetPolarization;  // electron
 86                                                << 
 87   static constexpr G4int fLoopLim = 10000;     << 
 88                                                << 
 89   G4VPolarizedXS* fCrossSectionCalculator;     << 
 90   // incoming                                  << 
 91   G4StokesVector fBeamPolarization;    // phot << 
 92   G4StokesVector fTargetPolarization;  // elec << 
 93   // outgoing                                     104   // outgoing
 94   G4StokesVector fFinalGammaPolarization;      << 105   G4StokesVector finalGammaPolarization;
 95   G4StokesVector finalElectronPolarization;       106   G4StokesVector finalElectronPolarization;
 96                                                   107 
 97   G4int fVerboseLevel;                         << 108   G4int verboseLevel;
 98 };                                                109 };
 99                                                   110 
100 //....oooOO0OOooo........oooOO0OOooo........oo    111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
101                                                   112 
102 inline void G4PolarizedComptonModel::SetTarget << 113 inline void G4PolarizedComptonModel::SetTargetPolarization(const G4ThreeVector & pTarget)
103   const G4ThreeVector& pTarget)                << 
104 {                                                 114 {
105   fTargetPolarization = G4StokesVector(pTarget << 115   theTargetPolarization = pTarget;
106 }                                                 116 }
107 inline void G4PolarizedComptonModel::SetBeamPo << 117 inline void G4PolarizedComptonModel::SetBeamPolarization(const G4ThreeVector & pBeam)
108   const G4ThreeVector& pBeam)                  << 
109 {                                                 118 {
110   fBeamPolarization = G4StokesVector(pBeam);   << 119   theBeamPolarization = pBeam;
111 }                                                 120 }
112 inline const G4ThreeVector& G4PolarizedCompton << 121 inline const G4ThreeVector & G4PolarizedComptonModel::GetTargetPolarization() const
113   const                                        << 
114 {                                                 122 {
115   return fTargetPolarization;                  << 123   return theTargetPolarization;
116 }                                                 124 }
117 inline const G4ThreeVector& G4PolarizedCompton << 125 inline const G4ThreeVector & G4PolarizedComptonModel::GetBeamPolarization() const
118 {                                                 126 {
119   return fBeamPolarization;                    << 127   return theBeamPolarization;
120 }                                                 128 }
121 inline const G4ThreeVector& G4PolarizedCompton << 129 inline const G4ThreeVector &  G4PolarizedComptonModel::GetFinalGammaPolarization() const
122   const                                        << 
123 {                                                 130 {
124   return fFinalGammaPolarization;              << 131   return finalGammaPolarization;
125 }                                                 132 }
126 inline const G4ThreeVector&                    << 133 inline const G4ThreeVector & G4PolarizedComptonModel::GetFinalElectronPolarization() const
127 G4PolarizedComptonModel::GetFinalElectronPolar << 
128 {                                                 134 {
129   return finalElectronPolarization;               135   return finalElectronPolarization;
130 }                                                 136 }
131                                                   137 
132 #endif                                            138 #endif
133                                                   139