94     if (nofEvents == 0) 
return;
 
   98     static double local_total_dose = 0;
 
   99     double total_dose = 0;
 
  112         if( DoseDeposit && DoseDeposit->
GetMap()->size() != 0 ) {
 
  113             std::map<G4int,G4double*>::iterator itr = DoseDeposit->
GetMap()->begin();
 
  114             for(; itr != DoseDeposit->
GetMap()->end(); itr++) {
 
  115                 if(!
IsMaster()) { local_total_dose += *(itr->second); }
 
  116                 total_dose += *(itr->second);
 
  125         << 
"\n--------------------End of Global Run-----------------------" 
  126         << 
" \n The run was " << nofEvents << 
" events " << 
G4endl;
 
  127         G4cout << 
"LOCAL TOTAL DOSE : \t" << local_total_dose/
gray << 
" Gy" << std::endl;
 
  128         G4cout << 
"      TOTAL DOSE : \t" << total_dose/
gray << 
" Gy" << std::endl;
 
  134         << 
"\n--------------------End of Local Run------------------------" 
  135         << 
" \n The run was " << nofEvents << 
G4endl;
 
  136         G4cout << 
"LOCAL TOTAL DOSE : \t" << local_total_dose/
gray << 
" Gy" << std::endl;
 
  137         G4cout << 
"      TOTAL DOSE : \t" << total_dose/
gray << 
" Gy" << std::endl;
 
  156             G4cout << 
"=============================================================" <<
G4endl;
 
  158             G4cout << 
"=============================================================" <<
G4endl;
 
  160             std::ofstream fileout;
 
  163             G4cout << 
" opened file " << fname << 
" for dose output" << 
G4endl;
 
  166             if( DoseDeposit && DoseDeposit->
GetMap()->size() != 0 ) {
 
  167                 std::ostream *myout = &
G4cout;
 
  169                 std::map<G4int,G4double*>::iterator itr = DoseDeposit->
GetMap()->begin();
 
  170                 for(; itr != DoseDeposit->
GetMap()->end(); itr++) {
 
  171                     fileout <<  itr->first
 
  174                     G4cout << 
"    " << itr->first
 
  175                     << 
"     " << std::setprecision(6) << *(itr->second)/
CLHEP::gray << 
" Gy" 
  178                 G4cout << 
"============================================="<<
G4endl;
 
  181              "DoseDeposit HitsMap is either a null pointer of the HitsMap was empty");
 
  184             G4cout << 
" closed file " << fname << 
" for dose output" << 
G4endl;
 
  196   std::vector<G4String> vecScoreName;
 
  197   vecScoreName.push_back(
"DoseDeposit");
 
  202   *out << std::setw(10) << 
"Voxel" << 
" |";
 
  203   for (std::vector<G4String>::iterator it = vecScoreName.begin();
 
  204        it != vecScoreName.end(); it++) {
 
  219   std::string fname(
"");
 
  220   G4int k = n - name.size();
 
  224       fname += std::string(k,c);
 
  227       fname = std::string(k,c);
 
virtual void EndOfRunAction(const G4Run *)
 
void PrintHeader(std::ostream *out)
 
Definition of the DicomRunAction class. 
 
virtual G4Run * GenerateRun()
 
std::vector< G4String > fSDName
 
void SetRandomNumberStore(G4bool flag)
 
Definition of the DicomRun class. 
 
DicomRunAction()
Constructor. 
 
G4GLOB_DLL std::ostream G4cout
 
G4int GetNumberOfEvent() const 
 
virtual void BeginOfRunAction(const G4Run *)
 
static DicomRunAction * fgInstance
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
static G4RunManager * GetRunManager()
 
std::map< G4int, T * > * GetMap() const 
 
virtual ~DicomRunAction()
Destructor. 
 
static DicomRunAction * Instance()
 
G4THitsMap< G4double > * GetHitsMap(G4int i) const 
 
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)