Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -68,13 +68,19 @@ DMXRunActionMessenger::DMXRunActionMessenger(DMXRunAction* run)
|
||||
SaveHistFileCmd->SetParameterName("histFile", false);
|
||||
SaveHistFileCmd->SetDefaultValue("dmx.his");
|
||||
|
||||
PlotEventCmd = new G4UIcmdWithABool("/dmx/PlotDuringRun",this);
|
||||
PlotEventCmd->SetGuidance("Flag for Interactive plotting during run");
|
||||
PlotEventCmd->SetGuidance("Default = false");
|
||||
PlotEventCmd->SetParameterName("plotevent", false);
|
||||
PlotEventCmd->SetDefaultValue(false);
|
||||
|
||||
InteractPlotCmd = new G4UIcmdWithABool("/dmx/PlotAtEnd",this);
|
||||
InteractPlotCmd->SetGuidance("Flag for Interactive plotting at end of run");
|
||||
InteractPlotCmd->SetGuidance("Default = false");
|
||||
InteractPlotCmd->SetParameterName("interactplot", false);
|
||||
InteractPlotCmd->SetDefaultValue(false);
|
||||
|
||||
// FileCmd->AvailableForStates(Idle);
|
||||
// FileCmd->AvailableForStates(G4State_Idle);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -84,6 +90,7 @@ DMXRunActionMessenger::~DMXRunActionMessenger()
|
||||
delete SaveHitsCmd;
|
||||
delete SavePmtCmd;
|
||||
delete SaveHistFileCmd;
|
||||
delete PlotEventCmd;
|
||||
delete InteractPlotCmd;
|
||||
}
|
||||
|
||||
@@ -100,6 +107,14 @@ void DMXRunActionMessenger::SetNewValue(G4UIcommand * command,G4String newValue)
|
||||
if(command == SaveHistFileCmd)
|
||||
DMXRun->SetsavehistFile(newValue);
|
||||
|
||||
if(command == PlotEventCmd) {
|
||||
G4int vl;
|
||||
const char* t = newValue;
|
||||
G4std::istrstream is((char*)t);
|
||||
is >> vl;
|
||||
DMXRun->Setplotevent(vl!=0);
|
||||
}
|
||||
|
||||
if(command == InteractPlotCmd) {
|
||||
G4int vl;
|
||||
const char* t = newValue;
|
||||
|
||||
Reference in New Issue
Block a user