#include <G4NucleusLimits.hh>
Public Member Functions | |
G4NucleusLimits () | |
G4NucleusLimits (G4int aMin1, G4int aMax1, G4int zMin1, G4int zMax1) | |
~G4NucleusLimits () | |
G4int | GetAMin () const |
G4int | GetAMax () const |
G4int | GetZMin () const |
G4int | GetZMax () const |
Friends | |
std::ostream & | operator<< (std::ostream &s, const G4NucleusLimits &q) |
Definition at line 58 of file G4NucleusLimits.hh.
G4NucleusLimits::G4NucleusLimits | ( | ) |
Definition at line 56 of file G4NucleusLimits.cc.
00057 : aMin(1), aMax(250), zMin(0), zMax(100) 00058 // 00059 // Default constructor sets the limits to cover all nuclei with Z<100. 00060 // 00061 {;}
Definition at line 65 of file G4NucleusLimits.cc.
00066 { 00067 // 00068 // check that aMin1 is within [1, 250]. 00069 // 00070 if (aMin1 < 1) {aMin = 1;} 00071 //else if (aMin1 > 250) {aMin = 240;} 00072 else {aMin = aMin1;} 00073 00074 // 00075 // check that aMax1 is within [1, 250]. 00076 // 00077 if (aMax1 < 1) {aMax = 1;} 00078 //else if (aMax1 > 250) {aMax = 250;} 00079 else {aMax = aMax1;} 00080 00081 // 00082 // If aMin > aMax then swap them. 00083 // 00084 if (aMin > aMax) { 00085 G4int t = aMin; 00086 aMin = aMax; 00087 aMax = t; 00088 } 00089 // 00090 // check that zMin1 is within [0, 100]. 00091 // 00092 if (zMin1 < 0) {zMin = 0;} 00093 //else if (zMin1 > 100) {zMin = 100;} 00094 else {zMin = zMin1;} 00095 00096 // 00097 // check that zMax1 is within [0, 100]. 00098 // 00099 if (zMax1 < 0) {zMax = 0;} 00100 //else if (zMax1 > 100) {zMax = 100;} 00101 else {zMax = zMax1;} 00102 00103 // 00104 // If zMin > zMax then swap them. 00105 // 00106 if (zMin > zMax) { 00107 G4int t = zMin; 00108 zMin = zMax; 00109 zMax = t; 00110 } 00111 }
G4NucleusLimits::~G4NucleusLimits | ( | ) |
G4int G4NucleusLimits::GetAMax | ( | ) | const [inline] |
Definition at line 94 of file G4NucleusLimits.hh.
Referenced by G4UIcmdWithNucleusLimits::ConvertToString(), G4RadioactiveDecay::IsApplicable(), operator<<(), and G4UIcmdWithNucleusLimits::SetDefaultValue().
G4int G4NucleusLimits::GetAMin | ( | ) | const [inline] |
Definition at line 91 of file G4NucleusLimits.hh.
Referenced by G4UIcmdWithNucleusLimits::ConvertToString(), G4RadioactiveDecay::IsApplicable(), operator<<(), and G4UIcmdWithNucleusLimits::SetDefaultValue().
G4int G4NucleusLimits::GetZMax | ( | ) | const [inline] |
Definition at line 100 of file G4NucleusLimits.hh.
Referenced by G4UIcmdWithNucleusLimits::ConvertToString(), G4RadioactiveDecay::IsApplicable(), operator<<(), and G4UIcmdWithNucleusLimits::SetDefaultValue().
G4int G4NucleusLimits::GetZMin | ( | ) | const [inline] |
Definition at line 97 of file G4NucleusLimits.hh.
Referenced by G4UIcmdWithNucleusLimits::ConvertToString(), G4RadioactiveDecay::IsApplicable(), operator<<(), and G4UIcmdWithNucleusLimits::SetDefaultValue().
std::ostream& operator<< | ( | std::ostream & | s, | |
const G4NucleusLimits & | q | |||
) | [friend] |
Definition at line 118 of file G4NucleusLimits.cc.
00119 { 00120 // Definition of the insertion operator << to provide the nucleus limits to 00121 // ostream 00122 strm << "Atomic weight: " << q.GetAMin() << "->" << q.GetAMax() 00123 << "Atomic number: " << q.GetZMin() << "->" << q.GetZMax(); 00124 return strm; 00125 }