#include <G4ElectronOccupancy.hh>
Definition at line 62 of file G4ElectronOccupancy.hh.
Definition at line 45 of file G4ElectronOccupancy.cc.
46 : theSizeOfOrbit(sizeOrbit)
54 theOccupancies =
new G4int[theSizeOfOrbit];
56 for (index = 0; index < theSizeOfOrbit; index++) {
57 theOccupancies[index] =0;
Definition at line 72 of file G4ElectronOccupancy.cc.
74 theSizeOfOrbit = right.theSizeOfOrbit;
77 theOccupancies =
new G4int[theSizeOfOrbit];
79 for (index = 0; index < theSizeOfOrbit; index++) {
80 theOccupancies[index] = right.theOccupancies[index];
83 theTotalOccupancy = right.theTotalOccupancy;
G4ElectronOccupancy::~G4ElectronOccupancy |
( |
| ) |
|
|
virtual |
Definition at line 136 of file G4ElectronOccupancy.cc.
139 if (orbit>=theSizeOfOrbit){
140 std::ostringstream smsg;
141 smsg<<
"Orbit (" << orbit
142 <<
") exceeds the maximum("
143 <<theSizeOfOrbit-1<<
") ";
145 G4Exception(
"G4ElectronOccupancy::AddElectron()",
"PART131",
147 }
else if (orbit >=0) {
148 theOccupancies[orbit] += number;
149 theTotalOccupancy += number;
const XML_Char int const XML_Char * value
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void G4ElectronOccupancy::DumpInfo |
( |
| ) |
const |
Definition at line 126 of file G4ElectronOccupancy.cc.
130 for (index = 0; index < theSizeOfOrbit; index++) {
131 G4cout <<
" " << index <<
"-th orbit "
132 << theOccupancies[index] <<
G4endl;
G4GLOB_DLL std::ostream G4cout
G4int G4ElectronOccupancy::GetOccupancy |
( |
G4int |
orbit | ) |
const |
|
inline |
Definition at line 138 of file G4ElectronOccupancy.hh.
141 if ((orbit >=0)&&(orbit<theSizeOfOrbit)){
142 value = theOccupancies[orbit];
const XML_Char int const XML_Char * value
G4int G4ElectronOccupancy::GetSizeOfOrbit |
( |
| ) |
const |
|
inline |
G4int G4ElectronOccupancy::GetTotalOccupancy |
( |
| ) |
const |
|
inline |
void G4ElectronOccupancy::operator delete |
( |
void * |
aElectronOccupancy | ) |
|
|
inline |
Definition at line 120 of file G4ElectronOccupancy.hh.
G4PART_DLL G4ThreadLocal G4Allocator< G4ElectronOccupancy > * aElectronOccupancyAllocator
void * G4ElectronOccupancy::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 111 of file G4ElectronOccupancy.hh.
G4PART_DLL G4ThreadLocal G4Allocator< G4ElectronOccupancy > * aElectronOccupancyAllocator
Definition at line 86 of file G4ElectronOccupancy.cc.
88 if (
this != &right) {
89 theSizeOfOrbit = right.theSizeOfOrbit;
92 if ( theOccupancies != 0 )
delete [] theOccupancies;
93 theOccupancies =
new G4int[theSizeOfOrbit];
95 for (index = 0; index < theSizeOfOrbit; index++) {
96 theOccupancies[index] = right.theOccupancies[index];
99 theTotalOccupancy = right.theTotalOccupancy;
Definition at line 104 of file G4ElectronOccupancy.cc.
109 if ( (index < theSizeOfOrbit ) && ( index < right.theSizeOfOrbit) ) {
111 (theOccupancies[index] == right.theOccupancies[index]) ;
112 }
else if ((index < theSizeOfOrbit ) && ( index >= right.theSizeOfOrbit)) {
113 value = value && (theOccupancies[index] == 0);
114 }
else if ((index >= theSizeOfOrbit ) && ( index <right.theSizeOfOrbit)) {
115 value = value && (right.theOccupancies[index] == 0);
const XML_Char int const XML_Char * value
G4int G4ElectronOccupancy::RemoveElectron |
( |
G4int |
orbit, |
|
|
G4int |
number = 1 |
|
) |
| |
Definition at line 155 of file G4ElectronOccupancy.cc.
158 if (orbit>=theSizeOfOrbit){
159 std::ostringstream smsg;
160 smsg<<
"Orbit (" << orbit
161 <<
") exceeds the maximum("
162 <<theSizeOfOrbit-1 <<
") ";
164 G4Exception(
"G4ElectronOccupancy::RemoveElectron()",
"PART131",
166 }
else if (orbit >=0) {
167 if ( theOccupancies[orbit] < number ) number = theOccupancies[orbit];
168 theOccupancies[orbit] -= number;
169 theTotalOccupancy -= number;
const XML_Char int const XML_Char * value
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
The documentation for this class was generated from the following files: