Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ScoringMessenger.hh
Go to the documentation of this file.
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//
28// (HISTORY)
29// 03-Sep-2007 T.Aso Command definitions are introduced.
30// 01-Nov-2007 M.Asai Class is splitted into two.
31// 18-Feb-2008 T.Aso Command for cylindrical scorer.
32// 18-Feb-2008 T.Aso Command for color chart display.
33
34#ifndef G4ScoringMessenger_h
35#define G4ScoringMessenger_h 1
36
37#include "G4UImessenger.hh"
38
39#include <vector>
40#include "G4String.hh"
41
43class G4VScoringMesh;
44class G4UIdirectory;
51class G4UIcommand;
52
53using G4TokenVec = std::vector<G4String>;
54
55// class description:
56//
57// This is a concrete class of G4UImessenger which handles the commands for
58// G4ScoringManager.
59//
60
62{
63 public:
65
66 ~G4ScoringMessenger() override;
67
68 void SetNewValue(G4UIcommand* command, G4String newValues) override;
69
70 G4String GetCurrentValue(G4UIcommand* command) override;
71
72 protected:
73 void FillTokenVec(G4String newValues, G4TokenVec& token);
74 void MeshBinCommand(G4VScoringMesh* mesh, G4TokenVec& token);
75 void Fill1D(G4UIcommand* cmd, G4String newValues);
76
77 private:
78 G4ScoringManager* fSMan;
79 G4UIdirectory* scoreDir;
82 G4UIcmdWithAnInteger* verboseCmd;
83 //
84 G4UIdirectory* meshCreateDir;
85 G4UIcmdWithAString* meshBoxCreateCmd;
86 G4UIcmdWithAString* meshCylinderCreateCmd;
87 G4UIcommand* meshRWLogVolCreateCmd;
88 G4UIcommand* probeCreateCmd;
89 //
90 // Mesh commands
91 G4UIdirectory* meshDir;
92 G4UIcmdWithAString* meshOpnCmd;
93 //
94 G4UIcmdWithoutParameter* meshClsCmd;
95 //
96 // Size commands
97 G4UIcmdWith3VectorAndUnit* mBoxSizeCmd;
98 G4UIcommand* mCylinderSizeCmd;
99 G4UIcmdWithADoubleAndUnit* mCylinderRMinCmd;
100 G4UIcommand* mCylinderAngleCmd;
101 //
102 // Division command
103 G4UIcommand* mBinCmd;
104 //
105 // Placement command
106 G4UIdirectory* mTransDir;
107 G4UIcmdWithoutParameter* mTResetCmd;
109 G4UIdirectory* mRotDir;
113 //
114 // Probe commands
115 G4UIdirectory* probeDir;
116 G4UIcmdWithAString* probeMatCmd;
117 G4UIcmdWith3VectorAndUnit* probeLocateCmd;
118 //
119 // Draw Command
120 G4UIcommand* drawCmd;
121 G4UIcommand* drawColumnCmd;
122 G4UIdirectory* colorMapDir;
123 G4UIcmdWithoutParameter* listColorMapCmd;
124 G4UIcmdWithAString* floatMinMaxCmd;
125 G4UIcommand* colorMapMinMaxCmd;
126 //
127 // Dump scoring result to file
128 G4UIcommand* dumpQtyToFileCmd;
129 G4UIcommand* dumpAllQtsToFileCmd;
130 G4UIcommand* dumpQtyWithFactorCmd;
131 G4UIcommand* dumpAllQtsWithFactorCmd;
132 //
133 // Command for direcly plotting to a histogram
134 G4UIcommand* fill1DCmd;
135};
136
137#endif
std::vector< G4String > G4TokenVec
std::vector< G4String > G4TokenVec
void FillTokenVec(G4String newValues, G4TokenVec &token)
void MeshBinCommand(G4VScoringMesh *mesh, G4TokenVec &token)
G4String GetCurrentValue(G4UIcommand *command) override
G4ScoringMessenger(G4ScoringManager *SManager)
void Fill1D(G4UIcommand *cmd, G4String newValues)
void SetNewValue(G4UIcommand *command, G4String newValues) override