G4PenelopeOscillator.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // Author: Luciano Pandola
00028 //
00029 // History:
00030 // --------
00031 // 18 Dec 2008   L Pandola    First implementation 
00032 
00033 #include "G4PenelopeOscillator.hh"
00034 #include "G4SystemOfUnits.hh"
00035 
00036 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00037 
00038 G4PenelopeOscillator::G4PenelopeOscillator() :
00039  hartreeFactor(0), ionisationEnergy(0*eV), resonanceEnergy(0*eV),
00040  oscillatorStrength(0), shellFlag(-1), parentZ(0),
00041  parentShellID(-1),cutoffRecoilResonantEnergy(0*eV)
00042 {;}
00043 
00044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00045 
00046 G4PenelopeOscillator::G4PenelopeOscillator(const G4PenelopeOscillator& right)
00047 {
00048   hartreeFactor = right.hartreeFactor;
00049   ionisationEnergy = right.ionisationEnergy;
00050   resonanceEnergy = right.resonanceEnergy;
00051   oscillatorStrength = right.oscillatorStrength;
00052   shellFlag = right.shellFlag;
00053   parentZ = right.parentZ;
00054   parentShellID = right.parentShellID;
00055   cutoffRecoilResonantEnergy = right.cutoffRecoilResonantEnergy;
00056 }
00057 
00058 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00059 
00060 G4PenelopeOscillator& G4PenelopeOscillator::operator=(const G4PenelopeOscillator& right)
00061 {
00062   if (this == &right)  
00063     return *this; 
00064 
00065   hartreeFactor = right.hartreeFactor;
00066   ionisationEnergy = right.ionisationEnergy;
00067   resonanceEnergy = right.resonanceEnergy;
00068   oscillatorStrength = right.oscillatorStrength;
00069   shellFlag = right.shellFlag;
00070   parentZ = right.parentZ;
00071   parentShellID = right.parentShellID; 
00072   cutoffRecoilResonantEnergy = right.cutoffRecoilResonantEnergy;
00073   return *this;
00074 }
00075 
00076 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00077 
00078 int G4PenelopeOscillator::operator==(const G4PenelopeOscillator& right) const
00079 {
00080   //Oscillator are ordered according to the ionisation energy. They are considered to be
00081   //equal if the ionisation energy is the same
00082   return (ionisationEnergy == right.ionisationEnergy) ? 1 : 0;
00083 }
00084 
00085 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00086 
00087 int G4PenelopeOscillator::operator>(const G4PenelopeOscillator& right) const
00088 {
00089   //Oscillator are ordered according to the ionisation energy. 
00090   return (ionisationEnergy > right.ionisationEnergy) ? 1 : 0;
00091 }
00092 
00093 
00094 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00095 
00096 int G4PenelopeOscillator::operator<(const G4PenelopeOscillator& right) const
00097 {
00098   //Oscillator are ordered according to the ionisation energy. 
00099   return (ionisationEnergy < right.ionisationEnergy) ? 1 : 0;
00100 }
00101 
00102 

Generated on Mon May 27 17:49:18 2013 for Geant4 by  doxygen 1.4.7