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 G4NucleusLimits_h 00027 #define G4NucleusLimits_h 1 00028 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00029 // 00030 // MODULE: G4NucleusLimits.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 "globals.hh" 00054 #include <iostream> 00055 00057 // 00058 class G4NucleusLimits 00059 { 00060 // class description 00061 // The G4NucleusLimits class is used to contain information identifying a 00062 // range bounded by A [aMin, aMax], and Z on [zMin, zMax]. 00063 // 00064 // class description - end 00065 00066 public: // with description 00067 G4NucleusLimits (); 00068 // Default constructor where: aMin=1, aMax=240, aMin=1, and 00069 // zMax=100. 00070 // 00071 G4NucleusLimits 00072 (G4int aMin1, G4int aMax1, G4int zMin1, G4int zMax1); 00073 // Constructor defining new values for aMin, aMax, zMin, and zMax 00074 // respectively. 00075 // 00076 ~G4NucleusLimits(); 00077 // Destructor 00078 00079 private: 00080 G4int aMin; 00081 G4int aMax; 00082 G4int zMin; 00083 G4int zMax; 00084 00085 // 00086 // 00087 // INLINE DECLARATIONS/DEFINTIONS: 00088 // 00089 public: // with description 00090 00091 inline G4int GetAMin () const {return aMin;} 00092 // Returns the value of aMin. 00093 // 00094 inline G4int GetAMax () const {return aMax;} 00095 // Returns the value of aMax. 00096 // 00097 inline G4int GetZMin () const {return zMin;} 00098 // Returns the value of zMin. 00099 // 00100 inline G4int GetZMax () const {return zMax;} 00101 // Return the value of zmax. 00102 // 00103 00104 00105 friend std::ostream &operator << (std::ostream &s, const G4NucleusLimits &q); 00106 00107 }; 00109 #endif 00110