40 using namespace G4Analysis;
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()
virtual void SetNewValue(G4UIcommand *command, G4String value) final
std::ostringstream G4ExceptionDescription
static G4bool ConvertToBool(const char *st)
std::unique_ptr< G4UIcommand > fSetActivationCmd
const G4String & GetCommandName() const
static G4int ConvertToInt(const char *st)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
void SetActivationToAllCmd()
void SetNtupleActivation(G4bool activation)
virtual ~G4NtupleMessenger()
G4VAnalysisManager * fManager
Associated class.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4NtupleMessenger(G4VAnalysisManager *manager)
std::unique_ptr< G4UIcmdWithABool > fSetActivationAllCmd
G4int GetParameterEntries() const
std::unique_ptr< G4UIdirectory > fNtupleDir