#include <G4ASTARStopping.hh>
Definition at line 61 of file G4ASTARStopping.hh.
◆ G4ASTARStopping()
| G4ASTARStopping::G4ASTARStopping |
( |
| ) |
|
|
explicit |
◆ ~G4ASTARStopping()
| G4ASTARStopping::~G4ASTARStopping |
( |
| ) |
|
Definition at line 62 of file G4ASTARStopping.cc.
63{
64 if(0 < nvectors) {
65 for(size_t i=0; i<nvectors; ++i) { delete sdata[i]; }
66 }
67}
◆ GetElectronicDEDX() [1/2]
Definition at line 140 of file G4ASTARStopping.hh.
141{
143}
G4int GetIndex(const G4Material *) const
G4double GetElectronicDEDX(G4int idx, G4double energy) const
◆ GetElectronicDEDX() [2/2]
Definition at line 128 of file G4ASTARStopping.hh.
129{
131 if (idx<0 || idx>=
G4int(nvectors)) { PrintWarning(idx); }
132 if(energy < emin) { res = (*(sdata[idx]))[0]*std::sqrt(energy/emin); }
133 else { res = sdata[idx]->Value(energy); }
134 return res;
135}
Referenced by GetElectronicDEDX().
◆ GetIndex() [1/2]
Definition at line 99 of file G4ASTARStopping.hh.
100{
102 for (size_t i=0; i<nvectors; ++i){
103 if (mat == materials[i]){
104 idx = i;
105 break;
106 }
107 }
108 return idx;
109}
Referenced by GetElectronicDEDX().
◆ GetIndex() [2/2]
Definition at line 113 of file G4ASTARStopping.hh.
114{
116 for (size_t i=0; i<nvectors; ++i){
117 if (nam == materials[i]->GetName()){
118 idx = i;
119 break;
120 }
121 }
122 return idx;
123}
◆ Initialise()
| void G4ASTARStopping::Initialise |
( |
| ) |
|
Definition at line 81 of file G4ASTARStopping.cc.
82{
83
85 if(nmat == (
G4int)nvectors) {
return; }
86
87
89 for(
G4int i=0; i<nmat; ++i) {
91
93 for(j=0; j<(
G4int)nvectors; ++j) {
94 if(mat == materials[j]) {
95 isThere = true;
96 break;
97 }
98 }
99 if(!isThere) {
100
102 for(j=0; j<74; ++j) {
103 if(mname == nameNIST[j]) {
104 FindData(j, mat);
105 isThere = true;
106 break;
107 }
108 }
109 if(!isThere) {
111 for(j=0; j<numberOfMolecula; ++j) {
112 if(form == molecularName[j]) {
113 FindData(molecularIndex[j], mat);
114 break;
115 }
116 }
117 }
118 }
119 }
120}
const G4String & GetChemicalFormula() const
static size_t GetNumberOfMaterials()
static G4MaterialTable * GetMaterialTable()
const G4String & GetName() const
Referenced by G4ASTARStopping(), and G4BraggIonModel::Initialise().
The documentation for this class was generated from the following files: