G4IonStoppingData.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: G4IonStoppingData.hh 67044 2013-01-30 08:50:06Z gcosmo $
00027 //
00028 // ===========================================================================
00029 // GEANT4 class header file
00030 //
00031 // Class:                G4IonStoppingData
00032 //
00033 // Base class:           G4VIonDEDXTable 
00034 // 
00035 // Author:               Anton Lechner (Anton.Lechner@cern.ch)
00036 //
00037 // First implementation: 03. 11. 2009
00038 //
00039 // Modifications:
00040 //
00041 //
00042 // Class description: Class which can read ion stopping power data from
00043 //                    $G4LEDATA/ion_stopping_data
00044 //
00045 // Comments:
00046 //
00047 // =========================================================================== 
00048 //
00049 
00050 #ifndef G4IONSTOPPINGDATA_HH
00051 #define G4IONSTOPPINGDATA_HH
00052 
00053 #include "globals.hh"
00054 #include "G4VIonDEDXTable.hh"
00055 #include <utility>
00056 #include <vector>
00057 #include <map>
00058 
00059 
00060 class G4IonStoppingData : public G4VIonDEDXTable {
00061 
00062  public:
00063    G4IonStoppingData(const G4String& leDirectory);
00064    virtual ~G4IonStoppingData();
00065 
00066    // Function for checking the availability of stopping power tables
00067    // for a given ion-material couple, where the material consists of
00068    // a single element only.
00069    G4bool IsApplicable(
00070         G4int atomicNumberIon,          // Atomic number of ion
00071         G4int atomicNumberElem          // Atomic number of elemental material
00072                        );
00073 
00074    // Function for checking the availability of stopping power tables
00075    // for given ion-material couples.
00076    G4bool IsApplicable(
00077         G4int atomicNumberIon,          // Atomic number of ion
00078         const G4String& matIdentifier   // Name or chemical formula of material
00079                        );
00080 
00081    // Function which invokes the read/build process of physics vectors from
00082    // files in G4LEDATA
00083    G4bool BuildPhysicsVector(G4int ionZ, 
00084                              const G4String& matName);
00085 
00086    // Function which invokes the read/build process of physics vectors from
00087    // files in G4LEDATA
00088    G4bool BuildPhysicsVector(G4int ionZ, 
00089                              G4int matZ);
00090 
00091    // Function returning the stopping power vector for given ion-material
00092    // couples, where the material consists of a single element only.
00093    G4PhysicsVector* GetPhysicsVector(
00094         G4int atomicNumberIon,          // Atomic number of ion
00095         G4int atomicNumberElem          // Atomic number of elemental material
00096                                      );
00097 
00098    // Function returning the stopping power vector for given ion-material
00099    // couples.
00100    G4PhysicsVector* GetPhysicsVector(
00101         G4int atomicNumberIon,          // Atomic number of ion
00102         const G4String& matIdenfier     // Name or chemical formula of material
00103                                      );
00104 
00105    // Function returning the stopping power value for given ion-material
00106    // couples, where the material consists of a single element only, and
00107    // given energy.
00108    G4double GetDEDX(
00109         G4double kinEnergyPerNucleon,   // Kinetic energy per nucleon
00110         G4int atomicNumberIon,          // Atomic number of ion
00111         G4int atomicNumberElem          // Atomic number of elemental material
00112                                      );
00113 
00114    // Function returning the stopping power value for given ion-material
00115    // couples and given energy.
00116    G4double GetDEDX(
00117         G4double kinEnergyPerNucleon,   // Kinetic energy per nucleon
00118         G4int atomicNumberIon,          // Atomic number of ion
00119         const G4String& matIdentifier   // Name or chemical formula of material
00120                                      );
00121 
00122    // Function for adding dE/dx vector for an elemental materials. The last
00123    // argument only applies to elemental materials.
00124    G4bool AddPhysicsVector(
00125         G4PhysicsVector* physicsVector, // Physics vector
00126         G4int atomicNumberIon,          // Atomic number of ion
00127         const G4String& matIdentifier   // Name or chemical formula of material
00128                            );
00129 
00130    // Function for adding dE/dx vector for an elemental materials. The last
00131    // argument only applies to elemental materials.
00132    G4bool AddPhysicsVector(
00133         G4PhysicsVector* physicsVector, // Physics vector
00134         G4int atomicNumberIon,          // Atomic number of ion
00135         G4int atomicNumberElem          // Atomic number of elemental material
00136                          );
00137 
00138    // Function for removing dE/dx vector for a compound materials
00139    G4bool RemovePhysicsVector(
00140         G4int atomicNumberIon,          // Atomic number of ion
00141         const G4String& matIdentifier   // Name or chemical formula of material
00142                             );
00143    // Function for removing dE/dx vector for a compound materials
00144    G4bool RemovePhysicsVector(
00145         G4int atomicNumberIon,          // Atomic number of ion
00146         G4int atomicNumberElem          // Atomic number of elemental material
00147                             );
00148    // Function deleting all physics vectors and clearing the maps
00149    void ClearTable();
00150 
00151    // Function printing the ion-material pairs of available vectors to stdout
00152    void DumpMap();
00153 
00154  private:
00155    // Subdirectory of G4LEDATA
00156    G4String subDir;
00157 
00158    typedef std::pair<G4int, G4int> G4IonDEDXKeyElem;
00159    typedef std::pair<G4int, G4String> G4IonDEDXKeyMat;
00160  
00161    typedef std::map<G4IonDEDXKeyElem, G4PhysicsVector*> G4IonDEDXMapElem;
00162    typedef std::map<G4IonDEDXKeyMat, G4PhysicsVector*> G4IonDEDXMapMat;
00163 
00164    G4IonDEDXMapElem dedxMapElements; 
00165    G4IonDEDXMapMat dedxMapMaterials;
00166 };
00167 
00168 #endif // G4IONSTOPPINGDATA_HH

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