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 // 00027 // $Id: G4CollisionMesonBaryonToResonance.hh,v 1.3 2006-06-29 20:32:52 gunter Exp $ // 00028 00029 #ifndef G4CollisionMesonBaryonToResonance_h 00030 #define G4CollisionMesonBaryonToResonance_h 00031 00032 #include "globals.hh" 00033 #include "G4CollisionComposite.hh" 00034 #include "G4VCrossSectionSource.hh" 00035 #include "G4VAngularDistribution.hh" 00036 #include "G4KineticTrackVector.hh" 00037 #include <vector> 00038 #include "G4XpipNTotal.hh" 00039 #include "G4XpimNTotal.hh" 00040 #include "G4PionPlus.hh" 00041 #include "G4Proton.hh" 00042 #include "G4PionMinus.hh" 00043 00044 00045 class G4CollisionMesonBaryonToResonance : public G4CollisionComposite 00046 { 00047 00048 public: 00049 00050 G4CollisionMesonBaryonToResonance(); 00051 virtual ~G4CollisionMesonBaryonToResonance(){}; 00052 00053 private: 00054 G4CollisionMesonBaryonToResonance(const G4CollisionMesonBaryonToResonance &); 00055 G4CollisionMesonBaryonToResonance & operator= (const G4CollisionMesonBaryonToResonance &); 00056 00057 00058 virtual G4String GetName() const { return "mN -> baryon Resonance Collision"; } 00059 virtual G4double CrossSection(const G4KineticTrack& trk1, 00060 const G4KineticTrack& trk2) const 00061 { 00062 G4double result=0; 00063 // if(trk1.GetDefinition() == G4PionPlus::PionPlus() && trk2.GetDefinition()==G4Proton::Proton()) 00064 // { 00065 // result=thepipp.CrossSection(trk1, trk2); 00066 // } 00067 // else if(trk2.GetDefinition() == G4PionPlus::PionPlus() && trk1.GetDefinition()==G4Proton::Proton()) 00068 // { 00069 // result=thepipp.CrossSection(trk2, trk1); 00070 // } 00071 // else if(trk1.GetDefinition() == G4PionMinus::PionMinus() && trk2.GetDefinition()==G4Proton::Proton()) 00072 // { 00073 // result=thepimp.CrossSection(trk1, trk2); 00074 // } 00075 // else if(trk2.GetDefinition() == G4PionMinus::PionMinus() && trk1.GetDefinition()==G4Proton::Proton()) 00076 // { 00077 // result=thepimp.CrossSection(trk2, trk1); 00078 // } 00079 // else 00080 { 00081 result = G4CollisionComposite::CrossSection(trk1, trk2); 00082 } 00083 return result; 00084 } 00085 00086 protected: 00087 00088 virtual const std::vector<G4String>& GetListOfColliders(G4int ) const 00089 { 00090 throw G4HadronicException(__FILE__, __LINE__, "Tried to call G4CollisionMesonBaryonToResonance::GetListOfColliders. Please find out why!"); 00091 std::vector<G4String> * aList = new std::vector<G4String>; 00092 return *aList; 00093 } 00094 private: 00095 G4XpipNTotal thepipp; 00096 G4XpimNTotal thepimp; 00097 }; 00098 00099 #endif