G4ScoreQuantityMessenger.hh

Go to the documentation of this file.
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 // (HISTORY)
00030 //  03-Sep-2007  T.Aso Command definitions are introduced.
00031 //  01-Nov-2007  M.Asai Class is splited into two.
00032 //  20-Jul-2010  T.Aso  Specify unit for scorer
00033 //  24-Mar-2011  T.Aso  Add StepChecker for debugging.
00034 
00035 
00036 #ifndef G4ScoreQuantityMessenger_h
00037 #define G4ScoreQuantityMessenger_h 1
00038 
00039 #include "G4UImessenger.hh"
00040 
00041 #include <vector>
00042 #include "G4String.hh"
00043 
00044 class G4ScoringManager;
00045 class G4VScoringMesh;
00046 class G4UIdirectory;
00047 class G4UIcmdWithAString;
00048 class G4UIcmdWithoutParameter;
00049 class G4UIcommand;
00050 
00051 typedef std::vector<G4String> G4TokenVec;
00052 
00053 // class description:
00054 //
00055 //  This is a concrete class of G4UImessenger which handles the commands for
00056 // G4ScoringManager. 
00057 //
00058 
00059 class G4ScoreQuantityMessenger: public G4UImessenger
00060 {
00061 
00062   public:
00063     G4ScoreQuantityMessenger(G4ScoringManager * SManager);
00064 
00065     ~G4ScoreQuantityMessenger();
00066 
00067     void SetNewValue(G4UIcommand * command,G4String newValues);
00068 
00069     G4String GetCurrentValue(G4UIcommand * );
00070 
00071   protected:    
00072 
00073     void FillTokenVec(G4String newValues,G4TokenVec& token);
00074 
00075     void FParticleCommand(G4VScoringMesh* mesh,G4TokenVec& token); 
00076     void FParticleWithEnergyCommand(G4VScoringMesh* mesh,G4TokenVec& token); 
00077 
00078     G4bool CheckMeshPS(G4VScoringMesh* mesh, G4String& psname);
00079   
00080   private:
00081     void QuantityCommands();
00082     void FilterCommands();
00083 
00084   private:
00085     G4ScoringManager*        fSMan;
00086     //
00087     // Quantity commands
00088     G4UIdirectory*             quantityDir;
00089     G4UIcmdWithAString*        qTouchCmd;
00090     G4UIcmdWithoutParameter*   qGetUnitCmd;
00091     G4UIcmdWithAString*        qSetUnitCmd;
00092     //
00093     G4UIcommand*   qCellChgCmd;
00094     G4UIcommand*   qCellFluxCmd;
00095     G4UIcommand*   qPassCellFluxCmd;
00096     G4UIcommand*   qeDepCmd;
00097     G4UIcommand*   qdoseDepCmd;
00098     G4UIcommand*   qnOfStepCmd;
00099     G4UIcommand*   qnOfSecondaryCmd;
00100     //
00101     G4UIcommand*          qTrackLengthCmd;
00102     G4UIcommand*          qPassCellCurrCmd;
00103     G4UIcommand*          qPassTrackLengthCmd;
00104     G4UIcommand*          qFlatSurfCurrCmd;
00105     G4UIcommand*          qFlatSurfFluxCmd;
00106 //    G4UIcommand*          qSphereSurfCurrCmd;
00107 //    G4UIcommand*          qSphereSurfFluxCmd;
00108 //    G4UIcommand*          qCylSurfCurrCmd;
00109 //    G4UIcommand*          qCylSurfFluxCmd;
00110     G4UIcommand*          qNofCollisionCmd;
00111     G4UIcommand*          qPopulationCmd;
00112     G4UIcommand*          qTrackCountCmd;
00113     G4UIcommand*          qTerminationCmd;
00114     G4UIcommand*          qMinKinEAtGeneCmd;
00115   //
00116     G4UIcommand*          qStepCheckerCmd;
00117 
00118     //
00119     // Filter commands 
00120     G4UIdirectory*             filterDir;
00121     G4UIcmdWithAString*        fchargedCmd;
00122     G4UIcmdWithAString*        fneutralCmd;
00123     G4UIcommand*               fkinECmd;
00124     G4UIcommand*               fparticleCmd;
00125     G4UIcommand*               fparticleKinECmd;
00126     //
00127 
00128 
00129 };
00130 
00131 
00132 
00133 
00134 #endif
00135 

Generated on Mon May 27 17:49:48 2013 for Geant4 by  doxygen 1.4.7