Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ChipsHyperonInelasticXS Class Reference

#include <G4ChipsHyperonInelasticXS.hh>

Inheritance diagram for G4ChipsHyperonInelasticXS:
Collaboration diagram for G4ChipsHyperonInelasticXS:

Public Member Functions

 G4ChipsHyperonInelasticXS ()
 
 ~G4ChipsHyperonInelasticXS ()
 
virtual void CrossSectionDescription (std::ostream &) const
 
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)
 
virtual 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 G4Isotope * SelectIsotope (const G4Element *, G4double kinEnergy)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void DumpPhysicsTable (const G4ParticleDefinition &)
 
virtual G4int GetVerboseLevel () const
 
virtual void SetVerboseLevel (G4int value)
 
G4double GetMinKinEnergy () const
 
void SetMinKinEnergy (G4double value)
 
G4double GetMaxKinEnergy () const
 
void SetMaxKinEnergy (G4double value)
 
const G4String & GetName () 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 45 of file G4ChipsHyperonInelasticXS.hh.

Constructor & Destructor Documentation

G4ChipsHyperonInelasticXS::G4ChipsHyperonInelasticXS ( )

Definition at line 54 of file G4ChipsHyperonInelasticXS.cc.

55 {
56  // Initialization of the
57  lastLEN=0; // Pointer to the lastArray of LowEn CS
58  lastHEN=0; // Pointer to the lastArray of HighEn CS
59  lastN=0; // The last N of calculated nucleus
60  lastZ=0; // The last Z of calculated nucleus
61  lastP=0.; // Last used in cross section Momentum
62  lastTH=0.; // Last threshold momentum
63  lastCS=0.; // Last value of the Cross Section
64  lastI=0; // The last position in the DAMDB
65  LEN = new std::vector<G4double*>;
66  HEN = new std::vector<G4double*>;
67 }
G4VCrossSectionDataSet(const G4String &nam="")
Definition: inflate.h:41
G4ChipsHyperonInelasticXS::~G4ChipsHyperonInelasticXS ( )

Definition at line 69 of file G4ChipsHyperonInelasticXS.cc.

70 {
71  G4int lens=LEN->size();
72  for(G4int i=0; i<lens; ++i) delete[] (*LEN)[i];
73  delete LEN;
74 
75  G4int hens=HEN->size();
76  for(G4int i=0; i<hens; ++i) delete[] (*HEN)[i];
77  delete HEN;
78 }
int G4int
Definition: G4Types.hh:78
Definition: inflate.h:41

Member Function Documentation

void G4ChipsHyperonInelasticXS::CrossSectionDescription ( std::ostream &  outFile) const
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 80 of file G4ChipsHyperonInelasticXS.cc.

81 {
82  outFile << "G4ChipsHyperonInelasticXS provides the inelastic cross\n"
83  << "section for hyperon nucleus scattering as a function of incident\n"
84  << "momentum. The cross section is calculated using M. Kossov's\n"
85  << "CHIPS parameterization of cross section data.\n";
86 }
static const char* G4ChipsHyperonInelasticXS::Default_Name ( )
inlinestatic

Definition at line 54 of file G4ChipsHyperonInelasticXS.hh.

54 {return "ChipsHyperonInelasticXS";}

Here is the caller graph for this function:

G4double G4ChipsHyperonInelasticXS::GetChipsCrossSection ( G4double  momentum,
G4int  Z,
G4int  N,
G4int  pdg 
)
virtual

!The slave functions must provide cross-sections in millibarns (mb) !! (not in IU)

Definition at line 140 of file G4ChipsHyperonInelasticXS.cc.

141 {
142 
143  G4bool in=false; // By default the isotope must be found in the AMDB
144  if(tgN!=lastN || tgZ!=lastZ) // The nucleus was not the last used isotope
145  {
146  in = false; // By default the isotope haven't be found in AMDB
147  lastP = 0.; // New momentum history (nothing to compare with)
148  lastN = tgN; // The last N of the calculated nucleus
149  lastZ = tgZ; // The last Z of the calculated nucleus
150  lastI = colN.size(); // Size of the Associative Memory DB in the heap
151  j = 0; // A#0f records found in DB for this projectile
152 
153  if(lastI) for(G4int i=0; i<lastI; i++) // AMDB exists, try to find the (Z,N) isotope
154  {
155  if(colN[i]==tgN && colZ[i]==tgZ) // Try the record "i" in the AMDB
156  {
157  lastI=i; // Remember the index for future fast/last use
158  lastTH =colTH[i]; // The last THreshold (A-dependent)
159 
160  if(pMom<=lastTH)
161  {
162  return 0.; // Energy is below the Threshold value
163  }
164  lastP =colP [i]; // Last Momentum (A-dependent)
165  lastCS =colCS[i]; // Last CrossSect (A-dependent)
166  in = true; // This is the case when the isotop is found in DB
167  // Momentum pMom is in IU ! @@ Units
168  lastCS=CalculateCrossSection(-1,j,PDG,lastZ,lastN,pMom); // read & update
169 
170  if(lastCS<=0. && pMom>lastTH) // Correct the threshold (@@ No intermediate Zeros)
171  {
172  lastCS=0.;
173  lastTH=pMom;
174  }
175  break; // Go out of the LOOP
176  }
177  j++; // Increment a#0f records found in DB
178  }
179  if(!in) // This isotope has not been calculated previously
180  {
182  lastCS=CalculateCrossSection(0,j,PDG,lastZ,lastN,pMom); //calculate & create
183  //if(lastCS>0.) // It means that the AMBD was initialized
184  //{
185 
186  lastTH = 0; //ThresholdEnergy(tgZ, tgN); // The Threshold Energy which is now the last
187  colN.push_back(tgN);
188  colZ.push_back(tgZ);
189  colP.push_back(pMom);
190  colTH.push_back(lastTH);
191  colCS.push_back(lastCS);
192  //} // M.K. Presence of H1 with high threshold breaks the syncronization
193  return lastCS*millibarn;
194  } // End of creation of the new set of parameters
195  else
196  {
197  colP[lastI]=pMom;
198  colCS[lastI]=lastCS;
199  }
200  } // End of parameters udate
201  else if(pMom<=lastTH)
202  {
203  return 0.; // Momentum is below the Threshold Value -> CS=0
204  }
205  else // It is the last used -> use the current tables
206  {
207  lastCS=CalculateCrossSection(1,j,PDG,lastZ,lastN,pMom); // Only read and UpdateDB
208  lastP=pMom;
209  }
210  return lastCS*millibarn;
211 }
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
static constexpr double millibarn
Definition: G4SIunits.hh:106

Here is the caller graph for this function:

G4double G4ChipsHyperonInelasticXS::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 128 of file G4ChipsHyperonInelasticXS.cc.

132 {
133  G4double pMom=Pt->GetTotalMomentum();
134  G4int tgN = A - tgZ;
135  G4int pdg = Pt->GetDefinition()->GetPDGEncoding();
136 
137  return GetChipsCrossSection(pMom, tgZ, tgN, pdg);
138 }
virtual G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg)
G4ParticleDefinition * GetDefinition() const
int G4int
Definition: G4Types.hh:78
G4double GetTotalMomentum() const
double A(double temperature)
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

G4bool G4ChipsHyperonInelasticXS::IsIsoApplicable ( const G4DynamicParticle *  Pt,
G4int  Z,
G4int  A,
const G4Element *  elm,
const G4Material *  mat 
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 88 of file G4ChipsHyperonInelasticXS.cc.

91 {
92  /*
93  const G4ParticleDefinition* particle = Pt->GetDefinition();
94  if (particle == G4Lambda::Lambda())
95  {
96  return true;
97  }
98  else if(particle == G4SigmaPlus::SigmaPlus())
99  {
100  return true;
101  }
102  else if(particle == G4SigmaMinus::SigmaMinus())
103  {
104  return true;
105  }
106  else if(particle == G4SigmaZero::SigmaZero())
107  {
108  return true;
109  }
110  else if(particle == G4XiMinus::XiMinus())
111  {
112  return true;
113  }
114  else if(particle == G4XiZero::XiZero())
115  {
116  return true;
117  }
118  else if(particle == G4OmegaMinus::OmegaMinus())
119  {
120  return true;
121  }
122  */
123  return true;
124 }

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