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 // 00033 // G4DecayTableMessenger.hh 00034 // 00035 // Class Description: 00036 // This is a messenger class to interface to exchange information 00037 // between Decay Table/Decay Channel and UI. 00038 // G4DecayTableMessenger 00039 // /particle/property/decay/ Decay Table control commands. 00040 // Commands : 00041 // select * Enter index of decay mode. 00042 // dump * Dump decay mode information. 00043 // br * Set branching ratio. [0< BR <1.0] 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 //--------------------------------------------------------------- 00050 00051 #ifndef G4DecayTableMessenger_h 00052 #define G4DecayTableMessenger_h 1 00053 00054 class G4ParticleTable; 00055 class G4VDecayChannel; 00056 class G4ParticleDefinition; 00057 class G4DecayTable; 00058 00059 class G4UIdirectory; 00060 class G4UIcmdWithoutParameter; 00061 class G4UIcmdWithAnInteger; 00062 class G4UIcmdWithADouble; 00063 00064 #include "G4UImessenger.hh" 00065 #include "globals.hh" 00066 00067 class G4DecayTableMessenger: public G4UImessenger 00068 { 00069 public: // With Description 00070 G4DecayTableMessenger(G4ParticleTable* pTable = 0); 00071 virtual ~G4DecayTableMessenger(); 00072 00073 virtual void SetNewValue(G4UIcommand * command,G4String newValues); 00074 virtual G4String GetCurrentValue(G4UIcommand * command); 00075 00076 private: 00077 G4DecayTableMessenger(const G4DecayTableMessenger&):G4UImessenger(){} 00078 G4DecayTableMessenger & operator = (const G4DecayTableMessenger &){ return *this;} 00079 00080 private: 00081 G4ParticleDefinition* SetCurrentParticle(); 00082 G4ParticleTable* theParticleTable; 00083 G4ParticleDefinition* currentParticle; 00084 G4DecayTable* currentDecayTable; 00085 G4int idxCurrentChannel; 00086 G4VDecayChannel* currentChannel; 00087 00088 G4UIdirectory * thisDirectory; 00089 G4UIcmdWithoutParameter * dumpCmd; 00090 G4UIcmdWithAnInteger * selectCmd; 00091 G4UIcmdWithADouble * brCmd; 00092 }; 00093 00094 #endif 00095 00096 00097 00098 00099 00100