30 #include "DetectorConstruction.hh"
31 #include "PrimaryGeneratorAction.hh"
42 fParticle(0), fEkin(0.),
71 const Run* localRun =
static_cast<const Run*
>(run);
88 std::ios::fmtflags mode =
G4cout.flags();
89 G4cout.setf(std::ios::fixed,std::ios::floatfield);
98 G4cout <<
"\n ======================== run summary =====================\n";
100 <<
"\n The run is " <<
numberOfEvent <<
" "<< partName <<
" of "
103 << material->
GetName() <<
" (density: "
107 G4cout.setf(mode,std::ios::floatfield);
117 if (rms>0.) rms = std::sqrt(rms);
else rms = 0.;
120 <<
"\n total Stopping Power (keV/um) = "<< fSP/(
keV/
um)
121 <<
" +- " << rms/(
keV/
um)
127 myFile=fopen(
"spower.txt",
"a");
128 fprintf(myFile,
"%e %e %e \n",
136 G4cout.setf(mode,std::ios::floatfield);