53 #ifndef G4ElectronOccupancy_h
54 #define G4ElectronOccupancy_h 1
73 inline void *
operator new(size_t);
74 inline void operator delete(
void *aElectronOccupancy);
98 G4int theTotalOccupancy;
99 G4int* theOccupancies;
103 #if defined G4PARTICLES_ALLOC_EXPORT
113 inline void * G4ElectronOccupancy::operator
new(size_t)
115 void * aElectronOccupancy;
117 return aElectronOccupancy;
120 inline void G4ElectronOccupancy::operator
delete(
void * aElectronOccupancy)
128 return theSizeOfOrbit;
134 return theTotalOccupancy;
141 if ((orbit >=0)&&(orbit<theSizeOfOrbit)){
142 value = theOccupancies[orbit];
151 if ((orbit >=0)&&(orbit<theSizeOfOrbit)){
152 theOccupancies[orbit] += number;
153 theTotalOccupancy += number;
163 if ((orbit >=0)&&(orbit<theSizeOfOrbit) ){
164 if ( theOccupancies[orbit] < number ) number = theOccupancies[orbit];
165 theOccupancies[orbit] -= number;
166 theTotalOccupancy -= number;