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 // Split barion (antibarion) into quark and diquark (antidiquark and antiqaurk ) 00027 // based on prototype, needs clean up of interfaces HPW Feb 1999 00028 // Numbers verified and errors corrected, HPW Dec 1999 00029 00030 #include "G4BaryonSplitter.hh" 00031 #include "G4ParticleTable.hh" 00032 00033 G4BaryonSplitter:: 00034 G4BaryonSplitter() 00035 { 00036 theBaryons.insert(new G4SPBaryon(G4Proton::Proton())); 00037 theBaryons.insert(new G4SPBaryon(G4Neutron::Neutron())); 00038 theBaryons.insert(new G4SPBaryon(G4AntiProton::AntiProton())); 00039 theBaryons.insert(new G4SPBaryon(G4AntiNeutron::AntiNeutron())); 00040 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(2224))); // D++ 00041 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(2214))); // D+ 00042 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(2114))); // D0 00043 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(1114))); // D- 00044 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-2224))); // anti D++ 00045 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-2214))); // anti D+ 00046 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-2114))); // anti D0 00047 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-1114))); // anti D- 00048 theBaryons.insert(new G4SPBaryon(G4Lambda::Lambda())); 00049 theBaryons.insert(new G4SPBaryon(G4AntiLambda::AntiLambda())); 00050 theBaryons.insert(new G4SPBaryon(G4SigmaPlus::SigmaPlus())); 00051 theBaryons.insert(new G4SPBaryon(G4SigmaZero::SigmaZero())); 00052 theBaryons.insert(new G4SPBaryon(G4SigmaMinus::SigmaMinus())); 00053 theBaryons.insert(new G4SPBaryon(G4AntiSigmaPlus::AntiSigmaPlus())); 00054 theBaryons.insert(new G4SPBaryon(G4AntiSigmaZero::AntiSigmaZero())); 00055 theBaryons.insert(new G4SPBaryon(G4AntiSigmaMinus::AntiSigmaMinus())); 00056 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(3224))); // S+* 00057 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(3214))); // S0* 00058 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(3114))); // S-* 00059 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-3224))); // anti S+* 00060 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-3214))); // anti S0* 00061 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-3114))); // anti S-* 00062 theBaryons.insert(new G4SPBaryon(G4XiMinus::XiMinus())); 00063 theBaryons.insert(new G4SPBaryon(G4XiZero::XiZero())); 00064 theBaryons.insert(new G4SPBaryon(G4AntiXiMinus::AntiXiMinus())); 00065 theBaryons.insert(new G4SPBaryon(G4AntiXiZero::AntiXiZero())); 00066 theBaryons.insert(new G4SPBaryon(G4OmegaMinus::OmegaMinus())); 00067 theBaryons.insert(new G4SPBaryon(G4AntiOmegaMinus::AntiOmegaMinus())); 00068 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(3324))); // X0* 00069 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(3314))); // X-* 00070 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-3324))); // anti X0* 00071 theBaryons.insert(new G4SPBaryon(G4ParticleTable::GetParticleTable()->FindParticle(-3314))); // anti X-* 00072 } 00073 00074 G4bool G4BaryonSplitter:: 00075 SplitBarion(G4int PDGCode, G4int* q_or_qqbar, G4int* qbar_or_qq) 00076 { 00077 const G4SPBaryon * aBaryon = theBaryons.GetBaryon(G4ParticleTable::GetParticleTable()->FindParticle(PDGCode)); 00078 if(aBaryon==NULL) 00079 { 00080 return FALSE; 00081 } 00082 else 00083 { 00084 aBaryon->SampleQuarkAndDiquark(*q_or_qqbar, *qbar_or_qq); 00085 return TRUE; 00086 } 00087 } 00088 00089 00090 // Get the splittable baryon for a PDG code. 00091 const G4SPBaryon & G4BaryonSplitter:: 00092 GetSPBaryon(G4int PDGCode) 00093 { 00094 return *theBaryons.GetBaryon(G4ParticleTable::GetParticleTable()->FindParticle(PDGCode)); 00095 } 00096 00097 00098 // Find rest diquark in given barion after quark - antiquark annihilation 00099 G4bool G4BaryonSplitter:: 00100 FindDiquark(G4int PDGCode, G4int Quark, G4int* Diquark) 00101 { 00102 const G4SPBaryon * aBaryon = theBaryons.GetBaryon(G4ParticleTable::GetParticleTable()->FindParticle(PDGCode)); 00103 if(aBaryon) 00104 { 00105 aBaryon->FindDiquark(Quark, *Diquark); 00106 return true; 00107 } 00108 return false; 00109 } 00110