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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 9.5.p2)


  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 // $Id: G4PolarizedComptonModel.hh,v 1.2 2007-05-23 08:52:20 vnivanch Exp $
                                                   >>  27 // GEANT4 tag $Name: not supported by cvs2svn $
                                                   >>  28 //
 26 // -------------------------------------------     29 // -------------------------------------------------------------------
 27 //                                                 30 //
 28 // Geant4 Class header file                    <<  31 // GEANT4 Class header file
                                                   >>  32 //
 29 //                                                 33 //
 30 // File name:     G4PolarizedComptonModel          34 // File name:     G4PolarizedComptonModel
 31 //                                                 35 //
 32 // Author:        Andreas Schaelicke               36 // Author:        Andreas Schaelicke
 33 //                                                 37 //
                                                   >>  38 // Creation date: 01.05.2005
                                                   >>  39 //
                                                   >>  40 // Modifications:
                                                   >>  41 // 18-07-06 use newly calculated cross sections (P. Starovoitov)
                                                   >>  42 // 21-08-05 update interface (A. Schaelicke)
                                                   >>  43 //
                                                   >>  44 //
 34 // Class Description:                              45 // Class Description:
 35 //   Implementation of polarized gamma Compton <<  46 //
                                                   >>  47 // Implementation of polarized gamma Compton scattering on free electron
                                                   >>  48 // 
                                                   >>  49 
                                                   >>  50 // -------------------------------------------------------------------
                                                   >>  51 //
 36                                                    52 
 37 #ifndef G4PolarizedComptonModel_h                  53 #ifndef G4PolarizedComptonModel_h
 38 #define G4PolarizedComptonModel_h 1                54 #define G4PolarizedComptonModel_h 1
 39                                                    55 
 40 #include "globals.hh"                          << 
 41 #include "G4KleinNishinaCompton.hh"                56 #include "G4KleinNishinaCompton.hh"
 42 #include "G4StokesVector.hh"                       57 #include "G4StokesVector.hh"
 43 #include "G4ThreeVector.hh"                    << 
 44                                                    58 
 45 class G4DynamicParticle;                       << 
 46 class G4MaterialCutsCouple;                    << 
 47 class G4ParticleDefinition;                    << 
 48 class G4ParticleChangeForGamma;                    59 class G4ParticleChangeForGamma;
 49 class G4VPolarizedXS;                          <<  60 class G4PolarizedComptonCrossSection;
 50                                                    61 
 51 class G4PolarizedComptonModel : public G4Klein     62 class G4PolarizedComptonModel : public G4KleinNishinaCompton
 52 {                                                  63 {
 53  public:                                       <<  64 
 54   explicit G4PolarizedComptonModel(const G4Par <<  65 public:
 55                                    const G4Str <<  66 
 56                                                <<  67   G4PolarizedComptonModel(const G4ParticleDefinition* p = 0, 
 57   virtual ~G4PolarizedComptonModel() override; <<  68       const G4String& nam = "Polarized-Compton");
 58                                                <<  69 
 59   virtual G4double ComputeCrossSectionPerAtom( <<  70   virtual G4double ComputeCrossSectionPerAtom(
 60                                                <<  71                                 const G4ParticleDefinition*,
 61                                                <<  72                                       G4double kinEnergy, 
 62                                                <<  73                                       G4double Z, 
                                                   >>  74                                       G4double A, 
                                                   >>  75                                       G4double cut,
                                                   >>  76                                       G4double emax);
 63   G4double ComputeAsymmetryPerAtom(G4double ga     77   G4double ComputeAsymmetryPerAtom(G4double gammaEnergy, G4double Z);
                                                   >>  78   virtual ~G4PolarizedComptonModel();
 64                                                    79 
 65   virtual void SampleSecondaries(std::vector<G     80   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
 66                                  const G4Mater <<  81          const G4MaterialCutsCouple*,
 67                                  const G4Dynam <<  82          const G4DynamicParticle*,
 68                                  G4double maxE <<  83          G4double tmin,
 69                                                <<  84          G4double maxEnergy);
 70   // polarized routines                        <<  85 
 71   inline void SetTargetPolarization(const G4Th <<  86   // polarized routines 
 72   inline void SetBeamPolarization(const G4Thre <<  87   inline void SetTargetPolarization(const G4ThreeVector & pTarget);
 73   inline const G4ThreeVector& GetTargetPolariz <<  88   inline void SetBeamPolarization(const G4ThreeVector & pBeam);
 74   inline const G4ThreeVector& GetBeamPolarizat <<  89   inline const G4ThreeVector & GetTargetPolarization() const;
 75   inline const G4ThreeVector& GetFinalGammaPol <<  90   inline const G4ThreeVector & GetBeamPolarization() const;
 76   inline const G4ThreeVector& GetFinalElectron <<  91   inline const G4ThreeVector & GetFinalGammaPolarization() const;
                                                   >>  92   inline const G4ThreeVector & GetFinalElectronPolarization() const;
                                                   >>  93 private:
 77                                                    94 
 78   // hide assignment operator                      95   // hide assignment operator
 79   G4PolarizedComptonModel& operator=(const G4P <<  96   G4PolarizedComptonModel & operator=(const  G4PolarizedComptonModel &right);
 80     delete;                                    <<  97   G4PolarizedComptonModel(const  G4PolarizedComptonModel&);
 81   G4PolarizedComptonModel(const G4PolarizedCom <<  98 
 82                                                <<  99   G4PolarizedComptonCrossSection * crossSectionCalculator;
 83  private:                                      << 100   // incomming
 84   void PrintWarning(const G4DynamicParticle*,  << 101   G4StokesVector theBeamPolarization;    // photon
 85                     G4double onecos, G4double  << 102   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                                     103   // outgoing
 94   G4StokesVector fFinalGammaPolarization;      << 104   G4StokesVector finalGammaPolarization;
 95   G4StokesVector finalElectronPolarization;       105   G4StokesVector finalElectronPolarization;
 96                                                   106 
 97   G4int fVerboseLevel;                         << 107   G4int verboseLevel;
 98 };                                                108 };
 99                                                   109 
100 //....oooOO0OOooo........oooOO0OOooo........oo    110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
101                                                   111 
102 inline void G4PolarizedComptonModel::SetTarget << 112 inline void G4PolarizedComptonModel::SetTargetPolarization(const G4ThreeVector & pTarget)
103   const G4ThreeVector& pTarget)                << 
104 {                                                 113 {
105   fTargetPolarization = G4StokesVector(pTarget << 114   theTargetPolarization = pTarget;
106 }                                                 115 }
107 inline void G4PolarizedComptonModel::SetBeamPo << 116 inline void G4PolarizedComptonModel::SetBeamPolarization(const G4ThreeVector & pBeam)
108   const G4ThreeVector& pBeam)                  << 
109 {                                                 117 {
110   fBeamPolarization = G4StokesVector(pBeam);   << 118   theBeamPolarization = pBeam;
111 }                                                 119 }
112 inline const G4ThreeVector& G4PolarizedCompton << 120 inline const G4ThreeVector & G4PolarizedComptonModel::GetTargetPolarization() const
113   const                                        << 
114 {                                                 121 {
115   return fTargetPolarization;                  << 122   return theTargetPolarization;
116 }                                                 123 }
117 inline const G4ThreeVector& G4PolarizedCompton << 124 inline const G4ThreeVector & G4PolarizedComptonModel::GetBeamPolarization() const
118 {                                                 125 {
119   return fBeamPolarization;                    << 126   return theBeamPolarization;
120 }                                                 127 }
121 inline const G4ThreeVector& G4PolarizedCompton << 128 inline const G4ThreeVector &  G4PolarizedComptonModel::GetFinalGammaPolarization() const
122   const                                        << 
123 {                                                 129 {
124   return fFinalGammaPolarization;              << 130   return finalGammaPolarization;
125 }                                                 131 }
126 inline const G4ThreeVector&                    << 132 inline const G4ThreeVector & G4PolarizedComptonModel::GetFinalElectronPolarization() const
127 G4PolarizedComptonModel::GetFinalElectronPolar << 
128 {                                                 133 {
129   return finalElectronPolarization;               134   return finalElectronPolarization;
130 }                                                 135 }
131                                                   136 
132 #endif                                            137 #endif
133                                                   138