00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id: G4PolarizedMollerBhabhaModel.hh 69847 2013-05-16 09:36:18Z gcosmo $ 00027 // ------------------------------------------------------------------- 00028 // 00029 // GEANT4 Class header file 00030 // 00031 // 00032 // File name: G4PolarizedMollerBhabhaModel 00033 // 00034 // Author: A.Schaelicke on base of Vladimir Ivanchenko code 00035 // 00036 // Creation date: 10.11.2005 00037 // 00038 // Modifications: 00039 // 00040 // 20-08-05, modified interface (A.Schaelicke) 00041 // 00042 // 00043 // Class Description: 00044 // 00045 // Physics implementation of polarized Bhabha/Moller scattering 00046 // 00047 // ------------------------------------------------------------------- 00048 // 00049 00050 #ifndef G4PolarizedMollerBhabhaModel_h 00051 #define G4PolarizedMollerBhabhaModel_h 1 00052 00053 #include "G4VEmModel.hh" 00054 #include "G4MollerBhabhaModel.hh" 00055 #include "G4StokesVector.hh" 00056 00057 class G4VPolarizedCrossSection; 00058 00059 class G4PolarizedMollerBhabhaModel : public G4MollerBhabhaModel 00060 { 00061 00062 public: 00063 00064 G4PolarizedMollerBhabhaModel(const G4ParticleDefinition* p =0, 00065 const G4String& nam = "PolarizedMollerBhabha"); 00066 00067 virtual ~G4PolarizedMollerBhabhaModel(); 00068 00069 virtual G4double ComputeCrossSectionPerElectron( 00070 const G4ParticleDefinition*, 00071 G4double kinEnergy, 00072 G4double cut, 00073 G4double emax); 00074 00075 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, 00076 const G4MaterialCutsCouple*, 00077 const G4DynamicParticle*, 00078 G4double tmin, 00079 G4double maxEnergy); 00080 00081 00082 // polarization access routines (may go if using a modified ParticleChange) 00083 00084 void SetTargetPolarization(const G4ThreeVector & pTarget) 00085 { 00086 theTargetPolarization = pTarget; 00087 } 00088 void SetBeamPolarization(const G4ThreeVector & pBeam) 00089 { 00090 theBeamPolarization = pBeam; 00091 } 00092 const G4StokesVector & GetTargetPolarization() 00093 { 00094 return theTargetPolarization; 00095 } 00096 const G4StokesVector & GetBeamPolarization() 00097 { 00098 return theBeamPolarization; 00099 } 00100 const G4StokesVector & GetFinalElectronPolarization() 00101 { 00102 return fElectronPolarization; 00103 } 00104 const G4StokesVector & GetFinalPositronPolarization() 00105 { 00106 return fPositronPolarization; 00107 } 00108 private: 00109 00110 // copy constructor and hide assignment operator 00111 G4PolarizedMollerBhabhaModel(G4PolarizedMollerBhabhaModel &); 00112 G4PolarizedMollerBhabhaModel & operator=(const G4PolarizedMollerBhabhaModel &right); 00113 00114 G4StokesVector theBeamPolarization; 00115 G4StokesVector theTargetPolarization; 00116 00117 G4VPolarizedCrossSection * crossSectionCalculator; 00118 00119 G4StokesVector fPositronPolarization; 00120 G4StokesVector fElectronPolarization; 00121 }; 00122 00123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00124 00125 #endif