[819] | 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: G4PolarizedMollerBhabhaModel.hh,v 1.3 2007/05/23 08:52:20 vnivanch Exp $ |
---|
[1228] | 27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
[819] | 28 | // ------------------------------------------------------------------- |
---|
| 29 | // |
---|
| 30 | // GEANT4 Class header file |
---|
| 31 | // |
---|
| 32 | // |
---|
| 33 | // File name: G4PolarizedMollerBhabhaModel |
---|
| 34 | // |
---|
| 35 | // Author: A.Schaelicke on base of Vladimir Ivanchenko code |
---|
| 36 | // |
---|
| 37 | // Creation date: 10.11.2005 |
---|
| 38 | // |
---|
| 39 | // Modifications: |
---|
| 40 | // |
---|
| 41 | // 20-08-05, modified interface (A.Schaelicke) |
---|
| 42 | // |
---|
| 43 | // |
---|
| 44 | // Class Description: |
---|
| 45 | // |
---|
| 46 | // Physics implementation of polarized Bhabha/Moller scattering |
---|
| 47 | // |
---|
| 48 | // ------------------------------------------------------------------- |
---|
| 49 | // |
---|
| 50 | |
---|
| 51 | #ifndef G4PolarizedMollerBhabhaModel_h |
---|
| 52 | #define G4PolarizedMollerBhabhaModel_h 1 |
---|
| 53 | |
---|
| 54 | #include "G4VEmModel.hh" |
---|
| 55 | #include "G4MollerBhabhaModel.hh" |
---|
| 56 | #include "G4StokesVector.hh" |
---|
| 57 | |
---|
| 58 | class G4VPolarizedCrossSection; |
---|
| 59 | |
---|
| 60 | class G4PolarizedMollerBhabhaModel : public G4MollerBhabhaModel |
---|
| 61 | { |
---|
| 62 | |
---|
| 63 | public: |
---|
| 64 | |
---|
| 65 | G4PolarizedMollerBhabhaModel(const G4ParticleDefinition* p =0, |
---|
| 66 | const G4String& nam = "PolarizedMollerBhabha"); |
---|
| 67 | |
---|
| 68 | virtual ~G4PolarizedMollerBhabhaModel(); |
---|
| 69 | |
---|
| 70 | virtual G4double ComputeCrossSectionPerElectron( |
---|
| 71 | const G4ParticleDefinition*, |
---|
| 72 | G4double kinEnergy, |
---|
| 73 | G4double cut, |
---|
| 74 | G4double emax); |
---|
| 75 | |
---|
| 76 | virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, |
---|
| 77 | const G4MaterialCutsCouple*, |
---|
| 78 | const G4DynamicParticle*, |
---|
| 79 | G4double tmin, |
---|
| 80 | G4double maxEnergy); |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | // polarization access routines (may go if using a modified ParticleChange) |
---|
| 84 | |
---|
| 85 | void SetTargetPolarization(const G4ThreeVector & pTarget) |
---|
| 86 | { |
---|
| 87 | theTargetPolarization = pTarget; |
---|
| 88 | } |
---|
| 89 | void SetBeamPolarization(const G4ThreeVector & pBeam) |
---|
| 90 | { |
---|
| 91 | theBeamPolarization = pBeam; |
---|
| 92 | } |
---|
| 93 | const G4StokesVector & GetTargetPolarization() |
---|
| 94 | { |
---|
| 95 | return theTargetPolarization; |
---|
| 96 | } |
---|
| 97 | const G4StokesVector & GetBeamPolarization() |
---|
| 98 | { |
---|
| 99 | return theBeamPolarization; |
---|
| 100 | } |
---|
| 101 | const G4StokesVector & GetFinalElectronPolarization() |
---|
| 102 | { |
---|
| 103 | return fElectronPolarization; |
---|
| 104 | } |
---|
| 105 | const G4StokesVector & GetFinalPositronPolarization() |
---|
| 106 | { |
---|
| 107 | return fPositronPolarization; |
---|
| 108 | } |
---|
| 109 | private: |
---|
| 110 | G4StokesVector theBeamPolarization; |
---|
| 111 | G4StokesVector theTargetPolarization; |
---|
| 112 | |
---|
| 113 | G4VPolarizedCrossSection * crossSectionCalculator; |
---|
| 114 | |
---|
| 115 | G4StokesVector fPositronPolarization; |
---|
| 116 | G4StokesVector fElectronPolarization; |
---|
| 117 | }; |
---|
| 118 | |
---|
| 119 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 120 | |
---|
| 121 | #endif |
---|