46 fSetActivationCmd(nullptr),
47 fSetActivationAllCmd(nullptr)
49 fNtupleDir = G4Analysis::make_unique<G4UIdirectory>(
"/analysis/ntuple/");
69 ntupleId->SetGuidance(
"Ntuple id");
70 ntupleId->SetParameterRange(
"NtupleId>=0");
72 auto ntupleActivation =
new G4UIparameter(
"NtupleActivation",
's',
true);
73 ntupleActivation->SetGuidance(
"Ntuple activation");
74 ntupleActivation->SetDefaultValue(
"none");
76 fSetActivationCmd = G4Analysis::make_unique<G4UIcommand>(
"/analysis/ntuple/setActivation",
this);
77 G4String guidance(
"Set activation for the ntuple of given id");
89 = G4Analysis::make_unique<G4UIcmdWithABool>(
"/analysis/ntuple/setActivationToAll",
this);
90 G4String guidance(
"Set activation to all ntuples");
104 std::vector<G4String> parameters;
118 <<
"\" parameters: " << parameters.size()
std::ostringstream G4ExceptionDescription
G4NtupleMessenger(G4VAnalysisManager *manager)
std::unique_ptr< G4UIdirectory > fNtupleDir
std::unique_ptr< G4UIcmdWithABool > fSetActivationAllCmd
static G4bool ConvertToBool(const char *st)
static G4int ConvertToInt(const char *st)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetCommandName() const
virtual void SetNewValue(G4UIcommand *command, G4String value) final
void SetActivationToAllCmd()
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4VAnalysisManager * fManager
Associated class.
virtual ~G4NtupleMessenger()
void SetNtupleActivation(G4bool activation)
std::unique_ptr< G4UIcommand > fSetActivationCmd
G4int GetParameterEntries() const