G4PSTARStopping.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 G4PSTARStopping_h
00029 #define G4PSTARStopping_h 1
00030 
00031 //---------------------------------------------------------------------------
00032 //
00033 // ClassName:   G4PSTARStopping
00034 //
00035 // Description: Data on stopping power
00036 //
00037 // Author:      Anton Ivantchenko 18.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 from the NIST Data Base  
00050 // http://physics.nist.gov/PhysRefData/STAR/Text/PSTAR.html
00051 //
00052 
00053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00054 
00055 
00056 #include "globals.hh"
00057 #include "G4LPhysicsFreeVector.hh"
00058 #include <vector>
00059 
00060 class G4Material;
00061 
00062 class G4PSTARStopping 
00063 { 
00064 public: 
00065 
00066   G4PSTARStopping();
00067 
00068   ~G4PSTARStopping();
00069 
00070   G4int GetIndex(const G4Material*);
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   G4PSTARStopping & operator=(const  G4PSTARStopping &right);
00083   G4PSTARStopping(const  G4PSTARStopping&);
00084 
00085   G4int matIndex;
00086   const G4Material* currentMaterial;
00087   G4double emin;
00088   std::vector<G4String> name;
00089   std::vector<G4LPhysicsFreeVector*> sdata;
00090 };
00091 
00092 inline G4double G4PSTARStopping::GetElectronicDEDX(const G4Material* mat, 
00093                                                    G4double energy)
00094 {
00095   return GetElectronicDEDX(GetIndex(mat), energy);
00096 }
00097 
00098 #endif

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