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 // History: first implementation, based on object model of 00034 // 2nd December 1995, G.Cosmo 00035 // add G4VContinuousProcess(const G4String&) 24 Jul 1996, Hisaya kurashige 00036 // 00037 // Class Description 00038 // Abstract class which defines the public behavior of 00039 // Continuous physics interactions. 00040 // 00041 // ------------------------------------------------------------ 00042 // New Physics scheme 18 Dec. 1996 H.Kurahige 00043 // ------------------------------------------------------------ 00044 // modified 25 Feb. 1997 H.Kurahige 00045 // modified 8 Mar. 1997 H.Kurashige 00046 // modified 22 Mar. 1997 H.Kurashige 00047 // modified 26 Mar. 1997 H.Kurashige 00048 // modified AlongStepGPIL etc. 17 Dec. 1997 H.Kurashige 00049 // fix bugs in GetGPILSelection() 24 Jan. 1998 H.Kurashige 00050 // modified for new ParticleChange 12 Mar. 1998 H.Kurashige 00051 00052 #ifndef G4VContinuousProcess_h 00053 #define G4VContinuousProcess_h 1 00054 00055 #include "globals.hh" 00056 #include "G4ios.hh" 00057 00058 #include "G4VProcess.hh" 00059 00060 class G4VContinuousProcess : public G4VProcess 00061 { 00062 // Abstract class which defines the public behavior of 00063 // Continuous physics interactions. 00064 public: 00065 00066 G4VContinuousProcess(const G4String& , 00067 G4ProcessType aType = fNotDefined ); 00068 G4VContinuousProcess(G4VContinuousProcess &); 00069 00070 virtual ~G4VContinuousProcess(); 00071 00072 public: // with description 00073 virtual G4double AlongStepGetPhysicalInteractionLength( 00074 const G4Track& track, 00075 G4double previousStepSize, 00076 G4double currentMinimumStep, 00077 G4double& proposedSafety, 00078 G4GPILSelection* selection 00079 ); 00080 00081 virtual G4VParticleChange* AlongStepDoIt( 00082 const G4Track& , 00083 const G4Step& 00084 ); 00085 00086 // no operation in AtRestDoIt and PostStepDoIt 00087 virtual G4double PostStepGetPhysicalInteractionLength( 00088 const G4Track&, 00089 G4double, 00090 G4ForceCondition* 00091 ){ return -1.0; }; 00092 00093 virtual G4double AtRestGetPhysicalInteractionLength( 00094 const G4Track& , 00095 G4ForceCondition* 00096 ) { return -1.0; }; 00097 00098 // no operation in AtRestDoIt and PostStepDoIt 00099 virtual G4VParticleChange* AtRestDoIt( 00100 const G4Track& , 00101 const G4Step& 00102 ) {return 0;}; 00103 00104 virtual G4VParticleChange* PostStepDoIt( 00105 const G4Track& , 00106 const G4Step& 00107 ) {return 0;}; 00108 00109 protected: // with description 00110 virtual G4double GetContinuousStepLimit(const G4Track& aTrack, 00111 G4double previousStepSize, 00112 G4double currentMinimumStep, 00113 G4double& currentSafety 00114 )=0; 00115 // This pure virtual function is used to calculate step limit 00116 // for AlongStep in the derived processes 00117 00118 private: 00119 // this is the returnd value of G4GPILSelection in 00120 // the arguments of AlongStepGPIL() 00121 G4GPILSelection valueGPILSelection; 00122 00123 protected: // with description 00124 // these two methods are set/get methods for valueGPILSelection 00125 void SetGPILSelection(G4GPILSelection selection) 00126 { valueGPILSelection = selection;}; 00127 00128 G4GPILSelection GetGPILSelection() const{return valueGPILSelection;}; 00129 00130 00131 private: 00132 // hide default constructor and assignment operator as private 00133 G4VContinuousProcess(); 00134 G4VContinuousProcess & operator=(const G4VContinuousProcess &right); 00135 00136 }; 00137 00138 #endif 00139 00140 00141 00142