G4ASTARStopping.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 #ifndef G4ASTARStopping_h
00029 #define G4ASTARStopping_h 1
00030 
00031 //---------------------------------------------------------------------------
00032 //
00033 // ClassName:   G4ASTARStopping
00034 //
00035 // Description: Data on stopping power
00036 //
00037 // Author:      Anton Ivantchenko 21.04.2006
00038 //
00039 // Organisation:        QinetiQ Ltd, UK
00040 // Customer:            ESA/ESTEC, NOORDWIJK
00041 // Contract:            CSMAN-5288
00042 //
00043 // Modifications:
00044 // 
00045 //----------------------------------------------------------------------------
00046 //
00047 // Class Description:
00048 //
00049 // Data on Stopping Powers of the He atoms from the NIST Data Base  
00050 // http://physics.nist.gov/PhysRefData/STAR/Text/ASTAR.html
00051 //
00052 
00053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00054 
00055 #include "globals.hh"
00056 #include "G4LPhysicsFreeVector.hh"
00057 #include <vector>
00058 
00059 class G4Material;
00060 
00061 class G4ASTARStopping 
00062 { 
00063 public: 
00064 
00065   G4ASTARStopping();
00066 
00067   ~G4ASTARStopping();
00068 
00069   G4int GetIndex(const G4Material*);
00070   G4double GetEffectiveZ(G4int idx);
00071 
00072   G4double GetElectronicDEDX(G4int idx, G4double energy);
00073   G4double GetElectronicDEDX(const G4Material*, G4double energy);
00074 
00075 private:
00076 
00077   void Initialise();
00078 
00079   void AddData(G4double* e, G4double* s, G4int idx);
00080 
00081   // hide assignment operator
00082   G4ASTARStopping & operator=(const  G4ASTARStopping &right);
00083   G4ASTARStopping(const  G4ASTARStopping&);
00084 
00085   G4int matIndex;
00086   const G4Material* currentMaterial;
00087   G4double emin;
00088   std::vector<G4String> name;
00089   std::vector<G4double> effZ; 
00090   std::vector<G4LPhysicsFreeVector*> sdata;
00091 };
00092 
00093 inline G4double G4ASTARStopping::GetElectronicDEDX(const G4Material* mat, 
00094                                                    G4double energy)
00095 {
00096   return GetElectronicDEDX(GetIndex(mat), energy);
00097 }
00098 
00099 inline G4double G4ASTARStopping::GetEffectiveZ(G4int idx)
00100 {
00101   return effZ[idx];
00102 } 
00103 
00104 #endif

Generated on Mon May 27 17:47:41 2013 for Geant4 by  doxygen 1.4.7