Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
cuts
include
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$
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
52
class
G4PhysicsTableHelper
53
{
54
protected
:
55
G4PhysicsTableHelper
();
56
~G4PhysicsTableHelper
();
57
G4PhysicsTableHelper
(
const
G4PhysicsTableHelper
&
right
);
58
G4PhysicsTableHelper
&
operator=
(
const
G4PhysicsTableHelper
&);
59
60
public
:
// with description
61
static
G4PhysicsTable
*
PreparePhysicsTable
(
G4PhysicsTable
* physTable);
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
:
87
static
G4int
verboseLevel
;
88
// controle flag for output message
89
};
90
91
inline
92
void
G4PhysicsTableHelper::SetVerboseLevel
(
G4int
value
)
93
{
94
verboseLevel
=
value
;
95
}
96
97
inline
98
G4int
G4PhysicsTableHelper::GetVerboseLevel
()
99
{
100
return
verboseLevel
;
101
}
102
103
#endif
Generated on Sat May 25 2013 14:33:29 for Geant4 by
1.8.4