00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 //--------------------------------------------------------------- 00031 // 00032 // G4ParticlePropertyMessenger.hh 00033 // 00034 // Class Description: 00035 // This is a messenger class to interface to exchange information 00036 // between ParticleDefinition and UI. 00037 // 00038 // /particle/property/ Paricle Table control commands. 00039 // Commands : 00040 // dump * dump particle properties. 00041 // stable * Set stable flag. 00042 // lifetime * Set life time. 00043 // Verbose * Set Verbose level 00044 // 00045 // History: 00046 // 13 June 1997, H. Kurashige : The 1st version created. 00047 // 13 Nov. 1997, H. Kurashige : fix bugs 00048 // 08 Jan. 1998, H. Kurashige : new UIcommand 00049 // 08 Apr. 1999, H. Kurashige : fix some improper codings 00050 // 00051 //--------------------------------------------------------------- 00052 00053 #ifndef G4ParticlePropertyMessenger_h 00054 #define G4ParticlePropertyMessenger_h 1 00055 00056 class G4ParticleTable; 00057 class G4ParticleDefinition; 00058 class G4DecayTableMessenger; 00059 00060 class G4UIdirectory; 00061 class G4UIcmdWithoutParameter; 00062 class G4UIcmdWithABool; 00063 class G4UIcmdWithADoubleAndUnit; 00064 class G4UIcmdWithAnInteger; 00065 00066 #include "G4UImessenger.hh" 00067 #include "globals.hh" 00068 00069 class G4ParticlePropertyMessenger: public G4UImessenger 00070 { 00071 public: 00072 G4ParticlePropertyMessenger(G4ParticleTable* pTable = 0); 00073 virtual ~G4ParticlePropertyMessenger(); 00074 00075 public: // With Description 00076 virtual void SetNewValue(G4UIcommand * command,G4String newValues); 00077 virtual G4String GetCurrentValue(G4UIcommand * command); 00078 00079 private: 00080 G4ParticlePropertyMessenger(const G4ParticlePropertyMessenger&):G4UImessenger(){}; 00081 00082 private: 00083 G4ParticleDefinition* SetCurrentParticle(); 00084 G4ParticleTable* theParticleTable; 00085 G4ParticleDefinition* currentParticle; 00086 00087 G4UIdirectory * thisDirectory; 00088 G4UIcmdWithoutParameter * dumpCmd; 00089 G4UIcmdWithABool * stableCmd; 00090 G4UIcmdWithAnInteger * verboseCmd; 00091 G4UIcmdWithADoubleAndUnit * lifetimeCmd; 00092 00093 G4DecayTableMessenger* fDecayTableMessenger; 00094 }; 00095 00096 #endif 00097 00098 00099 00100 00101 00102