// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // $Id: G4MaterialStoppingICRU73.hh,v 1.5 2009/03/18 10:14:49 alechner Exp $ // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ #ifndef G4MaterialStoppingICRU73_h #define G4MaterialStoppingICRU73_h 1 //--------------------------------------------------------------------------- // // ClassName: G4MaterialStoppingICRU73 // // Description: Data on stopping powers for light ions in compounds // // Author: Ivantchenko 10.07.2008 // // Modifications: // //---------------------------------------------------------------------------- // // Class Description: // // Data on Stopping Powers from the ICRU73 report // //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #include "globals.hh" #include "G4VIonDEDXTable.hh" #include "G4LPhysicsFreeVector.hh" #include class G4MaterialStoppingICRU73 : public G4VIonDEDXTable { public: G4MaterialStoppingICRU73(G4bool splineFlag = true); ~G4MaterialStoppingICRU73(); G4bool IsApplicable(G4int ionZ, const G4String& matName); G4bool IsApplicable(G4int ionZ, G4int matZ); G4PhysicsVector* GetPhysicsVector(G4int ionZ, const G4String& matName); G4PhysicsVector* GetPhysicsVector(G4int ionZ, G4int matZ); G4double GetDEDX(G4double kinEnergyPerNucleon, G4int ionZ, const G4String& matName); G4double GetDEDX(G4double kinEnergyPerNucleon, G4int ionZ, G4int matZ); private: // Function for creating a physics vector G4PhysicsVector* CreatePhysicsVector(G4double* energy, G4double* stoppower, G4double factor); // Assignment operator and copy constructor G4MaterialStoppingICRU73 & operator=(const G4MaterialStoppingICRU73 &right); G4MaterialStoppingICRU73(const G4MaterialStoppingICRU73&); // Flag indicating the use of spline interpolation for dE/dx vectors G4bool spline; // Minimum and maximum atomic number G4int minIonAtomicNmb; G4int maxIonAtomicNmb; // Vector containing the names of the materials std::vector namesMat; // Keys (ion atomic number and material names) corresponding to created // dE/dx vectors typedef std::pair DEDXKey; std::vector dedxKeys; // Vector of dE/dx vectors std::vector dedx; }; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #endif