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 // 00027 // $Id$ 00028 // 00030 // Optical Photon Absorption Class Definition 00032 // 00033 // File: G4OpAbsorption.hh 00034 // Description: Discrete Process -- Bulk absorption of Optical Photons 00035 // Version: 1.0 00036 // Created: 1996-05-21 00037 // Author: Juliet Armstrong 00038 // Updated: 2005-07-28 add G4ProcessType to constructor 00039 // 1999-10-29 add method and class descriptors 00040 // 1997-04-09 by Peter Gumplinger 00041 // > new physics/tracking scheme 00042 // 1998-08-25 by Stefano Magni 00043 // > Change process to use G4MaterialPropertiesTables 00044 // mail: gum@triumf.ca 00045 // magni@mi.infn.it 00046 // 00048 00049 #ifndef G4OpAbsorption_h 00050 #define G4OpAbsorption_h 1 00051 00053 // Includes 00055 00056 #include "globals.hh" 00057 #include "templates.hh" 00058 #include "Randomize.hh" 00059 #include "G4Step.hh" 00060 #include "G4VDiscreteProcess.hh" 00061 #include "G4DynamicParticle.hh" 00062 #include "G4Material.hh" 00063 #include "G4OpticalPhoton.hh" 00064 00065 // Class Description: 00066 // Discrete Process -- Bulk absorption of Optical Photons. 00067 // Class inherits publicly from G4VDiscreteProcess 00068 // Class Description - End: 00069 00071 // Class Definition 00073 00074 class G4OpAbsorption : public G4VDiscreteProcess 00075 { 00076 00077 public: 00078 00080 // Constructors and Destructor 00082 00083 G4OpAbsorption(const G4String& processName = "OpAbsorption", 00084 G4ProcessType type = fOptical); 00085 ~G4OpAbsorption(); 00086 00087 private: 00088 00089 G4OpAbsorption(const G4OpAbsorption &right); 00090 00092 // Operators 00094 00095 G4OpAbsorption& operator=(const G4OpAbsorption &right); 00096 00097 public: 00098 00100 // Methods 00102 00103 G4bool IsApplicable(const G4ParticleDefinition& aParticleType); 00104 // Returns true -> 'is applicable' only for an optical photon. 00105 00106 G4double GetMeanFreePath(const G4Track& aTrack, 00107 G4double , 00108 G4ForceCondition* ); 00109 // Returns the absorption length for bulk absorption of optical 00110 // photons in media with a specified attenuation length. 00111 00112 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, 00113 const G4Step& aStep); 00114 // This is the method implementing bulk absorption of optical 00115 // photons. 00116 00117 }; 00118 00120 // Inline methods 00122 00123 inline 00124 G4bool G4OpAbsorption::IsApplicable(const G4ParticleDefinition& aParticleType) 00125 { 00126 return ( &aParticleType == G4OpticalPhoton::OpticalPhoton() ); 00127 } 00128 00129 #endif /* G4OpAbsorption_h */