1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // Author: Luciano Pandola |
---|
28 | // |
---|
29 | // History: |
---|
30 | // -------- |
---|
31 | // 18 Dec 2008 L Pandola First implementation |
---|
32 | |
---|
33 | #include "G4PenelopeOscillator.hh" |
---|
34 | |
---|
35 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
36 | |
---|
37 | G4PenelopeOscillator::G4PenelopeOscillator() : |
---|
38 | hartreeFactor(0), ionisationEnergy(0*eV), resonanceEnergy(0*eV), |
---|
39 | oscillatorStrength(0), shellFlag(-1), parentZ(0), |
---|
40 | parentShellID(-1),cutoffRecoilResonantEnergy(0*eV) |
---|
41 | {;} |
---|
42 | |
---|
43 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
44 | |
---|
45 | G4PenelopeOscillator::G4PenelopeOscillator(const G4PenelopeOscillator& right) |
---|
46 | { |
---|
47 | hartreeFactor = right.hartreeFactor; |
---|
48 | ionisationEnergy = right.ionisationEnergy; |
---|
49 | resonanceEnergy = right.resonanceEnergy; |
---|
50 | oscillatorStrength = right.oscillatorStrength; |
---|
51 | shellFlag = right.shellFlag; |
---|
52 | parentZ = right.parentZ; |
---|
53 | parentShellID = right.parentShellID; |
---|
54 | cutoffRecoilResonantEnergy = right.cutoffRecoilResonantEnergy; |
---|
55 | } |
---|
56 | |
---|
57 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
58 | |
---|
59 | const G4PenelopeOscillator& G4PenelopeOscillator::operator=(const G4PenelopeOscillator& right) |
---|
60 | { |
---|
61 | hartreeFactor = right.hartreeFactor; |
---|
62 | ionisationEnergy = right.ionisationEnergy; |
---|
63 | resonanceEnergy = right.resonanceEnergy; |
---|
64 | oscillatorStrength = right.oscillatorStrength; |
---|
65 | shellFlag = right.shellFlag; |
---|
66 | parentZ = right.parentZ; |
---|
67 | parentShellID = right.parentShellID; |
---|
68 | cutoffRecoilResonantEnergy = right.cutoffRecoilResonantEnergy; |
---|
69 | return *this; |
---|
70 | } |
---|
71 | |
---|
72 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
73 | |
---|
74 | int G4PenelopeOscillator::operator==(const G4PenelopeOscillator& right) const |
---|
75 | { |
---|
76 | //Oscillator are ordered according to the ionisation energy. They are considered to be |
---|
77 | //equal if the ionisation energy is the same |
---|
78 | return (ionisationEnergy == right.ionisationEnergy) ? 1 : 0; |
---|
79 | } |
---|
80 | |
---|
81 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
82 | |
---|
83 | int G4PenelopeOscillator::operator>(const G4PenelopeOscillator& right) const |
---|
84 | { |
---|
85 | //Oscillator are ordered according to the ionisation energy. |
---|
86 | return (ionisationEnergy > right.ionisationEnergy) ? 1 : 0; |
---|
87 | } |
---|
88 | |
---|
89 | |
---|
90 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
91 | |
---|
92 | int G4PenelopeOscillator::operator<(const G4PenelopeOscillator& right) const |
---|
93 | { |
---|
94 | //Oscillator are ordered according to the ionisation energy. |
---|
95 | return (ionisationEnergy < right.ionisationEnergy) ? 1 : 0; |
---|
96 | } |
---|
97 | |
---|
98 | |
---|