Geant4  10.01.p03
G4PhysicsTableHelper.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4PhysicsTableHelper.hh 70369 2013-05-29 14:59:24Z gcosmo $
28 //
29 //
30 // ------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 // Class Description
34 // G4PhysicsTableHelper is a static utility class
35 // for helping proceeses to build their physics table
36 //
37 // ------------------------------------------------------------
38 // First Implementation 20 Aug. 2004 H.Kurashige
39 //
40 // ------------------------------------------------------------
41 
42 #ifndef G4PhysicsTableHelper_h
43 #define G4PhysicsTableHelper_h 1
44 
45 #include "globals.hh"
46 #include "G4ios.hh"
47 #include <vector>
48 #include "G4PhysicsTable.hh"
49 #include "G4MaterialCutsCouple.hh"
50 #include "G4Region.hh"
51 
53 {
54  protected:
59 
60  public: // with description
62  // Prepare the given physics table before building the physics table
63  // resize the given physics table to match with the current
64  // production cut table.
65 
66  static G4bool RetrievePhysicsTable(G4PhysicsTable* physTable,
67  const G4String& fileName,
68  G4bool ascii );
69  // Retrieve physics table from the given file and
70  // fill the given physics table with retrievd physics vectors
71 
72  static void SetPhysicsVector(G4PhysicsTable* physTable,
73  size_t idx,
74  G4PhysicsVector* vec);
75  // Set a physics vector at given position
76 
77  public: // with description
78  static void SetVerboseLevel(G4int value);
79  static G4int GetVerboseLevel();
80  // set/get controle flag for output message
81  // 0: Silent
82  // 1: Warning message
83  // 2: More
84 
85 
86  protected:
88  // controle flag for output message
89 };
90 
91 #endif
static void SetPhysicsVector(G4PhysicsTable *physTable, size_t idx, G4PhysicsVector *vec)
#define G4ThreadLocal
Definition: tls.hh:89
int G4int
Definition: G4Types.hh:78
static G4PhysicsTable * PreparePhysicsTable(G4PhysicsTable *physTable)
static G4ThreadLocal G4int verboseLevel
G4PhysicsTableHelper & operator=(const G4PhysicsTableHelper &)
bool G4bool
Definition: G4Types.hh:79
static G4bool RetrievePhysicsTable(G4PhysicsTable *physTable, const G4String &fileName, G4bool ascii)
static void SetVerboseLevel(G4int value)