30#include "G4UIdirectory.hh"
31#include "G4UIcmdWithoutParameter.hh"
32#include "G4UIcmdWithAString.hh"
33#include "G4UIcmdWithAnInteger.hh"
44 dir-> SetGuidance(
"Reading HepMC event from an Ascii file");
48 verbose-> SetGuidance(
"Set verbose level");
49 verbose-> SetParameterName(
"verboseLevel",
false,
false);
50 verbose-> SetRange(
"verboseLevel>=0 && verboseLevel<=1");
53 open-> SetGuidance(
"(re)open data file (HepMC Ascii format)");
54 open-> SetParameterName(
"input ascii file",
true,
true);
71 int level=
verbose-> GetNewIntValue(newValues);
72 gen-> SetVerboseLevel(level);
73 }
else if (command==
open) {
74 gen-> SetFileName(newValues);
75 G4cout <<
"HepMC Ascii inputfile: "
76 <<
gen-> GetFileName() << G4endl;
88 cv=
verbose-> ConvertToString(
gen-> GetVerboseLevel());
89 }
else if (command ==
open) {
90 cv=
gen-> GetFileName();
Definition of the HepMCG4AsciiReaderMessenger class.
Definition of the HepMCG4AsciiReader class.
~HepMCG4AsciiReaderMessenger()
G4UIcmdWithAnInteger * verbose
G4UIcmdWithAString * open
void SetNewValue(G4UIcommand *command, G4String newValues)
HepMCG4AsciiReaderMessenger(HepMCG4AsciiReader *agen)
G4String GetCurrentValue(G4UIcommand *command)