| [824] | 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 | //
|
|---|
| [850] | 27 | // $Id: G4ParticleMessenger.hh,v 1.8 2008/06/08 12:43:19 kurasige Exp $
|
|---|
| 28 | // GEANT4 tag $Name: HEAD $
|
|---|
| [824] | 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
|
|---|
| [850] | 46 | // list * List name of particles.
|
|---|
| 47 | // find * find particle by PDG encoding.
|
|---|
| 48 | // verbose * Set Verbose level of Particle Table
|
|---|
| [824] | 49 | //
|
|---|
| 50 | // G4ParticlePropertyMessenger
|
|---|
| 51 | // /particle/property/ Paricle Table control commands.
|
|---|
| 52 | // Commands :
|
|---|
| 53 | // dump * dump particle properties.
|
|---|
| 54 | // stable * Set stable flag.
|
|---|
| 55 | // lifetime * Set life time.
|
|---|
| [850] | 56 | // verbose * Set Verbose level
|
|---|
| [824] | 57 | //
|
|---|
| 58 | // G4DecayTableMessenger
|
|---|
| 59 | // /particle/property/decay/ Decay Table control commands.
|
|---|
| 60 | // Commands :
|
|---|
| 61 | // select * Enter index of decay mode.
|
|---|
| 62 | // dump * Dump decay mode information.
|
|---|
| 63 | // br * Set branching ratio. [0< BR <1.0]
|
|---|
| 64 | //
|
|---|
| 65 | //
|
|---|
| 66 | // History:
|
|---|
| 67 | // 13 June 1997, H. Kurashige : The 1st version created.
|
|---|
| 68 | // 10 Nov 1997, H.Kurashige : add /particle/property/Verbose
|
|---|
| 69 | // 08 Jan. 1998, H. Kurashige : new UIcommand
|
|---|
| 70 | // 08 June 1998, H. Kurashige : remove fProcessManagerMessenger
|
|---|
| 71 | // 25 Nov. 1998, H. Kurashige : add /particle/find
|
|---|
| [850] | 72 | // 08 Jun. 2008, H. Kurashige : add /particle/verbose
|
|---|
| [824] | 73 | //---------------------------------------------------------------
|
|---|
| 74 |
|
|---|
| 75 | #ifndef G4ParticleMessenger_h
|
|---|
| 76 | #define G4ParticleMessenger_h 1
|
|---|
| 77 |
|
|---|
| 78 | class G4ParticleDefinition;
|
|---|
| 79 | class G4ParticleTable;
|
|---|
| 80 | class G4ParticlePropertyMessenger;
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 | class G4UIdirectory;
|
|---|
| 84 | class G4UIcmdWithAString;
|
|---|
| 85 | class G4UIcmdWithAnInteger;
|
|---|
| 86 |
|
|---|
| 87 | #include "G4UImessenger.hh"
|
|---|
| 88 | #include "globals.hh"
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | class G4ParticleMessenger: public G4UImessenger
|
|---|
| 92 | {
|
|---|
| 93 | public:
|
|---|
| 94 | G4ParticleMessenger(G4ParticleTable* pTable = 0);
|
|---|
| 95 | virtual ~G4ParticleMessenger();
|
|---|
| 96 |
|
|---|
| 97 | public: // With Description
|
|---|
| 98 | void SetNewValue(G4UIcommand * command,G4String newValues);
|
|---|
| 99 | G4String GetCurrentValue(G4UIcommand * command);
|
|---|
| 100 |
|
|---|
| 101 | private:
|
|---|
| 102 | // !!! can not use "copy constructor" !!!!
|
|---|
| 103 | G4ParticleMessenger(const G4ParticleMessenger&):G4UImessenger(){};
|
|---|
| 104 |
|
|---|
| 105 | private:
|
|---|
| 106 | G4UIdirectory * thisDirectory;
|
|---|
| 107 | G4UIcmdWithAString * listCmd;
|
|---|
| 108 | G4UIcmdWithAString * selectCmd;
|
|---|
| 109 | G4UIcmdWithAnInteger * findCmd;
|
|---|
| [850] | 110 | G4UIcmdWithAnInteger * verboseCmd;
|
|---|
| [824] | 111 |
|
|---|
| 112 | G4ParticleTable* theParticleTable;
|
|---|
| 113 | G4ParticleDefinition* currentParticle;
|
|---|
| 114 |
|
|---|
| 115 | G4ParticlePropertyMessenger* fParticlePropertyMessenger;
|
|---|
| 116 | };
|
|---|
| 117 |
|
|---|
| 118 | #endif
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|