83 G4int nofEvents = run->GetNumberOfEvent();
84 if (nofEvents == 0)
return;
86 const B1Run* b1Run =
static_cast<const B1Run*
>(run);
90 G4double edep = b1Run->
GetEdep();
92 G4double rms = edep2 - edep*edep/nofEvents;
93 if (rms > 0.) rms = std::sqrt(rms);
else rms = 0.;
97 (G4RunManager::GetRunManager()->GetUserDetectorConstruction());
99 G4double dose = edep/mass;
100 G4double rmsDose = rms/mass;
107 (G4RunManager::GetRunManager()->GetUserPrimaryGeneratorAction());
112 runCondition += particleGun->GetParticleDefinition()->GetParticleName();
113 runCondition +=
" of ";
114 G4double particleEnergy = particleGun->GetParticleEnergy();
115 runCondition +=
G4BestUnit(particleEnergy,
"Energy");
122 <<
"\n--------------------End of Global Run-----------------------";
126 <<
"\n--------------------End of Local Run------------------------";
130 <<
"\n The run consists of " << nofEvents <<
" "<< runCondition
131 <<
"\n Dose in scoring volume : "
133 <<
"\n------------------------------------------------------------\n"