File indexing completed on 2025-09-16 08:56:49
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
0035 #ifndef G4ScoreQuantityMessenger_h
0036 #define G4ScoreQuantityMessenger_h 1
0037
0038 #include "G4String.hh"
0039 #include "G4UImessenger.hh"
0040
0041 #include <vector>
0042
0043 class G4ScoringManager;
0044 class G4VScoringMesh;
0045 class G4UIdirectory;
0046 class G4UIcmdWithAString;
0047 class G4UIcmdWithoutParameter;
0048 class G4UIcommand;
0049
0050 using G4TokenVec = std::vector<G4String>;
0051
0052 class G4ScoreQuantityMessenger : public G4UImessenger
0053 {
0054 public:
0055
0056 G4ScoreQuantityMessenger(G4ScoringManager* SManager);
0057
0058 ~G4ScoreQuantityMessenger() override;
0059
0060 void SetNewValue(G4UIcommand* command, G4String newValues) override;
0061
0062 G4String GetCurrentValue(G4UIcommand*) override;
0063
0064 protected:
0065
0066 void FillTokenVec(const G4String& newValues, G4TokenVec& token);
0067
0068 void FParticleCommand(G4VScoringMesh* mesh, G4TokenVec& token);
0069 void FParticleWithEnergyCommand(G4VScoringMesh* mesh, G4TokenVec& token);
0070
0071 G4bool CheckMeshPS(G4VScoringMesh* mesh, const G4String& psname,
0072 G4UIcommand* command);
0073
0074 private:
0075
0076 void QuantityCommands();
0077 void FilterCommands();
0078
0079 private:
0080
0081 G4ScoringManager* fSMan;
0082
0083
0084 G4UIdirectory* quantityDir;
0085 G4UIcmdWithAString* qTouchCmd;
0086 G4UIcmdWithoutParameter* qGetUnitCmd;
0087 G4UIcmdWithAString* qSetUnitCmd;
0088
0089 G4UIcommand* qCellChgCmd;
0090 G4UIcommand* qCellFluxCmd;
0091 G4UIcommand* qPassCellFluxCmd;
0092 G4UIcommand* qeDepCmd;
0093 G4UIcommand* qdoseDepCmd;
0094 G4UIcommand* qnOfStepCmd;
0095 G4UIcommand* qnOfSecondaryCmd;
0096
0097 G4UIcommand* qTrackLengthCmd;
0098 G4UIcommand* qPassCellCurrCmd;
0099 G4UIcommand* qPassTrackLengthCmd;
0100 G4UIcommand* qFlatSurfCurrCmd;
0101 G4UIcommand* qFlatSurfFluxCmd;
0102 G4UIcommand* qVolFluxCmd;
0103 G4UIcommand* qNofCollisionCmd;
0104 G4UIcommand* qPopulationCmd;
0105 G4UIcommand* qTrackCountCmd;
0106 G4UIcommand* qTerminationCmd;
0107 G4UIcommand* qMinKinEAtGeneCmd;
0108 G4UIcommand* qStepCheckerCmd;
0109
0110
0111
0112 G4UIdirectory* filterDir;
0113 G4UIcmdWithAString* fchargedCmd;
0114 G4UIcmdWithAString* fneutralCmd;
0115 G4UIcommand* fkinECmd;
0116 G4UIcommand* fparticleCmd;
0117 G4UIcommand* fparticleKinECmd;
0118
0119 };
0120
0121 #endif