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,v 1.7 2006/06/29 19:24:06 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: $ |
---|
29 | // |
---|
30 | // |
---|
31 | //--------------------------------------------------------------- |
---|
32 | // |
---|
33 | // G4ParticleMessenger.hh |
---|
34 | // |
---|
35 | // Class Description: |
---|
36 | // This is a messenger class to interface to exchange information |
---|
37 | // between Particle related classes and UI. |
---|
38 | // |
---|
39 | // ------------------------------------------------------ |
---|
40 | // the List of Directory and Commands |
---|
41 | // ------------------------------------------------------ |
---|
42 | // G4ParticleMessenger |
---|
43 | // /particle/ Paricle control commands. |
---|
44 | // Commands : |
---|
45 | // select * Select particle |
---|
46 | // List * List name of particles. |
---|
47 | // |
---|
48 | // G4ParticlePropertyMessenger |
---|
49 | // /particle/property/ Paricle Table control commands. |
---|
50 | // Commands : |
---|
51 | // dump * dump particle properties. |
---|
52 | // stable * Set stable flag. |
---|
53 | // lifetime * Set life time. |
---|
54 | // Verbose * Set Verbose level |
---|
55 | // |
---|
56 | // G4DecayTableMessenger |
---|
57 | // /particle/property/decay/ Decay Table control commands. |
---|
58 | // Commands : |
---|
59 | // select * Enter index of decay mode. |
---|
60 | // dump * Dump decay mode information. |
---|
61 | // br * Set branching ratio. [0< BR <1.0] |
---|
62 | // |
---|
63 | // |
---|
64 | // History: |
---|
65 | // 13 June 1997, H. Kurashige : The 1st version created. |
---|
66 | // 10 Nov 1997, H.Kurashige : add /particle/property/Verbose |
---|
67 | // 08 Jan. 1998, H. Kurashige : new UIcommand |
---|
68 | // 08 June 1998, H. Kurashige : remove fProcessManagerMessenger |
---|
69 | // 25 Nov. 1998, H. Kurashige : add /particle/find |
---|
70 | //--------------------------------------------------------------- |
---|
71 | |
---|
72 | #ifndef G4ParticleMessenger_h |
---|
73 | #define G4ParticleMessenger_h 1 |
---|
74 | |
---|
75 | class G4ParticleDefinition; |
---|
76 | class G4ParticleTable; |
---|
77 | class G4ParticlePropertyMessenger; |
---|
78 | |
---|
79 | |
---|
80 | class G4UIdirectory; |
---|
81 | class G4UIcmdWithAString; |
---|
82 | class G4UIcmdWithAnInteger; |
---|
83 | |
---|
84 | #include "G4UImessenger.hh" |
---|
85 | #include "globals.hh" |
---|
86 | |
---|
87 | |
---|
88 | class G4ParticleMessenger: public G4UImessenger |
---|
89 | { |
---|
90 | public: |
---|
91 | G4ParticleMessenger(G4ParticleTable* pTable = 0); |
---|
92 | virtual ~G4ParticleMessenger(); |
---|
93 | |
---|
94 | public: // With Description |
---|
95 | void SetNewValue(G4UIcommand * command,G4String newValues); |
---|
96 | G4String GetCurrentValue(G4UIcommand * command); |
---|
97 | |
---|
98 | private: |
---|
99 | // !!! can not use "copy constructor" !!!! |
---|
100 | G4ParticleMessenger(const G4ParticleMessenger&):G4UImessenger(){}; |
---|
101 | |
---|
102 | private: |
---|
103 | G4UIdirectory * thisDirectory; |
---|
104 | G4UIcmdWithAString * listCmd; |
---|
105 | G4UIcmdWithAString * selectCmd; |
---|
106 | G4UIcmdWithAnInteger * findCmd; |
---|
107 | |
---|
108 | G4ParticleTable* theParticleTable; |
---|
109 | G4ParticleDefinition* currentParticle; |
---|
110 | |
---|
111 | G4ParticlePropertyMessenger* fParticlePropertyMessenger; |
---|
112 | }; |
---|
113 | |
---|
114 | #endif |
---|
115 | |
---|
116 | |
---|
117 | |
---|
118 | |
---|
119 | |
---|
120 | |
---|
121 | |
---|
122 | |
---|
123 | |
---|