42 fMydetDirectory(0),fGenCmd(0)
45 fMydetDirectory->SetGuidance(
"RE01 detector control commands.");
48 fGenCmd->SetGuidance(
"Select primary generator.");
49 fGenCmd->SetGuidance(
" Available generators : PYTHIA, particleGun");
50 fGenCmd->SetParameterName(
"generator",
true);
51 fGenCmd->SetDefaultValue(
"PYTHIA");
52 fGenCmd->SetCandidates(
"PYTHIA particleGun");
59 delete fMydetDirectory;
66 if( command==fGenCmd )
67 { fMyAction->SetHEPEvtGenerator(newValue==
"PYTHIA"); }
75 if( command==fGenCmd )
80 { cv =
"particleGun"; }
virtual void SetNewValue(G4UIcommand *command, G4String newValues)
G4bool GetHEPEvtGenerator()
Definition of the RE01PrimaryGeneratorAction class.
RE01PrimaryGeneratorMessenger(RE01PrimaryGeneratorAction *mpga)
Definition of the RE01PrimaryGeneratorMessenger class.
virtual G4String GetCurrentValue(G4UIcommand *command)
virtual ~RE01PrimaryGeneratorMessenger()