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
particles
management
include
G4ParticlePropertyTable.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
// $Id$
27
//
28
//
29
// ------------------------------------------------------------
30
// GEANT 4 class header file
31
//
32
// History:
33
// ---------------- G4ParticlePropertyTable ----------------
34
// first implementation by H Kurashige 9 June 2003
35
// ------------------------------------------------------------
36
37
#ifndef G4ParticlePropertyTable_h
38
#define G4ParticlePropertyTable_h 1
39
40
#include "
globals.hh
"
41
#include "
G4ios.hh
"
42
#include <vector>
43
44
#include "
G4ParticlePropertyData.hh
"
45
#include "
G4ParticleDefinition.hh
"
46
#include "
G4ParticleTable.hh
"
47
48
class
G4ParticlePropertyTable
49
{
50
// Class Description
51
// This class manages properties of a particle which are
52
// properties in G4ParticlePropertyTable class.
53
// This class is a singleton.
54
55
protected
:
56
// hide default constructor because this class is a singleton
57
G4ParticlePropertyTable
();
58
G4ParticlePropertyTable
(
const
G4ParticlePropertyTable
&
right
);
59
60
G4ParticlePropertyTable
&
operator=
(
const
G4ParticlePropertyTable
&right);
61
62
public
:
63
G4int
operator==
(
const
G4ParticlePropertyTable
&right)
const
;
64
G4int
operator!=
(
const
G4ParticlePropertyTable
&right)
const
;
65
66
public
:
67
virtual
~G4ParticlePropertyTable
();
68
69
public
:
//With Description
70
static
G4ParticlePropertyTable
*
GetParticlePropertyTable
();
71
// return the pointer to G4ParticlePropertyTable object
72
// G4ParticlePropertyTable is a "singleton" and can get its pointer
73
// by this function. At the first time of calling this function,
74
// the G4ParticleTable object is instantiated
75
76
G4ParticlePropertyData
*
GetParticleProperty
(
const
G4String
& aParticleName);
77
G4ParticlePropertyData
*
GetParticleProperty
(
const
G4ParticleDefinition
* aParticle);
78
// return the pointer to G4ParticlePropertyData object,
79
// which contains properties for the particle specified.
80
// (return 0 if the specified particle does not exist)
81
82
G4bool
SetParticleProperty
(
const
G4ParticlePropertyData
& newProperty);
83
// change particle properties for the particle specified.
84
// return true if properties are sucessfully set
85
86
void
Clear
();
87
// clear and destroy arrayDataObject
88
89
public
:
90
void
SetVerboseLevel
(
G4int
value
);
91
G4int
GetVerboseLevel
()
const
;
92
// controle flag for output message
93
// 0: Silent
94
// 1: Warning message
95
// 2: More
96
97
protected
:
98
G4ParticleTable
*
fParticleTable
;
99
100
private
:
101
G4int
verboseLevel;
102
static
G4ParticlePropertyTable
* fgParticlePropertyTable;
103
104
protected
:
105
std::vector<G4ParticlePropertyData*>
arrayDataObject
;
106
};
107
108
109
#endif
110
111
112
113
114
115
116
117
118
Generated on Sat May 25 2013 14:33:22 for Geant4 by
1.8.4