82 progress = (progress < 1) ? 1 : progress;
91 static double local_total_dose = 0;
92 double total_dose = 0;
106 if( DoseDeposit && DoseDeposit->
GetMap()->size() != 0 ) {
107 std::map<G4int,G4double*>::iterator itr =
108 DoseDeposit->
GetMap()->begin();
109 for(; itr != DoseDeposit->
GetMap()->end(); itr++) {
110 if(!
IsMaster()) { local_total_dose += *(itr->second); }
111 total_dose += *(itr->second);
119 G4cout <<
"--------------------End of Global Run-----------------------"
121 G4cout <<
" The run was " << nofEvents <<
" events " <<
G4endl;
122 G4cout <<
"LOCAL TOTAL DOSE : \t" << local_total_dose/
gray
124 G4cout <<
" TOTAL DOSE : \t" << total_dose/
gray
130 G4cout <<
"--------------------End of Local Run------------------------"
133 G4cout <<
"LOCAL TOTAL DOSE : \t" << local_total_dose/
gray
135 G4cout <<
" TOTAL DOSE : \t" << total_dose/
gray
156 G4cout <<
"============================================================="
158 G4cout <<
" Number of event processed : "
160 G4cout <<
"============================================================="
163 std::ofstream fileout;
166 G4cout <<
" opened file " << fname <<
" for dose output" <<
G4endl;
168 if( DoseDeposit && DoseDeposit->
GetMap()->size() != 0 ) {
169 std::ostream *myout = &
G4cout;
171 std::map<G4int,G4double*>::iterator itr =DoseDeposit->
GetMap()->begin();
172 for(; itr != DoseDeposit->
GetMap()->end(); itr++) {
173 fileout << itr->first
181 G4cout <<
"============================================="<<
G4endl;
184 "DoseDeposit HitsMap is either a null pointer of the HitsMap was empty");
187 G4cout <<
" closed file " << fname <<
" for dose output" <<
G4endl;
199 std::vector<G4String> vecScoreName;
200 vecScoreName.push_back(
"DoseDeposit");
205 *out << std::setw(10) <<
"Voxel" <<
" |";
206 for (std::vector<G4String>::iterator
it = vecScoreName.begin();
207 it != vecScoreName.end();
it++) {
222 std::string
fname(
"");
227 fname += std::string(k,c);
230 fname = std::string(k,c);