37 #include "DetectorConstruction.hh"
38 #include "HistoManager.hh"
44 #include "PrimaryGeneratorAction.hh"
56 fParticle(0), fEkin(0.),
57 fCytoEdeposit(0.), fCytoEdeposit2(0.),
58 fNuclEdeposit(0.), fNuclEdeposit2(0.),
59 fTrackLen(0.), fTrackLen2(0.),
60 fProjRange(0.), fProjRange2(0.),
61 fNbOfSteps(0), fNbOfSteps2(0),
62 fStepSize(0.), fStepSize2(0.)
124 const Run* localRun =
static_cast<const Run*
>(run);
153 std::ios::fmtflags mode =
G4cout.flags();
154 G4cout.setf(std::ios::fixed,std::ios::floatfield);
161 G4cout <<
"\n ======================== run summary =====================\n";
163 <<
"\n The run is " <<
numberOfEvent <<
" "<< partName <<
" of "
167 G4cout.setf(mode,std::ios::floatfield);
176 if (rmsCyto>0.) rmsCyto = std::sqrt(rmsCyto);
else rmsCyto = 0.;
180 <<
"\n Total Energy deposited in cytoplasm = " <<
G4BestUnit(fCytoEdeposit,
"Energy")
189 <<
"\n S value for cytoplasm (C<-C) = " << sValueCyto/
gray <<
" Gy/Bq.s "
190 <<
" +- " << rmsSValueCyto/
gray
198 if (rmsNucl>0.) rmsNucl = std::sqrt(rmsNucl);
else rmsNucl = 0.;
202 <<
"\n Total Energy deposited in nucleus = " <<
G4BestUnit(fNuclEdeposit,
"Energy")
211 <<
"\n S value for nucleus (N<-C) = " << sValueNucl/
gray <<
" Gy/Bq.s "
212 <<
" +- " << rmsSValueNucl/
gray
220 if (rms>0.) rms = std::sqrt(rms);
else rms = 0.;
224 <<
"\n Track length of primary track = " <<
G4BestUnit(fTrackLen,
"Length")
231 if (rms>0.) rms = std::sqrt(rms);
else rms = 0.;
234 <<
"\n Projected range = " <<
G4BestUnit(fProjRange,
"Length")
243 rms = fNbSteps2 - fNbSteps*fNbSteps;
244 if (rms>0.) rms = std::sqrt(rms);
else rms = 0.;
247 G4cout <<
"\n Nb of steps of primary track = " << fNbSteps <<
" +- " << rms
252 if (rms>0.) rms = std::sqrt(rms);
else rms = 0.;
256 <<
"\n Step size = " <<
G4BestUnit(fStepSize,
"Length")
266 analysisManager->
ScaleH1(ih,fac);
269 G4cout.setf(mode,std::ios::floatfield);
274 myFile = fopen (
"s.txt",
"a");
275 fprintf (myFile,
"%e %e %e %e %e %e %e \n",