Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QKaonZeroNuclearCrossSection Class Reference

#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)
 
- Public Member Functions inherited from G4VQCrossSection
virtual ~G4VQCrossSection ()
 
virtual G4double GetCrossSection (G4bool, G4double, G4int, G4int, G4int pPDG=0)
 
virtual G4double ThresholdEnergy (G4int Z, G4int N, G4int PDG=0)
 
virtual G4double CalculateCrossSection (G4bool CS, G4int F, G4int I, G4int PDG, G4int tgZ, G4int tgN, G4double pMom)=0
 
virtual G4double GetLastTOTCS ()
 
virtual G4double GetLastQELCS ()
 
virtual G4double GetDirectPart (G4double Q2)
 
virtual G4double GetNPartons (G4double Q2)
 
virtual G4double GetExchangeEnergy ()
 
virtual G4double GetExchangeT (G4int tZ, G4int tN, G4int pPDG)
 
virtual G4double GetSlope (G4int tZ, G4int tN, G4int pPDG)
 
virtual G4double GetHMaxT ()
 
virtual G4double GetExchangeQ2 (G4double nu=0)
 
virtual G4double GetVirtualFactor (G4double nu, G4double Q2)
 
virtual G4double GetQEL_ExchangeQ2 ()
 
virtual G4double GetNQE_ExchangeQ2 ()
 
virtual G4int GetExchangePDGCode ()
 

Static Public Member Functions

static G4VQCrossSectionGetPointer ()
 
- Static Public Member Functions inherited from G4VQCrossSection
static void setTolerance (G4double tol)
 

Protected Member Functions

 G4QKaonZeroNuclearCrossSection ()
 
- Protected Member Functions inherited from G4VQCrossSection
 G4VQCrossSection ()
 
G4double LinearFit (G4double X, G4int N, G4double *XN, G4double *YN)
 
G4double EquLinearFit (G4double X, G4int N, G4double X0, G4double DX, G4double *Y)
 

Additional Inherited Members

- Static Protected Attributes inherited from G4VQCrossSection
static G4double tolerance =.001
 

Detailed Description

Definition at line 52 of file G4QKaonZeroNuclearCrossSection.hh.

Constructor & Destructor Documentation

◆ G4QKaonZeroNuclearCrossSection()

G4QKaonZeroNuclearCrossSection::G4QKaonZeroNuclearCrossSection ( )
inlineprotected

Definition at line 56 of file G4QKaonZeroNuclearCrossSection.hh.

56{}

◆ ~G4QKaonZeroNuclearCrossSection()

G4QKaonZeroNuclearCrossSection::~G4QKaonZeroNuclearCrossSection ( )
inline

Definition at line 60 of file G4QKaonZeroNuclearCrossSection.hh.

60{}

Member Function Documentation

◆ CalculateCrossSection()

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.

92{
93 G4cout<<"-Warning-G4QKaonZeroCS::CalcCS:*A fake function is called, returns 0**"<<G4endl;
94 return 0.;
95} // It is kept because this is a pure virtual function of the G4VQCrossSection interface
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ GetCrossSection()

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.

74{
75#ifdef debug
76 G4cout<<"G4QKZCS::GetCS:>>> f="<<fCS<<", p="<<pMom<<", Z="<<tgZ<<"("<<lastZ<<") ,N="<<tgN
77 <<"("<<lastN<<"), PDG=130/310, thresh="<<lastTH<<",Sz="<<colN.size()<<G4endl;
78#endif
79 if(PDG!=130 && PDG!=310 && PDG!=311 && PDG!=-311)
80 G4cout<<"-Warning-G4QKaonZeroCS::GetCS:***Not a K0***, PDG="<<PDG<<G4endl;
81 G4double CS=(theKMinusCS->GetCrossSection(fCS,pMom,tgZ,tgN,-321)
82 +theKPlusCS->GetCrossSection(fCS,pMom,tgZ,tgN,321))/2;
83#ifdef debug
84 G4cout<<"==>G4QKZCS::GetCroSec: P="<<pMom<<"(MeV),CS="<<CS<<"(mb)"<<G4endl;
85#endif
86 return CS;
87}
double G4double
Definition: G4Types.hh:64
virtual G4double GetCrossSection(G4bool, G4double, G4int, G4int, G4int pPDG=0)

◆ GetPointer()

G4VQCrossSection * G4QKaonZeroNuclearCrossSection::GetPointer ( )
static

Definition at line 64 of file G4QKaonZeroNuclearCrossSection.cc.

65{
66 static G4QKaonZeroNuclearCrossSection theCrossSection; //**Static body of Cross Section**
67 return &theCrossSection;
68}

Referenced by G4QHadronInelasticDataSet::GetIsoCrossSection(), and G4QInelastic::GetMeanFreePath().


The documentation for this class was generated from the following files: