Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions
G4ChipsKaonZeroElasticXS Class Reference

#include <G4ChipsKaonZeroElasticXS.hh>

Inheritance diagram for G4ChipsKaonZeroElasticXS:
G4VCrossSectionDataSet

Public Member Functions

 G4ChipsKaonZeroElasticXS ()
 
 ~G4ChipsKaonZeroElasticXS ()
 
virtual G4bool IsIsoApplicable (const G4DynamicParticle *Pt, G4int Z, G4int A, const G4Element *elm, const G4Material *mat)
 
virtual G4double GetIsoCrossSection (const G4DynamicParticle *, G4int tgZ, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
 
G4double GetChipsCrossSection (G4double momentum, G4int Z, G4int N, G4int pdg)
 
- Public Member Functions inherited from G4VCrossSectionDataSet
 G4VCrossSectionDataSet (const G4String &nam="")
 
virtual ~G4VCrossSectionDataSet ()
 
virtual G4bool IsElementApplicable (const G4DynamicParticle *, G4int Z, const G4Material *mat=0)
 
G4double GetCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0)
 
G4double ComputeCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0)
 
virtual G4double GetElementCrossSection (const G4DynamicParticle *, G4int Z, const G4Material *mat=0)
 
virtual G4IsotopeSelectIsotope (const G4Element *, G4double kinEnergy)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void DumpPhysicsTable (const G4ParticleDefinition &)
 
virtual void CrossSectionDescription (std::ostream &) const
 
virtual G4int GetVerboseLevel () const
 
virtual void SetVerboseLevel (G4int value)
 
G4double GetMinKinEnergy () const
 
void SetMinKinEnergy (G4double value)
 
G4double GetMaxKinEnergy () const
 
void SetMaxKinEnergy (G4double value)
 
const G4StringGetName () const
 

Static Public Member Functions

static const char * Default_Name ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4VCrossSectionDataSet
void SetName (const G4String &)
 
- Protected Attributes inherited from G4VCrossSectionDataSet
G4int verboseLevel
 

Detailed Description

Definition at line 49 of file G4ChipsKaonZeroElasticXS.hh.

Constructor & Destructor Documentation

G4ChipsKaonZeroElasticXS::G4ChipsKaonZeroElasticXS ( )

Definition at line 56 of file G4ChipsKaonZeroElasticXS.cc.

References G4ChipsKaonPlusElasticXS::Default_Name(), G4ChipsKaonMinusElasticXS::Default_Name(), G4CrossSectionDataSetRegistry::GetCrossSectionDataSet(), and G4CrossSectionDataSetRegistry::Instance().

57 {
58 
59  lastLEN=0;// Pointer to the lastArray of LowEn CS
60  lastHEN=0;// Pointer to the lastArray of HighEnCS
61  lastN=0; // The last N of calculated nucleus
62  lastZ=0; // The last Z of calculated nucleus
63  lastP=0.; // Last used in cross section Momentum
64  lastTH=0.;// Last threshold momentum
65  lastCS=0.;// Last value of the Cross Section
66  lastI=0; // The last position in the DAMDB
67 
70 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4VCrossSectionDataSet(const G4String &nam="")
static G4CrossSectionDataSetRegistry * Instance()
static const char * Default_Name()
static const char * Default_Name()
G4ChipsKaonZeroElasticXS::~G4ChipsKaonZeroElasticXS ( )

Definition at line 73 of file G4ChipsKaonZeroElasticXS.cc.

74 {
75 }

Member Function Documentation

static const char* G4ChipsKaonZeroElasticXS::Default_Name ( )
inlinestatic

Definition at line 59 of file G4ChipsKaonZeroElasticXS.hh.

Referenced by G4HadronDElasticPhysics::ConstructProcess(), and G4ChipsComponentXS::G4ChipsComponentXS().

59 {return "ChipsKaonZeroElasticXS";}
G4double G4ChipsKaonZeroElasticXS::GetChipsCrossSection ( G4double  momentum,
G4int  Z,
G4int  N,
G4int  pdg 
)

Definition at line 109 of file G4ChipsKaonZeroElasticXS.cc.

References G4ChipsKaonPlusElasticXS::GetChipsCrossSection(), and G4ChipsKaonMinusElasticXS::GetChipsCrossSection().

Referenced by GetIsoCrossSection().

110 {
111  return (theKMinusCS->GetChipsCrossSection(mom,Z,N,pdg)
112  +theKPlusCS->GetChipsCrossSection(mom,Z,N,pdg))/2;
113 }
virtual G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg)
virtual G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg)
**D E S C R I P T I O N
G4double G4ChipsKaonZeroElasticXS::GetIsoCrossSection ( const G4DynamicParticle Pt,
G4int  tgZ,
G4int  A,
const G4Isotope iso = 0,
const G4Element elm = 0,
const G4Material mat = 0 
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 98 of file G4ChipsKaonZeroElasticXS.cc.

References GetChipsCrossSection(), G4DynamicParticle::GetTotalMomentum(), and N.

102 {
103  G4double pMom=Pt->GetTotalMomentum();
104  G4int N = A - tgZ;
105 
106  return GetChipsCrossSection(pMom, tgZ, N, 311);
107 }
G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg)
int G4int
Definition: G4Types.hh:78
G4double GetTotalMomentum() const
**D E S C R I P T I O N
double G4double
Definition: G4Types.hh:76
G4bool G4ChipsKaonZeroElasticXS::IsIsoApplicable ( const G4DynamicParticle Pt,
G4int  Z,
G4int  A,
const G4Element elm,
const G4Material mat 
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 77 of file G4ChipsKaonZeroElasticXS.cc.

References G4AntiKaonZero::AntiKaonZero(), G4DynamicParticle::GetDefinition(), G4KaonZero::KaonZero(), G4KaonZeroLong::KaonZeroLong(), and G4KaonZeroShort::KaonZeroShort().

80 {
81  G4ParticleDefinition* particle = Pt->GetDefinition();
82 
83  if(particle == G4KaonZeroLong::KaonZeroLong() ||
84  particle == G4KaonZeroShort::KaonZeroShort() ||
85  particle == G4KaonZero::KaonZero() ||
86  particle == G4AntiKaonZero::AntiKaonZero() )
87  {
88  return true;
89  }
90  return false;
91 }
static G4KaonZero * KaonZero()
Definition: G4KaonZero.cc:104
static G4KaonZeroLong * KaonZeroLong()
G4ParticleDefinition * GetDefinition() const
static G4KaonZeroShort * KaonZeroShort()
static G4AntiKaonZero * AntiKaonZero()

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