#include <G4QKaonZeroNuclearCrossSection.hh>
Inheritance diagram for G4QKaonZeroNuclearCrossSection:
Public Member Functions | |
~G4QKaonZeroNuclearCrossSection () | |
virtual G4double | GetCrossSection (G4bool fCS, G4double pMom, G4int tgZ, G4int tgN, G4int pPDG=130) |
G4double | CalculateCrossSection (G4bool CS, G4int F, G4int I, G4int PDG, G4int Z, G4int N, G4double Momentum) |
Static Public Member Functions | |
static G4VQCrossSection * | GetPointer () |
Protected Member Functions | |
G4QKaonZeroNuclearCrossSection () |
Definition at line 52 of file G4QKaonZeroNuclearCrossSection.hh.
G4QKaonZeroNuclearCrossSection::G4QKaonZeroNuclearCrossSection | ( | ) | [inline, protected] |
G4QKaonZeroNuclearCrossSection::~G4QKaonZeroNuclearCrossSection | ( | ) | [inline] |
G4double G4QKaonZeroNuclearCrossSection::CalculateCrossSection | ( | G4bool | CS, | |
G4int | F, | |||
G4int | I, | |||
G4int | PDG, | |||
G4int | Z, | |||
G4int | N, | |||
G4double | Momentum | |||
) | [virtual] |
Implements G4VQCrossSection.
Definition at line 90 of file G4QKaonZeroNuclearCrossSection.cc.
References G4cout, and G4endl.
00092 { 00093 G4cout<<"-Warning-G4QKaonZeroCS::CalcCS:*A fake function is called, returns 0**"<<G4endl; 00094 return 0.; 00095 } // It is kept because this is a pure virtual function of the G4VQCrossSection interface
G4double G4QKaonZeroNuclearCrossSection::GetCrossSection | ( | G4bool | fCS, | |
G4double | pMom, | |||
G4int | tgZ, | |||
G4int | tgN, | |||
G4int | pPDG = 130 | |||
) | [virtual] |
Reimplemented from G4VQCrossSection.
Definition at line 72 of file G4QKaonZeroNuclearCrossSection.cc.
References G4cout, G4endl, and G4VQCrossSection::GetCrossSection().
00074 { 00075 #ifdef debug 00076 G4cout<<"G4QKZCS::GetCS:>>> f="<<fCS<<", p="<<pMom<<", Z="<<tgZ<<"("<<lastZ<<") ,N="<<tgN 00077 <<"("<<lastN<<"), PDG=130/310, thresh="<<lastTH<<",Sz="<<colN.size()<<G4endl; 00078 #endif 00079 if(PDG!=130 && PDG!=310 && PDG!=311 && PDG!=-311) 00080 G4cout<<"-Warning-G4QKaonZeroCS::GetCS:***Not a K0***, PDG="<<PDG<<G4endl; 00081 G4double CS=(theKMinusCS->GetCrossSection(fCS,pMom,tgZ,tgN,-321) 00082 +theKPlusCS->GetCrossSection(fCS,pMom,tgZ,tgN,321))/2; 00083 #ifdef debug 00084 G4cout<<"==>G4QKZCS::GetCroSec: P="<<pMom<<"(MeV),CS="<<CS<<"(mb)"<<G4endl; 00085 #endif 00086 return CS; 00087 }
G4VQCrossSection * G4QKaonZeroNuclearCrossSection::GetPointer | ( | ) | [static] |
Definition at line 64 of file G4QKaonZeroNuclearCrossSection.cc.
Referenced by G4QHadronInelasticDataSet::GetIsoCrossSection(), and G4QInelastic::GetMeanFreePath().
00065 { 00066 static G4QKaonZeroNuclearCrossSection theCrossSection; //**Static body of Cross Section** 00067 return &theCrossSection; 00068 }