Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // particle_hp -- source file 27 // J.P. Wellisch, Nov-1996 28 // A prototype of the low energy neutron trans 29 // 30 // P. Arce, Dec-2014 Conversion neutron_hp to 31 // 32 #include "G4ParticleHP3AInelasticFS.hh" 33 34 #include "G4Alpha.hh" 35 #include "G4Nucleus.hh" 36 #include "G4PhysicsModelCatalog.hh" 37 38 G4ParticleHP3AInelasticFS::G4ParticleHP3AInela 39 { 40 secID = G4PhysicsModelCatalog::GetModelID("m 41 } 42 43 G4HadFinalState* G4ParticleHP3AInelasticFS::Ap 44 { 45 // these are the particle types in the final 46 47 G4ParticleDefinition* theDefs[3]; 48 theDefs[0] = G4Alpha::Alpha(); 49 theDefs[1] = G4Alpha::Alpha(); 50 theDefs[2] = G4Alpha::Alpha(); 51 52 // fill the final state 53 G4ParticleHPInelasticBaseFS::BaseApply(theTr 54 55 // return the result 56 return theResult.Get(); 57 } 58 59 void G4ParticleHP3AInelasticFS::Init(G4double 60 const G4S 61 { 62 G4ParticleHPInelasticBaseFS::Init(A, Z, M, d 63 G4double ResidualA = 0; 64 G4double ResidualZ = 0; 65 if (projectile == G4Neutron::Neutron()) { 66 ResidualA = A - 11; 67 ResidualZ = Z - 6; 68 } 69 else if (projectile == G4Proton::Proton()) { 70 ResidualA = A - 11; 71 ResidualZ = Z - 5; 72 } 73 else if (projectile == G4Deuteron::Deuteron( 74 ResidualA = A - 10; 75 ResidualZ = Z - 5; 76 } 77 else if (projectile == G4Triton::Triton()) { 78 ResidualA = A - 9; 79 ResidualZ = Z - 5; 80 } 81 else if (projectile == G4He3::He3()) { 82 ResidualA = A - 9; 83 ResidualZ = Z - 4; 84 } 85 else if (projectile == G4Alpha::Alpha()) { 86 ResidualA = A - 8; 87 ResidualZ = Z - 4; 88 } 89 90 G4ParticleHPInelasticBaseFS::InitGammas(Resi 91 } 92