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

#include <G4teoCrossSection.hh>

Inheritance diagram for G4teoCrossSection:
G4VhShellCrossSection

Public Member Functions

 G4teoCrossSection (const G4String &name)
 
virtual ~G4teoCrossSection ()
 
std::vector< G4doubleGetCrossSection (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy=0, const G4Material *mat=0)
 
G4double CrossSection (G4int Z, G4AtomicShellEnumerator shell, G4double incidentEnergy, G4double mass, const G4Material *mat)
 
std::vector< G4doubleProbabilities (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy=0, const G4Material *mat=0)
 
void SetTotalCS (G4double)
 
- Public Member Functions inherited from G4VhShellCrossSection
 G4VhShellCrossSection (const G4String &xname="")
 
virtual ~G4VhShellCrossSection ()
 
G4int SelectRandomShell (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, const G4Material *mat)
 
const G4StringGetName () const
 

Detailed Description

Definition at line 56 of file G4teoCrossSection.hh.

Constructor & Destructor Documentation

G4teoCrossSection::G4teoCrossSection ( const G4String name)

Definition at line 50 of file G4teoCrossSection.cc.

References G4cout, and G4endl.

51  :G4VhShellCrossSection(nam),totalCS(0.0),ecpssrShellK(0),ecpssrShellLi(0), ecpssrShellMi(0)
52 {
53 
54  if (nam == "Analytical")
55  {
56  ecpssrShellK = new G4ecpssrBaseKxsModel();
57  ecpssrShellLi = new G4ecpssrBaseLixsModel();
58  }
59  else if (nam == "ECPSSR_FormFactor")
60  {
61  ecpssrShellK = new G4ecpssrFormFactorKxsModel();
62  ecpssrShellLi = new G4ecpssrFormFactorLixsModel();
63  ecpssrShellMi = new G4ecpssrFormFactorMixsModel();
64  }
65  else { G4cout << "ERROR" << G4endl;}
66 
67 
68 }
G4VhShellCrossSection(const G4String &xname="")
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
G4teoCrossSection::~G4teoCrossSection ( )
virtual

Definition at line 70 of file G4teoCrossSection.cc.

71 {
72  delete ecpssrShellK;
73  delete ecpssrShellLi;
74  if (ecpssrShellMi) {delete ecpssrShellMi;}
75 }

Member Function Documentation

G4double G4teoCrossSection::CrossSection ( G4int  Z,
G4AtomicShellEnumerator  shell,
G4double  incidentEnergy,
G4double  mass,
const G4Material mat 
)
virtual

Implements G4VhShellCrossSection.

Definition at line 105 of file G4teoCrossSection.cc.

References G4VecpssrKModel::CalculateCrossSection(), G4VecpssrLiModel::CalculateL1CrossSection(), G4VecpssrLiModel::CalculateL2CrossSection(), G4VecpssrLiModel::CalculateL3CrossSection(), G4VecpssrMiModel::CalculateM1CrossSection(), G4VecpssrMiModel::CalculateM2CrossSection(), G4VecpssrMiModel::CalculateM3CrossSection(), G4VecpssrMiModel::CalculateM4CrossSection(), G4VecpssrMiModel::CalculateM5CrossSection(), fKShell, fL1Shell, fL2Shell, fL3Shell, fM1Shell, fM2Shell, fM3Shell, fM4Shell, and fM5Shell.

109 {
110  G4double res = 0.0;
111  if(shell > 3 && !ecpssrShellMi) {
112  return res;
113  }
114 
115  else if(shell > 8) {
116  return res;
117  }
118 
119  else if(fKShell == shell)
120  {
121  res = ecpssrShellK->CalculateCrossSection(Z, mass, incidentEnergy);
122  }
123 
124  else if(fL1Shell == shell)
125  {
126  res = ecpssrShellLi->CalculateL1CrossSection(Z, mass, incidentEnergy);
127  }
128 
129  else if(fL2Shell == shell)
130  {
131  res = ecpssrShellLi->CalculateL2CrossSection(Z, mass, incidentEnergy);
132  }
133 
134  else if(fL3Shell == shell)
135  {
136  res = ecpssrShellLi->CalculateL3CrossSection(Z, mass, incidentEnergy);
137  }
138 
139  else if(fM1Shell == shell)
140  {
141  res = ecpssrShellMi->CalculateM1CrossSection(Z, mass, incidentEnergy);
142  }
143 
144  else if(fM2Shell == shell)
145  {
146  res = ecpssrShellMi->CalculateM2CrossSection(Z, mass, incidentEnergy);
147  }
148 
149  else if(fM3Shell == shell)
150  {
151  res = ecpssrShellMi->CalculateM3CrossSection(Z, mass, incidentEnergy);
152  }
153 
154  else if(fM4Shell == shell)
155  {
156  res = ecpssrShellMi->CalculateM4CrossSection(Z, mass, incidentEnergy);
157  }
158 
159  else if(fM5Shell == shell)
160  {
161  res = ecpssrShellMi->CalculateM5CrossSection(Z, mass, incidentEnergy);
162  }
163  return res;
164 }
virtual G4double CalculateM1CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM3CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateCrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM2CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateL2CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM4CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM5CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateL1CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateL3CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
double G4double
Definition: G4Types.hh:76
std::vector< G4double > G4teoCrossSection::GetCrossSection ( G4int  Z,
G4double  incidentEnergy,
G4double  mass,
G4double  deltaEnergy = 0,
const G4Material mat = 0 
)
virtual

Implements G4VhShellCrossSection.

Definition at line 77 of file G4teoCrossSection.cc.

References G4VecpssrKModel::CalculateCrossSection(), G4VecpssrLiModel::CalculateL1CrossSection(), G4VecpssrLiModel::CalculateL2CrossSection(), G4VecpssrLiModel::CalculateL3CrossSection(), G4VecpssrMiModel::CalculateM1CrossSection(), G4VecpssrMiModel::CalculateM2CrossSection(), G4VecpssrMiModel::CalculateM3CrossSection(), G4VecpssrMiModel::CalculateM4CrossSection(), and G4VecpssrMiModel::CalculateM5CrossSection().

Referenced by Probabilities().

82 {
83  std::vector<G4double> crossSections;
84 
85  crossSections.push_back( ecpssrShellK->CalculateCrossSection(Z, mass, incidentEnergy) );
86 
87  crossSections.push_back( ecpssrShellLi->CalculateL1CrossSection(Z, mass, incidentEnergy) );
88  crossSections.push_back( ecpssrShellLi->CalculateL2CrossSection(Z, mass, incidentEnergy) );
89  crossSections.push_back( ecpssrShellLi->CalculateL3CrossSection(Z, mass, incidentEnergy) );
90 
91  if (ecpssrShellMi) {
92 
93  crossSections.push_back( ecpssrShellMi->CalculateM1CrossSection(Z, mass, incidentEnergy) );
94  crossSections.push_back( ecpssrShellMi->CalculateM2CrossSection(Z, mass, incidentEnergy) );
95  crossSections.push_back( ecpssrShellMi->CalculateM3CrossSection(Z, mass, incidentEnergy) );
96  crossSections.push_back( ecpssrShellMi->CalculateM4CrossSection(Z, mass, incidentEnergy) );
97  crossSections.push_back( ecpssrShellMi->CalculateM5CrossSection(Z, mass, incidentEnergy) );
98 
99  }
100 
101 
102  return crossSections;
103 }
virtual G4double CalculateM1CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM3CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateCrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM2CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateL2CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM4CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateM5CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateL1CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
virtual G4double CalculateL3CrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)=0
std::vector< G4double > G4teoCrossSection::Probabilities ( G4int  Z,
G4double  incidentEnergy,
G4double  mass,
G4double  deltaEnergy = 0,
const G4Material mat = 0 
)
virtual

Implements G4VhShellCrossSection.

Definition at line 166 of file G4teoCrossSection.cc.

References GetCrossSection().

171 {
172  std::vector<G4double> crossSections =
173  GetCrossSection(Z, incidentEnergy, mass, deltaEnergy);
174 
175  for (size_t i=0; i<crossSections.size(); i++ ) {
176 
177  if (totalCS) {
178  crossSections[i] = crossSections[i]/totalCS;
179  }
180 
181  }
182  return crossSections;
183 }
std::vector< G4double > GetCrossSection(G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy=0, const G4Material *mat=0)
void G4teoCrossSection::SetTotalCS ( G4double  val)
virtual

Reimplemented from G4VhShellCrossSection.

Definition at line 185 of file G4teoCrossSection.cc.

185  {
186 
187  totalCS = val;
188  // G4cout << "totalXS set to: " << val / barn << " barns" << G4endl;
189 }

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