G4PenelopeOscillator.hh

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 //
00034 // -------------------------------------------------------------------
00035 //
00036 // Class description:
00037 // Class designed to contain data of atomic oscillators that are used by 
00038 // several Penelope models. Objects of G4PenelopeOscillators are managed 
00039 // by a dedicated G4PenelopeOscillatorManager.
00040 // -------------------------------------------------------------------
00041 
00042 #ifndef G4PENELOPEOSCILLATOR_HH
00043 #define G4PENELOPEOSCILLATOR_HH 1
00044 
00045 #include "globals.hh"
00046 
00047 class G4PenelopeOscillator 
00048 {
00049 
00050  public:
00051   G4PenelopeOscillator();
00052   G4PenelopeOscillator(const G4PenelopeOscillator&);
00053   
00054   ~G4PenelopeOscillator(){;};
00055 
00056   //I need to overload the following operators: > < == =
00057   G4PenelopeOscillator& operator=(const G4PenelopeOscillator&);
00058   int operator==(const G4PenelopeOscillator&) const;
00059   int operator>(const G4PenelopeOscillator&) const;
00060   int operator<(const G4PenelopeOscillator&) const;
00061   
00062   //Setters and getters
00063   G4double GetHartreeFactor() {return hartreeFactor;};
00064   void SetHartreeFactor(G4double hf) {hartreeFactor = hf;};
00065   //
00066   G4double GetIonisationEnergy() {return ionisationEnergy;};
00067   void SetIonisationEnergy(G4double ie) {ionisationEnergy = ie;};
00068   //
00069   G4double GetResonanceEnergy() const {return resonanceEnergy;};
00070   void SetResonanceEnergy(G4double re) {resonanceEnergy = re;};
00071   //
00072   G4double GetOscillatorStrength() {return oscillatorStrength;};
00073   void SetOscillatorStrength(G4double ostr) {oscillatorStrength=ostr;};
00074   //
00075   G4int GetShellFlag() {return shellFlag;};
00076   void SetShellFlag(G4int theflag) {shellFlag=theflag;};
00077   //
00078   G4double GetParentZ() {return parentZ;};
00079   void SetParentZ(G4double parZ) {parentZ = parZ;};
00080   //
00081   G4int GetParentShellID() {return parentShellID;};
00082   void SetParentShellID(G4int psID) {parentShellID = psID;};
00083   //
00084   G4double GetCutoffRecoilResonantEnergy(){return cutoffRecoilResonantEnergy;};
00085   void SetCutoffRecoilResonantEnergy(G4double ene){cutoffRecoilResonantEnergy = ene;};
00086 
00087 private:
00088   G4double hartreeFactor;
00089   G4double ionisationEnergy;
00090   G4double resonanceEnergy;
00091   G4double oscillatorStrength;
00092   G4int shellFlag;
00093   G4double parentZ;
00094   G4int parentShellID; //necessary for interface to AtomicDeexcitationManager
00095   G4double cutoffRecoilResonantEnergy;
00096 };
00097 
00098 struct G4PenelopeOscillatorResEnergyComparator
00099 {
00100 public:
00101   int operator()(const G4PenelopeOscillator& left,
00102                  const G4PenelopeOscillator& right) 
00103   {return ((left.GetResonanceEnergy() < right.GetResonanceEnergy()) ? 1 : 0);};
00104 };
00105 
00106 #endif
00107 

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