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 // INCL++ intra-nuclear cascade model 00027 // Pekka Kaitaniemi, CEA and Helsinki Institute of Physics 00028 // Davide Mancusi, CEA 00029 // Alain Boudard, CEA 00030 // Sylvie Leray, CEA 00031 // Joseph Cugnon, University of Liege 00032 // 00033 #define INCLXX_IN_GEANT4_MODE 1 00034 00035 #include "globals.hh" 00036 00044 #include "G4INCLRecombinationChannel.hh" 00045 #include "G4INCLRandom.hh" 00046 #include "G4INCLKinematicsUtils.hh" 00047 #include "G4INCLParticleTable.hh" 00048 #include "G4INCLBinaryCollisionAvatar.hh" 00049 #include "G4INCLGlobals.hh" 00050 00051 // #include <cassert> 00052 00053 namespace G4INCL { 00054 00055 RecombinationChannel::RecombinationChannel(Nucleus *n, Particle *p1, Particle *p2) 00056 :theNucleus(n) 00057 { 00058 if(p1->isDelta()) { 00059 // assert(p2->isNucleon()); 00060 theDelta = p1; 00061 theNucleon = p2; 00062 } else { 00063 // assert(p1->isNucleon()); 00064 theDelta = p2; 00065 theNucleon = p1; 00066 } 00067 } 00068 00069 RecombinationChannel::~RecombinationChannel() 00070 { 00071 } 00072 00073 FinalState* RecombinationChannel::getFinalState() 00074 { 00075 // Compute the total available energy in the CM 00076 const G4double sqrts = KinematicsUtils::totalEnergyInCM(theDelta, theNucleon); 00077 00078 // Assign the types of the final-state particles 00079 switch(theDelta->getType()) { 00080 case DeltaPlusPlus: 00081 // assert(theNucleon->getType()!=Proton); 00082 theDelta->setType(Proton); 00083 theNucleon->setType(Proton); 00084 break; 00085 case DeltaPlus: 00086 theDelta->setType(Proton); 00087 break; 00088 case DeltaZero: 00089 theDelta->setType(Neutron); 00090 break; 00091 case DeltaMinus: 00092 // assert(theNucleon->getType()!=Neutron); 00093 theDelta->setType(Neutron); 00094 theNucleon->setType(Neutron); 00095 break; 00096 default: 00097 ERROR("Unknown particle type in RecombinationChannel" << std::endl); 00098 break; 00099 } 00100 00101 // Calculate the momenta of the nucleons in the final state 00102 const G4double pCM = KinematicsUtils::momentumInCM(sqrts, theDelta->getMass(), theNucleon->getMass()); 00103 00104 // The angular distribution of final-state nucleons is isotropic 00105 ThreeVector momentum = Random::normVector(pCM); 00106 00107 // Assign the momenta 00108 theDelta->setMomentum(momentum); 00109 theNucleon->setMomentum(-momentum); 00110 00111 // Update the kinetic energies 00112 theDelta->adjustEnergyFromMomentum(); 00113 theNucleon->adjustEnergyFromMomentum(); 00114 00115 // Create the final state 00116 FinalState *fs = new FinalState(); 00117 fs->addModifiedParticle(theDelta); 00118 fs->addModifiedParticle(theNucleon); 00119 00120 return fs; 00121 00122 } 00123 00124 }