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 // 00027 // 00028 // =========================================================================== 00029 // GEANT4 class header file 00030 // 00031 // Class: G4VIonDEDXScalingAlgorithm 00032 // 00033 // Author: Anton Lechner (Anton.Lechner@cern.ch) 00034 // 00035 // First implementation: 11. 03. 2009 00036 // 00037 // Modifications: 12. 11. 2009 - Added second argument (material) to energy 00038 // scaling function (AL) 00039 // 00040 // Class description: 00041 // Base class for dE/dx scaling algorithms, used by G4IonDEDXHandler 00042 // 00043 // Comments: 00044 // 00045 // =========================================================================== 00046 00047 00048 #ifndef G4VIONDEDXSCALINGALGORITHM_HH 00049 #define G4VIONDEDXSCALINGALGORITHM_HH 00050 00051 #include "globals.hh" 00052 #include "G4ParticleDefinition.hh" 00053 00054 class G4Material; 00055 00056 00057 class G4VIonDEDXScalingAlgorithm { 00058 00059 public: 00060 G4VIonDEDXScalingAlgorithm(); 00061 virtual ~G4VIonDEDXScalingAlgorithm(); 00062 00063 // Function for scaling the kinetic energy (no scaling by default). 00064 // Returns scaling factor for a given ion. 00065 virtual G4double ScalingFactorEnergy( 00066 const G4ParticleDefinition*, // Projectile (ion) 00067 const G4Material*) // Target material 00068 { return 1.0; } 00069 00070 // Function for scaling the dE/dx value (no scaling by default). 00071 // Returns scaling factor for a given ion-material couple and 00072 // a given kinetic energy. 00073 virtual G4double ScalingFactorDEDX( 00074 const G4ParticleDefinition*, // Projectile (ion) 00075 const G4Material*, // Target material 00076 G4double) // Kinetic energy of projectile 00077 { return 1.0; } 00078 00079 // Function for defining a base particle for dE/dx calculation. 00080 // (no base particle by default). Returns atomic number of base 00081 // particle. 00082 virtual G4int AtomicNumberBaseIon( 00083 G4int atomicNumberIon, // Atomic number of ion 00084 const G4Material*) // Target material 00085 { return atomicNumberIon; } 00086 00087 }; 00088 00089 #endif