43#ifndef G4AnalysisMessenger_h
44#define G4AnalysisMessenger_h 1
71 template <
typename CMD>
72 std::unique_ptr<CMD> CreateCommand(
75 std::unique_ptr<G4UIcmdWithoutParameter> CreateCommandWithoutParameter(
80 std::unique_ptr<G4NtupleMessenger> fNtupleMessenger;
82 std::unique_ptr<G4UIdirectory> fAnalysisDir;
83 std::unique_ptr<G4UIcmdWithAString> fOpenFileCmd;
84 std::unique_ptr<G4UIcmdWithoutParameter> fWriteCmd;
85 std::unique_ptr<G4UIcmdWithoutParameter> fResetCmd;
88 std::unique_ptr<G4UIcmdWithABool> fCloseFileCmd;
89 std::unique_ptr<G4UIcmdWithABool> fListCmd;
90 std::unique_ptr<G4UIcmdWithABool> fSetActivationCmd;
91 std::unique_ptr<G4UIcmdWithAnInteger> fVerboseCmd;
92 std::unique_ptr<G4UIcmdWithAnInteger> fCompressionCmd;
93 std::unique_ptr<G4UIcmdWithAString> fSetFileNameCmd;
94 std::unique_ptr<G4UIcmdWithAString> fSetHistoDirNameCmd;
95 std::unique_ptr<G4UIcmdWithAString> fSetNtupleDirNameCmd;
99template <
typename CMD>
100std::unique_ptr<CMD> G4AnalysisMessenger::CreateCommand(
105 auto command = std::make_unique<CMD>(fullName,
this);
106 command->SetGuidance(guidance.c_str());
107 command->SetParameterName(paremeterName.c_str(), ommitable);
G4AnalysisMessenger()=delete
~G4AnalysisMessenger() override
void SetNewValue(G4UIcommand *command, G4String value) final
const char * name(G4int ptype)