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 // G4PionMinusAbsorptionAtRest physics process 00027 // Larry Felawka (TRIUMF), April 1998 00028 //--------------------------------------------------------------------- 00029 00030 #ifndef G4PionMinusAbsorptionAtRest_h 00031 #define G4PionMinusAbsorptionAtRest_h 1 00032 00033 // Class Description: 00034 // 00035 // Process for pi- absorption at rest. 00036 // To be used in your physics list in case you need this physics. 00037 00038 #include "globals.hh" 00039 #include "Randomize.hh" 00040 #include "G4VRestProcess.hh" 00041 #include "G4VParticleChange.hh" 00042 #include "G4ParticleDefinition.hh" 00043 #include "G4GHEKinematicsVector.hh" 00044 #include "G4HadronicProcessType.hh" 00045 00046 class G4PionMinusAbsorptionAtRest : public G4VRestProcess 00047 00048 { 00049 private: 00050 // hide assignment operator as private 00051 G4PionMinusAbsorptionAtRest& operator=(const G4PionMinusAbsorptionAtRest &right); 00052 G4PionMinusAbsorptionAtRest(const G4PionMinusAbsorptionAtRest& ); 00053 00054 public: 00055 00056 G4PionMinusAbsorptionAtRest(const G4String& processName ="PionMinusAbsorptionAtRest", 00057 G4ProcessType aType = fHadronic); 00058 00059 ~G4PionMinusAbsorptionAtRest(); 00060 00061 G4bool IsApplicable(const G4ParticleDefinition&); 00062 00063 void PreparePhysicsTable(const G4ParticleDefinition&); 00064 00065 // null physics table 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 PionMinusAbsorption( G4int* ); 00087 void Poisso( G4float, G4int* ); 00088 void Normal( G4float* ); 00089 G4double ExNu( G4float ); 00090 G4int NFac( G4int ); 00091 00092 private: 00093 00094 // global time-of-flight of stopped PionMinus 00095 G4float globalTime; 00096 00097 // atomic mass of target nucleus 00098 G4float targetAtomicMass; 00099 00100 // charge of target nucleus 00101 G4float targetCharge; 00102 00103 G4GHEKinematicsVector* pv; 00104 G4GHEKinematicsVector* eve; 00105 G4GHEKinematicsVector* gkin; 00106 00107 G4float evapEnergy1; 00108 G4float evapEnergy3; 00109 00110 G4int ngkine; 00111 00112 G4int ntot; 00113 G4GHEKinematicsVector result; 00114 00115 G4float massPionMinus; 00116 00117 G4ParticleDefinition* pdefGamma; 00118 G4ParticleDefinition* pdefPionZero; 00119 G4ParticleDefinition* pdefPionMinus; 00120 G4ParticleDefinition* pdefProton; 00121 G4ParticleDefinition* pdefNeutron; 00122 G4ParticleDefinition* pdefDeuteron; 00123 G4ParticleDefinition* pdefTriton; 00124 G4ParticleDefinition* pdefAlpha; 00125 00126 }; 00127 00128 #endif 00129