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 // discrete physics interactions. 00037 // 00038 // ------------------------------------------------------------ 00039 // New Physics scheme 8 Mar. 1997 H.Kurahige 00040 // ------------------------------------------------------------ 00041 // modified 26 Mar. 1997 H.Kurahige 00042 // modified 16 Apr. 1997 L.Urban 00043 // modified 18 Sep. 1997 H.Kurashige 00044 // modified AlongStepGPIL etc. 17 Dec. 1997 H.Kurashige 00045 // fix bugs in GetGPILSelection() 24 Jan. 1998 H.Kurashige 00046 // modified for new ParticleChange 12 Mar. 1998 H.Kurashige 00047 00048 #ifndef G4VRestContinuousProcess_h 00049 #define G4VRestContinuousProcess_h 1 00050 00051 #include "globals.hh" 00052 #include "G4ios.hh" 00053 00054 #include "G4VProcess.hh" 00055 00056 class G4VRestContinuousProcess : public G4VProcess 00057 { 00058 // Abstract class which defines the public behavior of 00059 // discrete physics interactions. 00060 public: 00061 00062 G4VRestContinuousProcess(const G4String& , 00063 G4ProcessType aType = fNotDefined ); 00064 G4VRestContinuousProcess(G4VRestContinuousProcess &); 00065 00066 virtual ~G4VRestContinuousProcess(); 00067 00068 public: // with description 00069 00070 virtual G4double AtRestGetPhysicalInteractionLength( 00071 const G4Track& , 00072 G4ForceCondition* 00073 ); 00074 00075 virtual G4VParticleChange* AtRestDoIt( 00076 const G4Track& , 00077 const G4Step& 00078 ); 00079 00080 virtual G4double AlongStepGetPhysicalInteractionLength( 00081 const G4Track& track, 00082 G4double previousStepSize, 00083 G4double currentMinimumStep, 00084 G4double& currentSafety, 00085 G4GPILSelection* selection 00086 ); 00087 00088 virtual G4VParticleChange* AlongStepDoIt( 00089 const G4Track& , 00090 const G4Step& 00091 ); 00092 00093 // no operation in PostStepDoIt 00094 virtual G4double PostStepGetPhysicalInteractionLength( 00095 const G4Track& , 00096 G4double , 00097 G4ForceCondition* 00098 ){ return -1.0; }; 00099 00100 // no operation in PostStepDoIt 00101 virtual G4VParticleChange* PostStepDoIt( 00102 const G4Track& , 00103 const G4Step& 00104 ) {return 0;}; 00105 00106 protected: // with description 00107 virtual G4double GetContinuousStepLimit(const G4Track& aTrack, 00108 G4double previousStepSize, 00109 G4double currentMinimumStep, 00110 G4double& currentSafety 00111 )=0; 00112 // This pure virtual function is used to calculate step limit 00113 // for AlongStep in the derived processes 00114 00115 private: 00116 // this is the returnd value of G4GPILSelection in 00117 // the arguments of AlongStepGPIL() 00118 G4GPILSelection valueGPILSelection; 00119 00120 protected:// with description 00121 // these two methods are set/get methods for valueGPILSelection 00122 void SetGPILSelection(G4GPILSelection selection) 00123 { valueGPILSelection = selection;}; 00124 00125 G4GPILSelection GetGPILSelection() const{return valueGPILSelection;}; 00126 00127 protected: // with description 00128 00129 virtual G4double GetMeanLifeTime(const G4Track& aTrack,G4ForceCondition* condition)=0; 00130 // Calculates the mean life-time (i.e. for decays) of the 00131 // particle at rest due to the occurence of the given process, 00132 // or converts the probability of interaction (i.e. for 00133 // annihilation) into the life-time of the particle for the 00134 // occurence of the given process. 00135 00136 private: 00137 // hide default constructor and assignment operator as private 00138 G4VRestContinuousProcess(); 00139 G4VRestContinuousProcess & operator=(const G4VRestContinuousProcess &right); 00140 00141 }; 00142 00143 #endif 00144 00145 00146 00147 00148 00149