47 XrayFluoAnalysisMessenger::XrayFluoAnalysisMessenger(XrayFluoAnalysisManager* analysisManager)
48 :xrayFluoAnalysis(analysisManager)
52 XrayFluoAnalysisDir->SetGuidance(
"analysis control.");
55 outputFileCommand->SetGuidance(
"specify the name of the output file (lowercase if paw will be used)");
56 outputFileCommand->SetGuidance(
"command /analysis/update MUST be used after this command");
57 outputFileCommand->SetParameterName(
"choice",
true);
58 outputFileCommand->SetDefaultValue(
"xrayfluo.hbk");
62 outputFileType->SetGuidance(
"specify the type of the output file");
63 outputFileType->SetGuidance(
"command /analysis/update MUST be used after this command");
64 outputFileType->SetParameterName(
"choice",
true);
65 outputFileType->SetDefaultValue(
"hbook");
66 outputFileType->SetCandidates(
"hbook xml");
70 outputFileCommand->SetGuidance(
"Update persistency file");
71 outputFileCommand->SetGuidance(
"This command MUST be used after outputFile or outputFileType commands");
75 physicFlagCmd->SetGuidance(
"Select if data stored in the Pahse-Space must contain physical data or particles exiting the sample");
76 physicFlagCmd->SetGuidance(
"To be used before and togheter with /gun/loadGunData");
77 physicFlagCmd->SetParameterName(
"Physyc Flag",
true);
78 physicFlagCmd->SetDefaultValue(
false);
84 XrayFluoAnalysisMessenger::~XrayFluoAnalysisMessenger()
87 delete XrayFluoAnalysisDir;
96 if(command == outputFileCommand)
98 if ((xrayFluoAnalysis->GetDeletePersistencyFileFlag()))
remove(
"xrayfluo.hbk");
99 xrayFluoAnalysis->SetOutputFileName(newValue);
102 else if (command == persistencyUpdateCommand)
103 {xrayFluoAnalysis->CreatePersistency();}
105 else if(command == outputFileType)
107 if (xrayFluoAnalysis->GetDeletePersistencyFileFlag())
remove(
"xrayfluo.hbk");
108 xrayFluoAnalysis->SetOutputFileType(newValue);
110 if( command == physicFlagCmd )
112 G4bool newPhysFlag = physicFlagCmd->GetNewBoolValue(newValue);
113 xrayFluoAnalysis->SetPhysicFlag(newPhysFlag);