|
||||
File indexing completed on 2025-01-18 09:58:48
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 //////////////////////////////////////////////////////////////////////// 0027 // 0028 // File G4OpMieHG.hh 0029 // Description: Discrete Process -- Mie Scattering of Optical Photons 0030 // Created: 2010-07-03 0031 // Author: Xin Qian 0032 // Based on work from Vlasios Vasileiou 0033 // 0034 // This subroutine will mimic the Mie scattering based on 0035 // Henyey-Greenstein phase function 0036 // Forward and backward angles are treated separately. 0037 // 0038 //////////////////////////////////////////////////////////////////////// 0039 0040 #ifndef G4OpMieHG_h 0041 #define G4OpMieHG_h 1 0042 0043 #include "G4VDiscreteProcess.hh" 0044 #include "G4OpticalPhoton.hh" 0045 0046 class G4OpMieHG : public G4VDiscreteProcess 0047 { 0048 public: 0049 explicit G4OpMieHG(const G4String& processName = "OpMieHG", 0050 G4ProcessType type = fOptical); 0051 virtual ~G4OpMieHG(); 0052 0053 virtual G4bool IsApplicable( 0054 const G4ParticleDefinition& aParticleType) override; 0055 // Returns true -> 'is applicable' only for an optical photon. 0056 0057 virtual G4double GetMeanFreePath(const G4Track& aTrack, G4double, 0058 G4ForceCondition*) override; 0059 // Return the mean free path of Mie scattering 0060 0061 virtual G4VParticleChange* PostStepDoIt(const G4Track& aTrack, 0062 const G4Step& aStep) override; 0063 // This is the method implementing Mie scattering. 0064 0065 virtual void PreparePhysicsTable(const G4ParticleDefinition&) override; 0066 virtual void Initialise(); 0067 0068 void SetVerboseLevel(G4int); 0069 0070 private: 0071 G4OpMieHG(const G4OpMieHG& right) = delete; 0072 G4OpMieHG& operator=(const G4OpMieHG& right) = delete; 0073 0074 size_t idx_mie = 0; 0075 }; 0076 0077 inline G4bool G4OpMieHG::IsApplicable(const G4ParticleDefinition& aParticleType) 0078 { 0079 return (&aParticleType == G4OpticalPhoton::OpticalPhoton()); 0080 } 0081 0082 #endif /* G4OpMieHG_h */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |