| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | // $Id: G4PolarizedComptonModel.hh,v 1.2 2007/05/23 08:52:20 vnivanch Exp $
|
|---|
| 27 | // GEANT4 tag $Name: geant4-09-02-ref-02 $
|
|---|
| 28 | //
|
|---|
| 29 | // -------------------------------------------------------------------
|
|---|
| 30 | //
|
|---|
| 31 | // GEANT4 Class header file
|
|---|
| 32 | //
|
|---|
| 33 | //
|
|---|
| 34 | // File name: G4PolarizedComptonModel
|
|---|
| 35 | //
|
|---|
| 36 | // Author: Andreas Schaelicke
|
|---|
| 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 | //
|
|---|
| 45 | // Class Description:
|
|---|
| 46 | //
|
|---|
| 47 | // Implementation of polarized gamma Compton scattering on free electron
|
|---|
| 48 | //
|
|---|
| 49 |
|
|---|
| 50 | // -------------------------------------------------------------------
|
|---|
| 51 | //
|
|---|
| 52 |
|
|---|
| 53 | #ifndef G4PolarizedComptonModel_h
|
|---|
| 54 | #define G4PolarizedComptonModel_h 1
|
|---|
| 55 |
|
|---|
| 56 | #include "G4KleinNishinaCompton.hh"
|
|---|
| 57 | #include "G4StokesVector.hh"
|
|---|
| 58 |
|
|---|
| 59 | class G4ParticleChangeForGamma;
|
|---|
| 60 | class G4PolarizedComptonCrossSection;
|
|---|
| 61 |
|
|---|
| 62 | class G4PolarizedComptonModel : public G4KleinNishinaCompton
|
|---|
| 63 | {
|
|---|
| 64 |
|
|---|
| 65 | public:
|
|---|
| 66 |
|
|---|
| 67 | G4PolarizedComptonModel(const G4ParticleDefinition* p = 0,
|
|---|
| 68 | const G4String& nam = "Polarized-Compton");
|
|---|
| 69 |
|
|---|
| 70 | virtual G4double ComputeCrossSectionPerAtom(
|
|---|
| 71 | const G4ParticleDefinition*,
|
|---|
| 72 | G4double kinEnergy,
|
|---|
| 73 | G4double Z,
|
|---|
| 74 | G4double A,
|
|---|
| 75 | G4double cut,
|
|---|
| 76 | G4double emax);
|
|---|
| 77 | G4double ComputeAsymmetryPerAtom(G4double gammaEnergy, G4double Z);
|
|---|
| 78 | virtual ~G4PolarizedComptonModel();
|
|---|
| 79 |
|
|---|
| 80 | virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
|---|
| 81 | const G4MaterialCutsCouple*,
|
|---|
| 82 | const G4DynamicParticle*,
|
|---|
| 83 | G4double tmin,
|
|---|
| 84 | G4double maxEnergy);
|
|---|
| 85 |
|
|---|
| 86 | // polarized routines
|
|---|
| 87 | inline void SetTargetPolarization(const G4ThreeVector & pTarget);
|
|---|
| 88 | inline void SetBeamPolarization(const G4ThreeVector & pBeam);
|
|---|
| 89 | inline const G4ThreeVector & GetTargetPolarization() const;
|
|---|
| 90 | inline const G4ThreeVector & GetBeamPolarization() const;
|
|---|
| 91 | inline const G4ThreeVector & GetFinalGammaPolarization() const;
|
|---|
| 92 | inline const G4ThreeVector & GetFinalElectronPolarization() const;
|
|---|
| 93 | private:
|
|---|
| 94 |
|
|---|
| 95 | // hide assignment operator
|
|---|
| 96 | G4PolarizedComptonModel & operator=(const G4PolarizedComptonModel &right);
|
|---|
| 97 | G4PolarizedComptonModel(const G4PolarizedComptonModel&);
|
|---|
| 98 |
|
|---|
| 99 | G4PolarizedComptonCrossSection * crossSectionCalculator;
|
|---|
| 100 | // incomming
|
|---|
| 101 | G4StokesVector theBeamPolarization; // photon
|
|---|
| 102 | G4StokesVector theTargetPolarization; // electron
|
|---|
| 103 | // outgoing
|
|---|
| 104 | G4StokesVector finalGammaPolarization;
|
|---|
| 105 | G4StokesVector finalElectronPolarization;
|
|---|
| 106 |
|
|---|
| 107 | G4int verboseLevel;
|
|---|
| 108 | };
|
|---|
| 109 |
|
|---|
| 110 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|---|
| 111 |
|
|---|
| 112 | inline void G4PolarizedComptonModel::SetTargetPolarization(const G4ThreeVector & pTarget)
|
|---|
| 113 | {
|
|---|
| 114 | theTargetPolarization = pTarget;
|
|---|
| 115 | }
|
|---|
| 116 | inline void G4PolarizedComptonModel::SetBeamPolarization(const G4ThreeVector & pBeam)
|
|---|
| 117 | {
|
|---|
| 118 | theBeamPolarization = pBeam;
|
|---|
| 119 | }
|
|---|
| 120 | inline const G4ThreeVector & G4PolarizedComptonModel::GetTargetPolarization() const
|
|---|
| 121 | {
|
|---|
| 122 | return theTargetPolarization;
|
|---|
| 123 | }
|
|---|
| 124 | inline const G4ThreeVector & G4PolarizedComptonModel::GetBeamPolarization() const
|
|---|
| 125 | {
|
|---|
| 126 | return theBeamPolarization;
|
|---|
| 127 | }
|
|---|
| 128 | inline const G4ThreeVector & G4PolarizedComptonModel::GetFinalGammaPolarization() const
|
|---|
| 129 | {
|
|---|
| 130 | return finalGammaPolarization;
|
|---|
| 131 | }
|
|---|
| 132 | inline const G4ThreeVector & G4PolarizedComptonModel::GetFinalElectronPolarization() const
|
|---|
| 133 | {
|
|---|
| 134 | return finalElectronPolarization;
|
|---|
| 135 | }
|
|---|
| 136 |
|
|---|
| 137 | #endif
|
|---|