47 #include "HistoManager.hh"
87 fParticleName =
"proton";
90 fMinKinEnergy = 0.1*
MeV;
91 fMaxKinEnergy = 10*
TeV;
93 fMaxMomentum = 10*
TeV;
100 fIsInitialised =
false;
132 fHisto->
Add1D(
"h1",
"Elastic cross section (barn,1.0) as a functions of log10(p/GeV)",
134 fHisto->
Add1D(
"h2",
"Elastic cross section (barn) as a functions of log10(E/MeV)",
136 fHisto->
Add1D(
"h3",
"Inelastic cross section (barn) as a functions of log10(p/GeV)",
138 fHisto->
Add1D(
"h4",
"Inelastic cross section (barn) as a functions of log10(E/MeV)",
140 fHisto->
Add1D(
"h5",
"Capture cross section (barn) as a functions of log10(E/MeV)",
142 fHisto->
Add1D(
"h6",
"Fission cross section (barn) as a functions of log10(E/MeV)",
144 fHisto->
Add1D(
"h7",
"Charge exchange cross section (barn) as a functions of log10(E/MeV)",
146 fHisto->
Add1D(
"h8",
"Total cross section (barn) as a functions of log10(E/MeV)",
150 fIsInitialised =
true;
159 G4cout <<
"HistoManager: End of run actions are started" <<
G4endl;
169 G4cout <<
"### Fill Cross Sections for " << fParticleName
170 <<
" off " << fElementName
173 G4cout <<
"------------------------------------------------------------------------"
175 G4cout <<
" N E(MeV) Elastic(b) Inelastic(b)";
176 if(particle == fNeutron) {
G4cout <<
" Capture(b) Fission(b)"; }
178 G4cout <<
"------------------------------------------------------------------------"
181 if(!particle || !elm) {
182 G4cout <<
"HistoManager WARNING Particle or element undefined" <<
G4endl;
204 for(i=0; i<fBinsE; i++) {
206 e = std::pow(10.,x)*
MeV;
207 if(fVerbose>0)
G4cout << std::setw(5) << i << std::setw(12) <<
e;
210 if(fVerbose>0)
G4cout << std::setw(12) << xs/
barn;
214 if(fVerbose>0)
G4cout <<
" " << std::setw(12) << xs/
barn;
216 if(particle == fNeutron) {
219 if(fVerbose>0)
G4cout <<
" " << std::setw(12) << xs/
barn;
223 if(fVerbose>0)
G4cout <<
" " << std::setw(12) << xs/
barn;
233 for(i=0; i<fBinsP; i++) {
235 p = std::pow(10.,x)*
GeV;
236 e = std::sqrt(p*p + mass*mass) - mass;
243 G4cout <<
"-----------------------------------------------------------------"