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 // 00027 // 00028 // File G4OpMieHG.hh 00029 // Description: Discrete Process -- Mie Scattering of Optical Photons 00030 // Created: 2010-07-03 00031 // Author: Xin Qian 00032 // Based on work from Vlasios Vasileiou 00033 // 00034 // This subroutine will mimic the Mie scattering based on 00035 // Henyey-Greenstein phase function 00036 // Forward and backward angles are treated separately. 00037 // 00038 // mail: gum@triumf.ca 00039 // 00041 00042 #ifndef G4OpMieHG_h 00043 #define G4OpMieHG_h 1 00044 00045 #include "G4VDiscreteProcess.hh" 00046 #include "G4OpticalPhoton.hh" 00047 00048 class G4OpMieHG : public G4VDiscreteProcess 00049 { 00050 00051 public: 00052 00054 // Constructors and Destructor 00056 00057 G4OpMieHG(const G4String& processName = "OpMieHG", 00058 G4ProcessType type = fOptical); 00059 ~G4OpMieHG(); 00060 00061 private: 00062 00063 G4OpMieHG(const G4OpMieHG &right); 00064 00066 // Operators 00068 00069 G4OpMieHG& operator=(const G4OpMieHG &right); 00070 00071 public: 00072 00074 // Methods 00076 00077 G4bool IsApplicable(const G4ParticleDefinition& aParticleType); 00078 // Returns true -> 'is applicable' only for an optical photon. 00079 00080 G4double GetMeanFreePath(const G4Track& aTrack, 00081 G4double, 00082 G4ForceCondition* ); 00083 // Return the mean free path of Mie scattering 00084 00085 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, 00086 const G4Step& aStep); 00087 // This is the method implementing Mie scattering. 00088 }; 00089 00090 00091 inline 00092 G4bool G4OpMieHG::IsApplicable(const G4ParticleDefinition& aParticleType) 00093 { 00094 return ( &aParticleType == G4OpticalPhoton::OpticalPhoton() ); 00095 } 00096 00097 #endif /* G4OpMieHG_h */