31 fCrossSectionManager(crossSectionManager),
33 fMakeHistogramsCmd(0),
49 fDirectory =
new G4UIdirectory(
"/mcCrossSection/");
50 fDirectory->SetGuidance(
"Cross section manager commands.");
53 new G4UIcmdWithABool(
"/mcCrossSection/makeHistograms",
this);
55 "Activate creating histograms with cross sections");
58 G4State_PreInit, G4State_Init, G4State_Idle);
60 fParticleCmd =
new G4UIcmdWithAString(
"/mcCrossSection/setParticle",
this);
63 fParticleCmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
65 fElementCmd =
new G4UIcmdWithAString(
"/mcCrossSection/setElement",
this);
66 fElementCmd->SetGuidance(
"Set chemical element name");
67 fElementCmd->SetParameterName(
"particleName",
true);
68 fElementCmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
70 fNofBinsECmd =
new G4UIcmdWithAnInteger(
"/mcCrossSection/setNofBinsE",
this);
73 fNofBinsECmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
75 fNofBinsPCmd =
new G4UIcmdWithAnInteger(
"/mcCrossSection/setNofBinsP",
this);
78 fNofBinsPCmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
81 new G4UIcmdWithADoubleAndUnit(
"/mcCrossSection/setMinKinE",
this);
82 fMinKinECmd->SetGuidance(
"Set minimum kinetic energy");
84 fMinKinECmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
87 new G4UIcmdWithADoubleAndUnit(
"/mcCrossSection/setMaxKinE",
this);
88 fMaxKinECmd->SetGuidance(
"Set minimum kinetic energy");
90 fMaxKinECmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
92 fKinECmd =
new G4UIcmdWithADoubleAndUnit(
"/mcCrossSection/setKinE",
this);
93 fKinECmd->SetGuidance(
"Set current kinetic energy");
94 fKinECmd->SetParameterName(
"minKinE",
false);
95 fKinECmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
98 new G4UIcmdWithADoubleAndUnit(
"/mcCrossSection/setMinMomentum",
this);
102 G4State_PreInit, G4State_Init, G4State_Idle);
105 new G4UIcmdWithADoubleAndUnit(
"/mcCrossSection/setMaxMomentum",
this);
109 G4State_PreInit, G4State_Init, G4State_Idle);
112 new G4UIcmdWithADoubleAndUnit(
"/mcCrossSection/setMomentum",
this);
115 fMomentumCmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
117 fLabelCmd =
new G4UIcmdWithAString(
"/mcCrossSection/setLabel",
this);
119 "Set label which will be put at the beginning of histograms title");
120 fLabelCmd->SetParameterName(
"Label",
true);
121 fLabelCmd->AvailableForStates(G4State_PreInit, G4State_Init, G4State_Idle);
123 fPrintCmd =
new G4UIcmdWithAString(
"/mcCrossSection/printCrossSection",
this);
125 "Print selected cross section for current kinetic energy");
126 fPrintCmd->SetParameterName(
"crossSectionType",
false);
127 G4String candidates(
"All ");
130 candidates += G4String(
" ");
133 fPrintCmd->AvailableForStates(G4State_Idle);