Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -67,6 +67,14 @@ G4AnalysisMessenger::G4AnalysisMessenger(G4VAnalysisManager* manager)
|
||||
"list", "List all/activate analysis objects.", "OnlyIfActive", true);
|
||||
fListCmd->SetDefaultValue(true);
|
||||
|
||||
fSetDefaultFileTypeCmd = CreateCommand<G4UIcmdWithAString>(
|
||||
"setDefaultFileType", "Set default output file type", "DefaultFileType", false);
|
||||
#ifdef TOOLS_USE_HDF5
|
||||
fSetDefaultFileTypeCmd->SetCandidates("csv hdf5 root xml");
|
||||
#else
|
||||
fSetDefaultFileTypeCmd->SetCandidates("csv root xml");
|
||||
#endif
|
||||
|
||||
fSetActivationCmd = CreateCommand<G4UIcmdWithABool>(
|
||||
"setActivation",
|
||||
"Set activation. \n"
|
||||
@@ -150,6 +158,11 @@ void G4AnalysisMessenger::SetNewValue(G4UIcommand* command, G4String newValues)
|
||||
return;
|
||||
}
|
||||
|
||||
if ( command == fSetDefaultFileTypeCmd.get() ) {
|
||||
fManager->SetDefaultFileType(newValues);
|
||||
return;
|
||||
}
|
||||
|
||||
if ( command == fSetActivationCmd.get() ) {
|
||||
fManager->SetActivation(fSetActivationCmd->GetNewBoolValue(newValues));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user