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 // 00028 // $Id$ 00029 // 00030 // 00031 // ------------------------------------------------------------ 00032 // GEANT 4 class header file 00033 // 00034 // History: first implementation, based on object model of 00035 // 2nd December 1995, G.Cosmo 00036 // add G4VDiscreteProcess(const G4String&) 24 Jul 1996, Hisaya kurashige 00037 // 00038 // Class Description 00039 // Abstract class which defines the public behavior of 00040 // discrete physics interactions. 00041 // 00042 // ------------------------------------------------------------ 00043 // New Physics scheme 18 Dec. 1996 H.Kurahige 00044 // ------------------------------------------------------------ 00045 // modified for new ParticleChange 12 Mar. 1998 H.Kurashige 00046 // Fixed a bug in PostStepGetPhysicalInteractionLength 00047 // 15 Apr. 2002 H.Kurashige 00048 // 00049 00050 #ifndef G4VDiscreteProcess_h 00051 #define G4VDiscreteProcess_h 1 00052 00053 #include "globals.hh" 00054 #include "G4ios.hh" 00055 00056 #include "G4VProcess.hh" 00057 00058 class G4VDiscreteProcess : public G4VProcess 00059 { 00060 // Abstract class which defines the public behavior of 00061 // discrete physics interactions. 00062 public: 00063 00064 G4VDiscreteProcess(const G4String& , 00065 G4ProcessType aType = fNotDefined ); 00066 G4VDiscreteProcess(G4VDiscreteProcess &); 00067 00068 virtual ~G4VDiscreteProcess(); 00069 00070 public :// with description 00071 virtual G4double PostStepGetPhysicalInteractionLength( 00072 const G4Track& track, 00073 G4double previousStepSize, 00074 G4ForceCondition* condition 00075 ); 00076 00077 virtual G4VParticleChange* PostStepDoIt( 00078 const G4Track& , 00079 const G4Step& 00080 ); 00081 00082 // no operation in AtRestDoIt and AlongStepDoIt 00083 virtual G4double AlongStepGetPhysicalInteractionLength( 00084 const G4Track&, 00085 G4double , 00086 G4double , 00087 G4double& , 00088 G4GPILSelection* 00089 ){ return -1.0; }; 00090 00091 virtual G4double AtRestGetPhysicalInteractionLength( 00092 const G4Track& , 00093 G4ForceCondition* 00094 ) { return -1.0; }; 00095 00096 // no operation in AtRestDoIt and AlongStepDoIt 00097 virtual G4VParticleChange* AtRestDoIt( 00098 const G4Track& , 00099 const G4Step& 00100 ) {return 0;}; 00101 00102 virtual G4VParticleChange* AlongStepDoIt( 00103 const G4Track& , 00104 const G4Step& 00105 ) {return 0;}; 00106 00107 protected:// with description 00108 virtual G4double GetMeanFreePath(const G4Track& aTrack, 00109 G4double previousStepSize, 00110 G4ForceCondition* condition 00111 )=0; 00112 // Calculates from the macroscopic cross section a mean 00113 // free path, the value is returned in units of distance. 00114 00115 private: 00116 // hide default constructor and assignment operator as private 00117 G4VDiscreteProcess(); 00118 G4VDiscreteProcess & operator=(const G4VDiscreteProcess &right); 00119 00120 }; 00121 00122 #endif 00123 00124 00125