Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // 27 // Author: Luciano Pandola 28 // 29 // History: 30 // -------- 31 // 18 Dec 2008 L Pandola First implementa 32 33 #include "G4PenelopeOscillator.hh" 34 #include "G4SystemOfUnits.hh" 35 36 //....oooOO0OOooo........oooOO0OOooo........oo 37 38 G4PenelopeOscillator::G4PenelopeOscillator() : 39 fHartreeFactor(0.), fIonisationEnergy(0.*eV), 40 fOscillatorStrength(0.), fParentZ(0.), fCutof 41 fParentShellID(-1), fShellFlag(-1) 42 {;} 43 44 //....oooOO0OOooo........oooOO0OOooo........oo 45 46 G4PenelopeOscillator::G4PenelopeOscillator(con 47 { 48 fHartreeFactor = right.fHartreeFactor; 49 fIonisationEnergy = right.fIonisationEnergy; 50 fResonanceEnergy = right.fResonanceEnergy; 51 fOscillatorStrength = right.fOscillatorStren 52 fShellFlag = right.fShellFlag; 53 fParentZ = right.fParentZ; 54 fParentShellID = right.fParentShellID; 55 fCutoffRecoilResonantEnergy = right.fCutoffR 56 } 57 58 //....oooOO0OOooo........oooOO0OOooo........oo 59 60 G4PenelopeOscillator& G4PenelopeOscillator::op 61 { 62 if (this == &right) 63 return *this; 64 65 fHartreeFactor = right.fHartreeFactor; 66 fIonisationEnergy = right.fIonisationEnergy; 67 fResonanceEnergy = right.fResonanceEnergy; 68 fOscillatorStrength = right.fOscillatorStren 69 fShellFlag = right.fShellFlag; 70 fParentZ = right.fParentZ; 71 fParentShellID = right.fParentShellID; 72 fCutoffRecoilResonantEnergy = right.fCutoffR 73 return *this; 74 } 75 76 //....oooOO0OOooo........oooOO0OOooo........oo 77 78 G4bool G4PenelopeOscillator::operator==(const 79 { 80 //Oscillator are ordered according to the io 81 //equal if the ionisation energy is the same 82 return (fIonisationEnergy == right.fIonisati 83 } 84 85 //....oooOO0OOooo........oooOO0OOooo........oo 86 87 G4bool G4PenelopeOscillator::operator>(const G 88 { 89 //Oscillator are ordered according to the io 90 return (fIonisationEnergy > right.fIonisatio 91 } 92 93 94 //....oooOO0OOooo........oooOO0OOooo........oo 95 96 G4bool G4PenelopeOscillator::operator<(const G 97 { 98 //Oscillator are ordered according to the io 99 return (fIonisationEnergy < right.fIonisatio 100 } 101 102 103