source: trunk/source/processes/hadronic/models/im_r_matrix/include/G4CollisionMesonBaryonToResonance.hh@ 1036

Last change on this file since 1036 was 819, checked in by garnier, 17 years ago

import all except CVS

File size: 3.6 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id: G4CollisionMesonBaryonToResonance.hh,v 1.3 2006/06/29 20:32:52 gunter Exp $ //
28
29#ifndef G4CollisionMesonBaryonToResonance_h
30#define G4CollisionMesonBaryonToResonance_h
31
32#include "globals.hh"
33#include "G4CollisionComposite.hh"
34#include "G4VCrossSectionSource.hh"
35#include "G4VAngularDistribution.hh"
36#include "G4KineticTrackVector.hh"
37#include <vector>
38#include "G4XpipNTotal.hh"
39#include "G4XpimNTotal.hh"
40#include "G4PionPlus.hh"
41#include "G4Proton.hh"
42#include "G4PionMinus.hh"
43
44
45class G4CollisionMesonBaryonToResonance : public G4CollisionComposite
46{
47
48public:
49
50 G4CollisionMesonBaryonToResonance();
51 virtual ~G4CollisionMesonBaryonToResonance(){};
52 virtual G4String GetName() const { return "mN -> baryon Resonance Collision"; }
53 virtual G4double CrossSection(const G4KineticTrack& trk1,
54 const G4KineticTrack& trk2) const
55 {
56 G4double result=0;
57// if(trk1.GetDefinition() == G4PionPlus::PionPlus() && trk2.GetDefinition()==G4Proton::Proton())
58// {
59// result=thepipp.CrossSection(trk1, trk2);
60// }
61// else if(trk2.GetDefinition() == G4PionPlus::PionPlus() && trk1.GetDefinition()==G4Proton::Proton())
62// {
63// result=thepipp.CrossSection(trk2, trk1);
64// }
65// else if(trk1.GetDefinition() == G4PionMinus::PionMinus() && trk2.GetDefinition()==G4Proton::Proton())
66// {
67// result=thepimp.CrossSection(trk1, trk2);
68// }
69// else if(trk2.GetDefinition() == G4PionMinus::PionMinus() && trk1.GetDefinition()==G4Proton::Proton())
70// {
71// result=thepimp.CrossSection(trk2, trk1);
72// }
73// else
74 {
75 result = G4CollisionComposite::CrossSection(trk1, trk2);
76 }
77 return result;
78 }
79
80protected:
81
82 virtual const std::vector<G4String>& GetListOfColliders(G4int ) const
83 {
84 throw G4HadronicException(__FILE__, __LINE__, "Tried to call G4CollisionMesonBaryonToResonance::GetListOfColliders. Please find out why!");
85 std::vector<G4String> * aList = new std::vector<G4String>;
86 return *aList;
87 }
88private:
89 G4XpipNTotal thepipp;
90 G4XpimNTotal thepimp;
91};
92
93#endif
Note: See TracBrowser for help on using the repository browser.