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 #ifndef G4RadioactiveDecayRateVector_h 00027 #define G4RadioactiveDecayRateVector_h 1 00028 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00029 // 00030 // MODULE: RadioactiveDecayRateVector.hh 00031 // 00032 // Version: 0.b.4 00033 // Date: 14/04/00 00034 // Author: F Lei & P R Truscott 00035 // Organisation: DERA UK 00036 // Customer: ESA/ESTEC, NOORDWIJK 00037 // Contract: 12115/96/JG/NL Work Order No. 3 00038 // 00039 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00040 // 00041 // CHANGE HISTORY 00042 // -------------- 00043 // 00044 // 29 February 2000, P R Truscott, DERA UK 00045 // 0.b.3 release. 00046 // 00047 // 13 April 2000, F Lei, DERA UK 00048 // 0.b.4 release. No change to this file 00049 // 00050 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00052 // 00053 #include "G4ios.hh" 00054 #include "globals.hh" 00055 #include "G4RadioactiveDecayRate.hh" 00056 00057 #include <vector> 00059 // 00060 class G4RadioactiveDecayRateVector 00061 { 00062 // class description 00063 // This class contains the decay times and coefficients for calculating 00064 // all the descendants of the named isotope. These data can be used to 00065 // calculate their radioactivity at any given time 00066 // class description - end 00067 public: 00068 typedef std::vector<G4RadioactiveDecayRate> G4RadioactiveDecayRates; 00069 00070 public: 00071 //Constructors 00072 G4RadioactiveDecayRateVector(); 00073 00074 // Destructor 00075 virtual ~G4RadioactiveDecayRateVector(); 00076 00077 public: 00078 // copy constructor and assignment operatotr 00079 G4RadioactiveDecayRateVector(const G4RadioactiveDecayRateVector &); 00080 G4RadioactiveDecayRateVector 00081 & operator=(const G4RadioactiveDecayRateVector &); 00082 00083 public: 00084 // equality operators 00085 G4int operator==(const G4RadioactiveDecayRateVector &right) const 00086 {return (this == &right);} 00087 G4int operator!=(const G4RadioactiveDecayRateVector &right) const 00088 {return (this != &right);} 00089 00090 public: // with description 00091 00092 inline G4String GetIonName() const {return ionName;} 00093 // 00094 // To retrieve the name of the isotope. 00095 inline G4RadioactiveDecayRates GetItsRates() const {return itsRates; } 00096 // 00097 // To retrieve the coefficients and decays of all its descendants along the 00098 // decay chain. 00099 inline void SetIonName(G4String name) {ionName = name;} 00100 // 00101 // To set the name of the isotope. 00102 inline void SetItsRates(G4RadioactiveDecayRates arate) {itsRates = arate;} 00103 // 00104 // To fill the coefficient and decay time table 00105 00106 protected: 00107 00108 G4String ionName; 00109 G4RadioactiveDecayRates itsRates; 00110 00111 }; 00112 #endif 00113