58 const G4int G4XPDGElastic::nPar = 7;
60 const G4double G4XPDGElastic::pPiPlusPDGFit[7] = { 2., 200., 0., 11.4, -0.4, 0.079, 0. };
62 const G4double G4XPDGElastic::pPiMinusPDGFit[7] = { 2., 360., 1.76, 11.2, -0.64, 0.043, 0. };
64 const G4double G4XPDGElastic::pKPlusPDGFit[7] = { 2., 175., 5.0, 8.1, -1.8, 0.16, -1.3 };
66 const G4double G4XPDGElastic::pKMinusPDGFit[7] = { 2., 175., 7.3, 0., 0., 0.29, -2.40 };
68 const G4double G4XPDGElastic::ppPDGFit[7] = { 2., 2100., 11.9, 26.9, -1.21, 0.169, -1.85 };
70 const G4double G4XPDGElastic::ppbarPDGFit[7] = { 5., 1730000., 10.2, 52.7, -1.16, 0.125, -1.28 };
72 const G4double G4XPDGElastic::npbarPDGFit[7] = { 1.1, 5.55, 36.5, 0., 0., 0., -11.9 };
85 std::pair<G4ParticleDefinition *,G4ParticleDefinition *>
pp(proton,proton);
86 std::pair<G4ParticleDefinition *,G4ParticleDefinition *>
pn(proton,neutron);
87 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> piPlusp(piPlus,proton);
88 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> piMinusp(piMinus,proton);
89 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> KPlusp(KPlus,proton);
90 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> KMinusp(KMinus,proton);
91 std::pair<G4ParticleDefinition *,G4ParticleDefinition *>
nn(neutron,neutron);
92 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> ppbar(proton,antiproton);
93 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> npbar(antiproton,neutron);
95 std::vector<G4double> ppData;
96 std::vector<G4double> pPiPlusData;
97 std::vector<G4double> pPiMinusData;
98 std::vector<G4double> pKPlusData;
99 std::vector<G4double> pKMinusData;
100 std::vector<G4double> ppbarData;
101 std::vector<G4double> npbarData;
106 ppData.push_back(ppPDGFit[i] *
GeV);
107 pPiPlusData.push_back(pPiPlusPDGFit[i] * GeV);
108 pPiMinusData.push_back(pPiMinusPDGFit[i] * GeV);
109 pKPlusData.push_back(pKPlusPDGFit[i] * GeV);
110 pKMinusData.push_back(pKMinusPDGFit[i] * GeV);
111 ppbarData.push_back(ppbarPDGFit[i] * GeV);
112 npbarData.push_back(npbarPDGFit[i] * GeV);
115 for (i=2; i<nPar; i++)
117 ppData.push_back(ppPDGFit[i]);
118 pPiPlusData.push_back(pPiPlusPDGFit[i]);
119 pPiMinusData.push_back(pPiMinusPDGFit[i]);
120 pKPlusData.push_back(pKPlusPDGFit[i]);
121 pKMinusData.push_back(pKMinusPDGFit[i]);
122 ppbarData.push_back(ppbarPDGFit[i]);
123 npbarData.push_back(npbarPDGFit[i]);
129 xMap[piPlusp] = pPiPlusData;
130 xMap[piMinusp] = pPiMinusData;
131 xMap[KPlusp] = pKPlusData;
132 xMap[KMinusp] = pKMinusData;
133 xMap[ppbar] = ppbarData;
134 xMap[npbar] = npbarData;
171 if (m_max > 0. && sqrtS > (m_1 + m_2))
173 pLab = std::sqrt( (sqrtS*sqrtS - (m_1+m_2)*(m_1+m_2) ) * (sqrtS*sqrtS - (m_1-m_2)*(m_1-m_2)) ) / (2*m_max);
178 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> trkPair(def1,def2);
180 trkPair = std::pair<G4ParticleDefinition *,G4ParticleDefinition *>(def2,def1);
182 std::vector<G4double>
data;
195 if (xMap.find(trkPair) != xMap.end())
197 PairDoubleMap::const_iterator iter;
198 for (iter = xMap.begin(); iter != xMap.end(); ++iter)
200 std::pair<G4ParticleDefinition *,G4ParticleDefinition *> thePair = (*iter).first;
201 if (thePair == trkPair)
203 data = (*iter).second;
212 if (pLab < pMinFit)
return 0.0;
214 G4cout <<
"WARNING! G4XPDGElastic::PDGElastic "
217 <<
" elastic cross section: momentum "
218 << pLab /
GeV <<
" GeV outside valid fit range "
219 << pMinFit /
GeV <<
"-" << pMaxFit /
GeV
226 sigma = aFit + bFit * std::pow(pLab, nFit) + cFit * logP*logP + dFit * logP;
234 G4cout <<
"G4XPDGElastic::CrossSection - Data not found in Map" <<
G4endl;
240 G4cout <<
"WARNING! G4XPDGElastic::PDGElastic "
242 <<
" elastic cross section: momentum "
243 << pLab <<
" GeV, negative cross section "