[828] | 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: G4UserPhysicsListMessenger.hh,v 1.18 2007/05/30 10:34:54 gcosmo Exp $ |
---|
[850] | 28 | // GEANT4 tag $Name: HEAD $ |
---|
[828] | 29 | // |
---|
| 30 | // |
---|
| 31 | //--------------------------------------------------------------- |
---|
| 32 | // |
---|
| 33 | // G4UserPhysicsListMessenger.hh |
---|
| 34 | // |
---|
| 35 | // Class Description: |
---|
| 36 | // This is a messenger class to interface to exchange information |
---|
| 37 | // between ParticleUserList and UI. |
---|
| 38 | // -- |
---|
| 39 | // the List of Directory and Commands |
---|
| 40 | // - |
---|
| 41 | // /run/particle/ Paricle control commands. |
---|
| 42 | // Commands : |
---|
| 43 | // SetCuts * Set default cut value |
---|
| 44 | // dumpList * Dump List of particles in G4VUserPhysicsList. |
---|
| 45 | // verbose * Set the Verbose level of G4VUserPhysicsList. |
---|
| 46 | // addProcessManager * add process manager |
---|
| 47 | // buildPhysicsTable * build physics table |
---|
| 48 | // storePhysicsTable * store physics table into files |
---|
| 49 | // retreivePhysicsTable * retreive physics table from files |
---|
| 50 | // setStoredInAscii * Switch on/off ascii mode in store/retreive Physics Table |
---|
| 51 | // ------------------------------------------------------------ |
---|
| 52 | // History |
---|
| 53 | // first version 09 Jan. 1998 by H.Kurashige |
---|
| 54 | // second version 24 Jan. 1998 by H.Kurashige |
---|
| 55 | // add buildPhysicsTable command 13 Apr. 1999 by H.Kurashige |
---|
| 56 | // add store/retreivePhysicsTable 08 Nov. 2000 by H.Kurashige |
---|
| 57 | // add setStoredInAscii command 12 Mar. 2001 by H.Kurashige |
---|
| 58 | // add applyCuts command 2 Aug. 2001 by H.Kurashige |
---|
| 59 | // ------------------------------------------------------------ |
---|
| 60 | |
---|
| 61 | #ifndef G4UserPhysicsListMessenger_h |
---|
| 62 | #define G4UserPhysicsListMessenger_h 1 |
---|
| 63 | |
---|
| 64 | class G4VUserPhysicsList; |
---|
| 65 | |
---|
| 66 | class G4VUserPhysicsList; |
---|
| 67 | class G4UIdirectory; |
---|
| 68 | class G4UIcmdWithoutParameter; |
---|
| 69 | class G4UIcmdWithAnInteger; |
---|
| 70 | class G4UIcmdWithADoubleAndUnit; |
---|
| 71 | class G4UIcmdWithAString; |
---|
| 72 | class G4UIcommand; |
---|
| 73 | |
---|
| 74 | #include "G4UImessenger.hh" |
---|
| 75 | #include "globals.hh" |
---|
| 76 | |
---|
| 77 | class G4UserPhysicsListMessenger: public G4UImessenger |
---|
| 78 | { |
---|
| 79 | private: |
---|
| 80 | // hide default constructor |
---|
| 81 | G4UserPhysicsListMessenger(){} |
---|
| 82 | |
---|
| 83 | public: |
---|
| 84 | G4UserPhysicsListMessenger(G4VUserPhysicsList* pParticleList); |
---|
| 85 | virtual ~G4UserPhysicsListMessenger(); |
---|
| 86 | |
---|
| 87 | public: // with description |
---|
| 88 | virtual void SetNewValue(G4UIcommand * command,G4String newValues); |
---|
| 89 | virtual G4String GetCurrentValue(G4UIcommand * command); |
---|
| 90 | |
---|
| 91 | protected: |
---|
| 92 | G4VUserPhysicsList* thePhysicsList; |
---|
| 93 | |
---|
| 94 | private: //commands |
---|
| 95 | G4UIdirectory * theDirectory; |
---|
| 96 | G4UIcmdWithADoubleAndUnit * setPCutCmd; |
---|
| 97 | G4UIcmdWithADoubleAndUnit * setCutCmd; |
---|
| 98 | G4UIcommand * setCutRCmd; |
---|
| 99 | G4UIcmdWithAnInteger * verboseCmd; |
---|
| 100 | G4UIcmdWithoutParameter * dumpListCmd; |
---|
| 101 | G4UIcmdWithAString * addProcManCmd; |
---|
| 102 | G4UIcmdWithAString * buildPTCmd; |
---|
| 103 | G4UIcmdWithAString * storeCmd; |
---|
| 104 | G4UIcmdWithAString * retrieveCmd; |
---|
| 105 | G4UIcmdWithAnInteger * asciiCmd; |
---|
| 106 | G4UIcommand * applyCutsCmd; |
---|
| 107 | G4UIcmdWithAString * dumpCutValuesCmd; |
---|
| 108 | }; |
---|
| 109 | |
---|
| 110 | #endif |
---|
| 111 | |
---|
| 112 | |
---|