40 exGPSAnalysisMessenger::exGPSAnalysisMessenger(exGPSAnalysisManager* analysisManager)
41 :fExGPSAnalysis(analysisManager)
45 fExGPSAnalysisDir->SetGuidance(
"exGPS analysis control.");
48 fFileNameCmd->SetGuidance(
"Input the name for the AIDA output file.");
49 fFileNameCmd->SetParameterName(
"filename",
true,
true);
50 fFileNameCmd->SetDefaultValue(
"exgps.aida");
53 fFileTypeCmd->SetGuidance(
"Input the type (xml/hbook/root) for the AIDA output file.");
54 fFileTypeCmd->SetParameterName(
"filetype",
true,
true);
55 fFileTypeCmd->SetDefaultValue(
"xml");
58 fMaxEngCmd->SetGuidance(
"Sets the maximum energy of histo");
59 fMaxEngCmd->SetParameterName(
"maxeng",
true,
true);
60 fMaxEngCmd->SetDefaultUnit(
"keV");
61 fMaxEngCmd->SetUnitCandidates(
"eV keV MeV GeV TeV PeV");
64 fMinEngCmd->SetGuidance(
"Sets the minimum energy of histo");
65 fMinEngCmd->SetParameterName(
"mineng",
true,
true);
66 fMinEngCmd->SetDefaultUnit(
"keV");
67 fMinEngCmd->SetUnitCandidates(
"eV keV MeV GeV TeV PeV");
70 fMaxPosCmd->SetGuidance(
"Set max length of source position");
71 fMaxPosCmd->SetParameterName(
"maxpos",
true,
true);
72 fMaxPosCmd->SetDefaultUnit(
"cm");
73 fMaxPosCmd->SetUnitCandidates(
"micron mm cm m km");
76 fMinPosCmd->SetGuidance(
"Set min length of source position");
77 fMinPosCmd->SetParameterName(
"minpos",
true,
true);
78 fMinPosCmd->SetDefaultUnit(
"cm");
79 fMinPosCmd->SetUnitCandidates(
"micron mm cm m km");
85 exGPSAnalysisMessenger::~exGPSAnalysisMessenger()
97 void exGPSAnalysisMessenger::SetNewValue(
G4UIcommand* command,
103 if( command == fFileNameCmd )
105 fExGPSAnalysis->SetFileName(newValue);
107 else if ( command == fFileTypeCmd )
109 fExGPSAnalysis->SetFileType(newValue);
111 else if( command == fMaxPosCmd)
113 fExGPSAnalysis->SetPosMax(fMaxPosCmd->GetNewDoubleValue(newValue));
115 else if( command == fMinPosCmd)
117 fExGPSAnalysis->SetPosMin(fMinPosCmd->GetNewDoubleValue(newValue));
119 else if( command == fMaxEngCmd)
121 fExGPSAnalysis->SetEngMax(fMaxEngCmd->GetNewDoubleValue(newValue));
123 else if( command == fMinEngCmd)
125 fExGPSAnalysis->SetEngMin(fMinEngCmd->GetNewDoubleValue(newValue));
132 #endif // G4ANALYSIS_USE