51 :fAnalysisManager(analysisManager)
58 fluence_par->
SetGuidance(
"Omnidirectional fluence for primary spectrum");
80 fSetPowerLawSpectrumToNormaliseAdjResCmd =
81 new G4UIcommand(
"/RMC01/analysis/SetPowerLawPrimSpectrumForAdjointSim",
this);
82 fSetPowerLawSpectrumToNormaliseAdjResCmd
83 ->
SetGuidance(
"Set the primary spectrum to which adjoint simulation results will be normalised as a power law (Ekin^-alpha).");
84 fSetPowerLawSpectrumToNormaliseAdjResCmd->
SetParameter(part_name_par);
85 fSetPowerLawSpectrumToNormaliseAdjResCmd->
SetParameter(fluence_par);
86 fSetPowerLawSpectrumToNormaliseAdjResCmd->
SetParameter(fluence_unit_par);
87 fSetPowerLawSpectrumToNormaliseAdjResCmd->
SetParameter(alpha_par);
88 fSetPowerLawSpectrumToNormaliseAdjResCmd->
SetParameter(e1_par);
89 fSetPowerLawSpectrumToNormaliseAdjResCmd->
SetParameter(e2_par);
90 fSetPowerLawSpectrumToNormaliseAdjResCmd->
SetParameter(e_unit_par);
91 fSetPowerLawSpectrumToNormaliseAdjResCmd
95 fSetExpSpectrumToNormaliseAdjResCmd =
new G4UIcommand(
"/RMC01/analysis/SetExponentialSpectrumForAdjointSim",
this);
96 fSetExpSpectrumToNormaliseAdjResCmd
97 ->
SetGuidance(
"Set the primary spectrum to which adjoint simulation results will be normalised as exponential (exp(-Ekin/E0)).");
98 fSetExpSpectrumToNormaliseAdjResCmd
100 fSetExpSpectrumToNormaliseAdjResCmd
102 fSetExpSpectrumToNormaliseAdjResCmd
104 fSetExpSpectrumToNormaliseAdjResCmd
106 fSetExpSpectrumToNormaliseAdjResCmd
108 fSetExpSpectrumToNormaliseAdjResCmd
110 fSetExpSpectrumToNormaliseAdjResCmd
112 fSetExpSpectrumToNormaliseAdjResCmd
116 fSetPrecisionForConvergenceTestCmd =
new G4UIcmdWithADouble(
"/RMC01/analysis/SetExpectedPrecisionOfResults",
this);
117 fSetPrecisionForConvergenceTestCmd
118 ->
SetGuidance(
"Set the precision in % that the computed energy deposited in the sensitive volume should reached. If this precision is reached before the end of the run, the run is aborted and the results are registered.");
120 fSetPrecisionForConvergenceTestCmd
136 if( command == fSetPowerLawSpectrumToNormaliseAdjResCmd){
139 const char* nv = (
const char*)newValue;
140 std::istringstream is(nv);
141 is >> part_name>>fluence>>f_unit>>alpha>>e1>>e2>>e_unit;
144 if (f_unit ==
"1/m2" || f_unit ==
"m-2") factor_f_unit=1/
m2;
145 fluence*=factor_f_unit;
149 part_name, fluence, alpha, e1, e2);
151 else if( command == fSetExpSpectrumToNormaliseAdjResCmd){
154 const char* nv = (
const char*)newValue;
155 std::istringstream is(nv);
156 is >> part_name>>fluence>>f_unit>>e0>>e1>>e2>>e_unit;
159 if (f_unit ==
"1/m2" || f_unit ==
"m-2") factor_f_unit=1/
m2;
161 fluence*=factor_f_unit;
167 fluence, e0, e1, e2);
170 else if( command == fSetPrecisionForConvergenceTestCmd){