G4LevelReader.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 // $Id$
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 //      GEANT4 header file 
00031 //
00032 //      File name:     G4NucLevel
00033 //
00034 //      Author:        V.Ivanchenko
00035 // 
00036 //      Creation date: 4 January 2012
00037 //
00038 //      Modifications:
00039 //      
00040 // -------------------------------------------------------------------
00041 //
00042 // Helper class to read Geant4 nuclear level database ignoring 
00043 // information on electron internal conversion probabilities
00044 // 
00045 
00046 #ifndef G4LEVELREADER_HH
00047 #define G4LEVELREADER_HH 1
00048 
00049 #include "globals.hh"
00050 #include "G4NucLevel.hh"
00051 #include <vector>
00052 #include <fstream>
00053 
00054 class G4LevelReader 
00055 {
00056 
00057 public:
00058 
00059   G4LevelReader();
00060 
00061   ~G4LevelReader();
00062   
00063   void FillLevels(G4int Z, G4int A,
00064                   std::vector<G4NucLevel*>* levels,
00065                   const G4String& filename); 
00066 
00067   inline void SetVerbose(G4int val);
00068   
00069 private:
00070 
00071   G4bool Read(std::ifstream& aDataFile);
00072 
00073   G4bool ReadDataItem(std::istream& dataFile, G4double& x);
00074 
00075   void MakeNewLevel(std::vector<G4NucLevel*>* levels);
00076   
00077   G4LevelReader(const G4LevelReader & right);  
00078   const G4LevelReader& operator=(const G4LevelReader &right);
00079   G4bool operator==(const G4LevelReader &right) const;
00080   G4bool operator!=(const G4LevelReader &right) const;
00081 
00082   size_t   nLevels;
00083   size_t   nLevelMax;
00084   G4int    fVerbose;
00085   G4double fMinProbability;
00086   G4double fLevelEnergy;
00087   G4double fNewEnergy;
00088   G4double fDeltaEnergy;
00089   G4double fNewTime;
00090   G4double fHalfLifeTime;
00091   G4double fProbability;
00092   G4double fICC;
00093   G4double fx;
00094 
00095   std::vector<G4double> eGamma;
00096   std::vector<G4double> wGamma;
00097   std::vector<G4double> kICC;
00098 
00099   // Buffers for reading data file
00100   char buffer[30];      
00101 
00102 };
00103 
00104 inline void G4LevelReader::SetVerbose(G4int val)
00105 {
00106   fVerbose = val;
00107 }
00108 
00109 
00110 #endif

Generated on Mon May 27 17:48:46 2013 for Geant4 by  doxygen 1.4.7