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: G4RayleighAngularGenerator.hh,v 1.1 2012-12-31 18:34:15 antoni Exp $ 00027 // GEANT4 tag $Name: not supported by svn $ 00028 // 00029 // ------------------------------------------------------------------- 00030 // 00031 // GEANT4 Class file 00032 // 00033 // 00034 // File name: G4RayleighAngularGenerator 00035 // 00036 // Author: Ivantchenko (antoni@cern.ch, vnivanch@cern.ch) 00037 // modified fit formulas from Dermott E. Cullen, 00038 // Nucl. Instrum. Meth. Phys. Res. B v.101, (4),499-510. 00039 // 00040 // 00041 // Creation date: 31 May 2012 00042 // 00043 // Modifications: 00044 // 00045 // 00046 // Class Description: 00047 // 00048 // Class for Rayleigh Scattering angle sampling 00049 // 00050 // ------------------------------------------------------------------- 00051 // 00052 00053 #ifndef G4RayleighAngularGenerator_h 00054 #define G4RayleighAngularGenerator_h 1 00055 00056 #include "G4VEmAngularDistribution.hh" 00057 #include "globals.hh" 00058 #include "G4DynamicParticle.hh" 00059 #include "G4ThreeVector.hh" 00060 00061 class G4RayleighAngularGenerator : public G4VEmAngularDistribution 00062 { 00063 public: 00064 00065 G4RayleighAngularGenerator(); 00066 00067 virtual ~G4RayleighAngularGenerator(); 00068 00069 virtual G4ThreeVector& SampleDirection(const G4DynamicParticle* dp, 00070 G4double out_energy, 00071 G4int Z, 00072 const G4Material* mat = 0); 00073 private: 00074 00075 // hide assignment operator 00076 G4RayleighAngularGenerator & operator=(const G4RayleighAngularGenerator &right); 00077 G4RayleighAngularGenerator(const G4RayleighAngularGenerator&); 00078 00079 // static data 00080 static const G4double PP0[101]; 00081 static const G4double PP1[101]; 00082 static const G4double PP2[101]; 00083 static const G4double PP3[101]; 00084 static const G4double PP4[101]; 00085 static const G4double PP5[101]; 00086 static const G4double PP6[101]; 00087 static const G4double PP7[101]; 00088 static const G4double PP8[101]; 00089 00090 G4double fFactor; 00091 00092 }; 00093 00094 00095 #endif 00096