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 // G4KaonMinusAbsorption physics process 00027 // Larry Felawka (TRIUMF), April 1998 00028 //--------------------------------------------------------------------- 00029 00030 #ifndef G4KaonMinusAbsorption_h 00031 #define G4KaonMinusAbsorption_h 1 00032 00033 #include "globals.hh" 00034 #include "Randomize.hh" 00035 #include "G4VRestProcess.hh" 00036 #include "G4VParticleChange.hh" 00037 #include "G4ParticleDefinition.hh" 00038 #include "G4GHEKinematicsVector.hh" 00039 #include "G4HadronicProcessType.hh" 00040 00041 // Class Description: 00042 // 00043 // Alternative process for absorption of K- at rest. 00044 // To be used in your physics list in case you need this physics. 00045 00046 00047 class G4KaonMinusAbsorption : public G4VRestProcess 00048 00049 { 00050 private: 00051 // hide assignment operator as private 00052 G4KaonMinusAbsorption& operator=(const G4KaonMinusAbsorption &right); 00053 G4KaonMinusAbsorption(const G4KaonMinusAbsorption& ); 00054 00055 public: 00056 00057 G4KaonMinusAbsorption(const G4String& processName ="KaonMinusAbsorption", 00058 G4ProcessType aType = fHadronic ); 00059 00060 ~G4KaonMinusAbsorption(); 00061 00062 G4bool IsApplicable(const G4ParticleDefinition&); 00063 00064 void PreparePhysicsTable(const G4ParticleDefinition&); 00065 00066 void BuildPhysicsTable(const G4ParticleDefinition&); 00067 00068 G4double AtRestGetPhysicalInteractionLength(const G4Track&, 00069 G4ForceCondition*); 00070 00071 // zero mean lifetime 00072 G4double GetMeanLifeTime(const G4Track& , 00073 G4ForceCondition* ) {return 0.0;} 00074 00075 G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&); 00076 00077 // return number of secondaries produced 00078 G4int GetNumberOfSecondaries(); 00079 00080 // pointer to array containg kinematics of secondaries 00081 G4GHEKinematicsVector* GetSecondaryKinematics(); 00082 00083 private: 00084 00085 void GenerateSecondaries(); 00086 void Poisso( G4float, G4int* ); 00087 void Normal( G4float* ); 00088 void KaonMinusAbsorption( G4int* ); 00089 G4int NFac( G4int ); 00090 00091 private: 00092 00093 // global time-of-flight of stopped AntiProton 00094 G4float globalTime; 00095 00096 // atomic mass of target nucleus 00097 G4float targetAtomicMass; 00098 00099 // charge of target nucleus 00100 G4float targetCharge; 00101 00102 G4GHEKinematicsVector* pv; 00103 G4GHEKinematicsVector* eve; 00104 G4GHEKinematicsVector* gkin; 00105 00106 G4float evapEnergy1; 00107 G4float evapEnergy3; 00108 00109 G4int ngkine; 00110 00111 G4int ntot; 00112 G4GHEKinematicsVector result; 00113 00114 G4float massKaonMinus; 00115 G4float massGamma; 00116 G4float massPionZero; 00117 G4float massProton; 00118 G4float massLambda; 00119 00120 G4ParticleDefinition* pdefKaonMinus; 00121 G4ParticleDefinition* pdefGamma; 00122 G4ParticleDefinition* pdefPionZero; 00123 G4ParticleDefinition* pdefProton; 00124 G4ParticleDefinition* pdefNeutron; 00125 G4ParticleDefinition* pdefLambda; 00126 G4ParticleDefinition* pdefDeuteron; 00127 G4ParticleDefinition* pdefTriton; 00128 G4ParticleDefinition* pdefAlpha; 00129 00130 }; 00131 00132 #endif 00133