G4PhysicsTableHelper.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 //
00027 // $Id$
00028 //
00029 // 
00030 // ------------------------------------------------------------
00031 //      GEANT 4 class header file 
00032 //
00033 // Class Description
00034 //  G4PhysicsTableHelper is a static utility class 
00035 //  for helping proceeses to build their physics table
00036 //
00037 // ------------------------------------------------------------
00038 //   First Implementation          20 Aug. 2004   H.Kurashige
00039 //
00040 // ------------------------------------------------------------
00041 
00042 #ifndef G4PhysicsTableHelper_h 
00043 #define G4PhysicsTableHelper_h 1
00044 
00045 #include "globals.hh"
00046 #include "G4ios.hh"
00047 #include <vector>
00048 #include "G4PhysicsTable.hh"
00049 #include "G4MaterialCutsCouple.hh"
00050 #include "G4Region.hh"
00051 
00052 class G4PhysicsTableHelper
00053 { 
00054   protected:
00055     G4PhysicsTableHelper();
00056     ~G4PhysicsTableHelper();
00057     G4PhysicsTableHelper(const G4PhysicsTableHelper& right);
00058     G4PhysicsTableHelper& operator=(const G4PhysicsTableHelper&);
00059  
00060   public: // with description
00061     static G4PhysicsTable* PreparePhysicsTable(G4PhysicsTable* physTable);
00062     // Prepare the given physics table before building the physics table 
00063     // resize the given physics table to match with the current
00064     // production cut table.   
00065 
00066     static G4bool RetrievePhysicsTable(G4PhysicsTable* physTable,
00067                                        const G4String& fileName,
00068                                        G4bool ascii              );
00069     // Retrieve physics table from the given file and 
00070     // fill the given physics table with retrievd physics vectors
00071 
00072     static void SetPhysicsVector(G4PhysicsTable* physTable,
00073                                  size_t idx,
00074                                  G4PhysicsVector* vec);
00075     // Set a physics vector at given position 
00076 
00077   public: // with description
00078    static void  SetVerboseLevel(G4int value);
00079    static G4int GetVerboseLevel();
00080    // set/get controle flag for output message
00081    //  0: Silent
00082    //  1: Warning message
00083    //  2: More
00084 
00085 
00086  protected:
00087    static G4int verboseLevel;
00088    // controle flag for output message
00089 };
00090 
00091 inline
00092  void  G4PhysicsTableHelper::SetVerboseLevel(G4int value)
00093 {
00094   verboseLevel = value;
00095 }
00096 
00097 inline
00098  G4int G4PhysicsTableHelper::GetVerboseLevel()
00099 {
00100   return verboseLevel;
00101 }
00102 
00103 #endif

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