File indexing completed on 2025-01-18 09:59:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 #ifndef G4ScoringMessenger_h
0035 #define G4ScoringMessenger_h 1
0036
0037 #include "G4UImessenger.hh"
0038
0039 #include <vector>
0040 #include "G4String.hh"
0041
0042 class G4ScoringManager;
0043 class G4VScoringMesh;
0044 class G4UIdirectory;
0045 class G4UIcmdWithoutParameter;
0046 class G4UIcmdWithAString;
0047 class G4UIcmdWithABool;
0048 class G4UIcmdWithAnInteger;
0049 class G4UIcmdWithADoubleAndUnit;
0050 class G4UIcmdWith3VectorAndUnit;
0051 class G4UIcommand;
0052
0053 using G4TokenVec = std::vector<G4String>;
0054
0055
0056
0057
0058
0059
0060
0061 class G4ScoringMessenger : public G4UImessenger
0062 {
0063 public:
0064 G4ScoringMessenger(G4ScoringManager* SManager);
0065
0066 ~G4ScoringMessenger() override;
0067
0068 void SetNewValue(G4UIcommand* command, G4String newValues) override;
0069
0070 G4String GetCurrentValue(G4UIcommand* command) override;
0071
0072 protected:
0073 void FillTokenVec(G4String newValues, G4TokenVec& token);
0074 void MeshBinCommand(G4VScoringMesh* mesh, G4TokenVec& token);
0075 void Fill1D(G4UIcommand* cmd, G4String newValues);
0076
0077 private:
0078 G4ScoringManager* fSMan;
0079 G4UIdirectory* scoreDir;
0080 G4UIcmdWithoutParameter* listCmd;
0081 G4UIcmdWithoutParameter* dumpCmd;
0082 G4UIcmdWithAnInteger* verboseCmd;
0083
0084 G4UIdirectory* meshCreateDir;
0085 G4UIcmdWithAString* meshBoxCreateCmd;
0086 G4UIcmdWithAString* meshCylinderCreateCmd;
0087 G4UIcommand* meshRWLogVolCreateCmd;
0088 G4UIcommand* probeCreateCmd;
0089
0090
0091 G4UIdirectory* meshDir;
0092 G4UIcmdWithAString* meshOpnCmd;
0093
0094 G4UIcmdWithoutParameter* meshClsCmd;
0095
0096
0097 G4UIcmdWith3VectorAndUnit* mBoxSizeCmd;
0098 G4UIcommand* mCylinderSizeCmd;
0099 G4UIcmdWithADoubleAndUnit* mCylinderRMinCmd;
0100 G4UIcommand* mCylinderAngleCmd;
0101
0102
0103 G4UIcommand* mBinCmd;
0104
0105
0106 G4UIdirectory* mTransDir;
0107 G4UIcmdWithoutParameter* mTResetCmd;
0108 G4UIcmdWith3VectorAndUnit* mTXyzCmd;
0109 G4UIdirectory* mRotDir;
0110 G4UIcmdWithADoubleAndUnit* mRotXCmd;
0111 G4UIcmdWithADoubleAndUnit* mRotYCmd;
0112 G4UIcmdWithADoubleAndUnit* mRotZCmd;
0113
0114
0115 G4UIdirectory* probeDir;
0116 G4UIcmdWithAString* probeMatCmd;
0117 G4UIcmdWith3VectorAndUnit* probeLocateCmd;
0118
0119
0120 G4UIcommand* drawCmd;
0121 G4UIcommand* drawColumnCmd;
0122 G4UIdirectory* colorMapDir;
0123 G4UIcmdWithoutParameter* listColorMapCmd;
0124 G4UIcmdWithAString* floatMinMaxCmd;
0125 G4UIcommand* colorMapMinMaxCmd;
0126
0127
0128 G4UIcommand* dumpQtyToFileCmd;
0129 G4UIcommand* dumpAllQtsToFileCmd;
0130 G4UIcommand* dumpQtyWithFactorCmd;
0131 G4UIcommand* dumpAllQtsWithFactorCmd;
0132
0133
0134 G4UIcommand* fill1DCmd;
0135 };
0136
0137 #endif