source: trunk/source/processes/hadronic/models/cascade/cascade/include/G4PionSampler.hh @ 1228

Last change on this file since 1228 was 1228, checked in by garnier, 14 years ago

update geant4.9.3 tag

File size: 4.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// $Id: G4PionSampler.hh,v 1.2 2009/09/17 18:10:44 dennis Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29// Author: D. H. Wright
30// Date:   26 March 2009
31//
32
33#ifndef G4PionSampler_h
34#define G4PionSampler_h 1
35 
36// Class Description:
37// Samples partial cross sections, multiplicities and final state particle
38// types required for pi+, pi- and pi0 scattering within a nucleus
39
40#include "G4FinalStateSampler.hh"
41 
42class G4PionSampler : public G4FinalStateSampler
43{
44 public:
45   
46   G4PionSampler();
47   
48   ~G4PionSampler() 
49   { }
50
51   void printCrossSections() const;
52   
53   G4int GetMultiplicityT33(G4double KE) const;   // pi+p, pi-n
54   G4int GetMultiplicityT31(G4double KE) const;   // pi-p, pi+n
55   G4int GetMultiplicityT11(G4double KE) const;   // pi0p, pi0n
56
57   std::vector<G4int>
58   GetFSPartTypesForT33(G4int mult, G4double KE, G4int tindex) const;
59   std::vector<G4int>
60   GetFSPartTypesForT31(G4int mult, G4double KE, G4int tindex) const;
61   std::vector<G4int>
62   GetFSPartTypesForT11(G4int mult, G4double KE, G4int tindex) const;
63
64   std::vector<G4int> GetFSPartTypesForPipP(G4int mult, G4double KE) const
65     {return GetFSPartTypesForT33(mult, KE, 0); }
66
67   std::vector<G4int> GetFSPartTypesForPimN(G4int mult, G4double KE) const
68     {return GetFSPartTypesForT33(mult, KE, 1); }
69
70   std::vector<G4int> GetFSPartTypesForPimP(G4int mult, G4double KE) const
71     {return GetFSPartTypesForT31(mult, KE, 0); }
72
73   std::vector<G4int> GetFSPartTypesForPipN(G4int mult, G4double KE) const
74     {return GetFSPartTypesForT31(mult, KE, 1); }
75
76   std::vector<G4int> GetFSPartTypesForPizP(G4int mult, G4double KE) const
77     {return GetFSPartTypesForT11(mult, KE, 0); }
78
79   std::vector<G4int> GetFSPartTypesForPizN(G4int mult, G4double KE) const
80     {return GetFSPartTypesForT11(mult, KE, 1); }
81
82 protected:
83
84   G4int pipPindex[8][2];
85   G4int pimPindex[8][2];
86   G4int pizPindex[8][2];
87
88   G4int T33_2bfs[2][2][2];
89   G4int T33_3bfs[2][7][3];
90   G4int T33_4bfs[2][15][4];
91   G4int T33_5bfs[2][24][5];
92   G4int T33_6bfs[2][5][6];
93   G4int T33_7bfs[2][6][7];
94   G4int T33_8bfs[2][7][8];
95   G4int T33_9bfs[2][8][9];
96
97   G4int T31_2bfs[2][5][2];
98   G4int T31_3bfs[2][13][3];
99   G4int T31_4bfs[2][22][4];
100   G4int T31_5bfs[2][31][5];
101   G4int T31_6bfs[2][6][6];
102   G4int T31_7bfs[2][7][7];
103   G4int T31_8bfs[2][8][8];
104   G4int T31_9bfs[2][9][9];
105
106   G4int T11_2bfs[2][5][2];
107   G4int T11_3bfs[2][13][3];
108   G4int T11_4bfs[2][21][4];
109   G4int T11_5bfs[2][30][5];
110   G4int T11_6bfs[2][6][6];
111   G4int T11_7bfs[2][7][7];
112   G4int T11_8bfs[2][8][8];
113   G4int T11_9bfs[2][9][9];
114
115   G4double pipPsummed[30];
116   G4double pipPtot[30];
117   G4double pimPsummed[30];
118   G4double pimPtot[30];
119   G4double pizPsummed[30];
120   G4double pizPtot[30];
121   G4double t31_dSigma_dMult[8][30];
122   G4double t33_dSigma_dMult[8][30];
123   G4double t11_dSigma_dMult[8][30];
124
125   G4float pipPCrossSections[74][30];
126   G4float pimPCrossSections[101][30];
127   G4float pizPCrossSections[99][30];
128
129 private:
130
131   void initCrossSections();
132
133 };
134#endif
Note: See TracBrowser for help on using the repository browser.