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 // 00029 // 00030 // ------------------------------------------------------------ 00031 // GEANT 4 class header file 00032 // 00033 // 00034 // Class Description 00035 // Abstract class which defines the public behavior of 00036 // rest + discrete physics interactions. 00037 // 00038 // ------------------------------------------------------------ 00039 // New Physics scheme 8 Mar. 1997 H.Kurahige 00040 // ------------------------------------------------------------ 00041 // modified for new ParticleChange 12 Mar. 1998 H.Kurashige 00042 // Fixed a bug in PostStepGetPhysicalInteractionLength 00043 // 15 Apr. 2002 H.Kurashige 00044 // 00045 00046 #ifndef G4VRestDiscreteProcess_h 00047 #define G4VRestDiscreteProcess_h 1 00048 00049 #include "globals.hh" 00050 #include "G4ios.hh" 00051 00052 #include "G4VProcess.hh" 00053 00054 00055 class G4VRestDiscreteProcess : public G4VProcess 00056 { 00057 // Abstract class which defines the public behavior of 00058 // rest + discrete physics interactions. 00059 public: 00060 00061 G4VRestDiscreteProcess(const G4String& , 00062 G4ProcessType aType = fNotDefined ); 00063 G4VRestDiscreteProcess(G4VRestDiscreteProcess &); 00064 00065 virtual ~G4VRestDiscreteProcess(); 00066 00067 public :// with description 00068 virtual G4double PostStepGetPhysicalInteractionLength( 00069 const G4Track& track, 00070 G4double previousStepSize, 00071 G4ForceCondition* condition 00072 ); 00073 00074 virtual G4VParticleChange* PostStepDoIt( 00075 const G4Track& , 00076 const G4Step& 00077 ); 00078 00079 virtual G4double AtRestGetPhysicalInteractionLength( 00080 const G4Track& , 00081 G4ForceCondition* 00082 ); 00083 00084 virtual G4VParticleChange* AtRestDoIt( 00085 const G4Track& , 00086 const G4Step& 00087 ); 00088 00089 // no operation in AlongStepDoIt 00090 virtual G4double AlongStepGetPhysicalInteractionLength( 00091 const G4Track&, 00092 G4double , 00093 G4double , 00094 G4double& , 00095 G4GPILSelection* 00096 ){ return -1.0; }; 00097 00098 // no operation in AlongStepDoIt 00099 virtual G4VParticleChange* AlongStepDoIt( 00100 const G4Track& , 00101 const G4Step& 00102 ) {return 0;}; 00103 00104 protected:// with description 00105 virtual G4double GetMeanFreePath(const G4Track& aTrack, 00106 G4double previousStepSize, 00107 G4ForceCondition* condition 00108 )=0; 00109 // Calculates from the macroscopic cross section a mean 00110 // free path, the value is returned in units of distance. 00111 00112 virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0; 00113 // Calculates the mean life-time (i.e. for decays) of the 00114 // particle at rest due to the occurence of the given process, 00115 // or converts the probability of interaction (i.e. for 00116 // annihilation) into the life-time of the particle for the 00117 // occurence of the given process. 00118 00119 private: 00120 // hide default constructor and assignment operator as private 00121 G4VRestDiscreteProcess(); 00122 G4VRestDiscreteProcess & operator=(const G4VRestDiscreteProcess &right); 00123 00124 }; 00125 00126 00127 00128 #endif 00129