Geant4_10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
source
source
particles
management
include
G4ParticleMessenger.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: G4ParticleMessenger.hh 69557 2013-05-08 12:01:40Z gcosmo $
28
//
29
//
30
//---------------------------------------------------------------
31
//
32
// G4ParticleMessenger.hh
33
//
34
// Class Description:
35
// This is a messenger class to interface to exchange information
36
// between Particle related classes and UI.
37
//
38
// ------------------------------------------------------
39
// the List of Directory and Commands
40
// ------------------------------------------------------
41
// G4ParticleMessenger
42
// /particle/ Paricle control commands.
43
// Commands :
44
// select * Select particle
45
// list * List name of particles.
46
// find * find particle by PDG encoding.
47
// verbose * Set Verbose level of Particle Table
48
//
49
// G4ParticlePropertyMessenger
50
// /particle/property/ Paricle Table control commands.
51
// Commands :
52
// dump * dump particle properties.
53
// stable * Set stable flag.
54
// lifetime * Set life time.
55
// verbose * Set Verbose level
56
//
57
// G4DecayTableMessenger
58
// /particle/property/decay/ Decay Table control commands.
59
// Commands :
60
// select * Enter index of decay mode.
61
// dump * Dump decay mode information.
62
// br * Set branching ratio. [0< BR <1.0]
63
//
64
//
65
// History:
66
// 13 June 1997, H. Kurashige : The 1st version created.
67
// 10 Nov 1997, H.Kurashige : add /particle/property/Verbose
68
// 08 Jan. 1998, H. Kurashige : new UIcommand
69
// 08 June 1998, H. Kurashige : remove fProcessManagerMessenger
70
// 25 Nov. 1998, H. Kurashige : add /particle/find
71
// 08 Jun. 2008, H. Kurashige : add /particle/verbose
72
// 30 Jul. 2009, H. Kurashige : add /particle/createAllIon
73
// 1 May. 2013, H. Kurashige : add /particle/createAllIsomer
74
//---------------------------------------------------------------
75
76
#ifndef G4ParticleMessenger_h
77
#define G4ParticleMessenger_h 1
78
79
class
G4ParticleDefinition
;
80
class
G4ParticleTable
;
81
class
G4ParticlePropertyMessenger
;
82
83
84
class
G4UIdirectory
;
85
class
G4UIcmdWithAString
;
86
class
G4UIcmdWithAnInteger
;
87
class
G4UIcmdWithoutParameter
;
88
89
#include "
G4UImessenger.hh
"
90
#include "
globals.hh
"
91
92
93
class
G4ParticleMessenger
:
public
G4UImessenger
94
{
95
public
:
96
G4ParticleMessenger
(
G4ParticleTable
* pTable = 0);
97
virtual
~G4ParticleMessenger
();
98
99
public
:
// With Description
100
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValues);
101
G4String
GetCurrentValue
(
G4UIcommand
* command);
102
103
private
:
104
// !!! can not use "copy constructor" !!!!
105
G4ParticleMessenger
(
const
G4ParticleMessenger
&):
G4UImessenger
(){};
106
107
private
:
108
G4UIdirectory
* thisDirectory;
109
G4UIcmdWithAString
* listCmd;
110
G4UIcmdWithAString
* selectCmd;
111
G4UIcmdWithAnInteger
* findCmd;
112
G4UIcmdWithoutParameter
* createAllIonCmd;
113
G4UIcmdWithoutParameter
* createAllIsomerCmd;
114
G4UIcmdWithAnInteger
* verboseCmd;
115
116
G4ParticleTable
* theParticleTable;
117
G4ParticleDefinition
* currentParticle;
118
119
G4ParticlePropertyMessenger
* fParticlePropertyMessenger;
120
};
121
122
#endif
123
124
125
126
127
128
129
130
131
G4ParticlePropertyMessenger
Definition:
G4ParticlePropertyMessenger.hh:69
G4UIdirectory
Definition:
G4UIdirectory.hh:41
G4ParticleMessenger
Definition:
G4ParticleMessenger.hh:93
G4UImessenger.hh
G4ParticleMessenger::SetNewValue
void SetNewValue(G4UIcommand *command, G4String newValues)
Definition:
G4ParticleMessenger.cc:140
G4ParticleMessenger::GetCurrentValue
G4String GetCurrentValue(G4UIcommand *command)
Definition:
G4ParticleMessenger.cc:203
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:111
G4ParticleMessenger::G4ParticleMessenger
G4ParticleMessenger(G4ParticleTable *pTable=0)
Definition:
G4ParticleMessenger.cc:60
G4UIcommand
Definition:
G4UIcommand.hh:51
G4UIcmdWithAnInteger
Definition:
G4UIcmdWithAnInteger.hh:41
G4ParticleTable
Definition:
G4ParticleTable.hh:65
globals.hh
G4UIcmdWithoutParameter
Definition:
G4UIcmdWithoutParameter.hh:41
G4UIcmdWithAString
Definition:
G4UIcmdWithAString.hh:42
G4UImessenger
Definition:
G4UImessenger.hh:47
G4UImessenger::G4UImessenger
G4UImessenger()
Definition:
G4UImessenger.cc:38
G4ParticleMessenger::~G4ParticleMessenger
virtual ~G4ParticleMessenger()
Definition:
G4ParticleMessenger.cc:125
G4String
Definition:
G4String.hh:45
Generated on Sat Dec 14 2013 14:34:21 for Geant4_10 by
1.8.5