46 fSDName.push_back(
G4String(
"phantomSD"));
78 for (
G4int i = 0; i < (
G4int)fSDName.size(); i++ ){
87 G4cout <<
"=============================================================" <<
G4endl;
89 G4cout <<
"=============================================================" <<
G4endl;
91 std::ofstream fileout;
94 G4cout <<
" opened file " << fname <<
" for dose output" <<
G4endl;
97 if( DoseDeposit && DoseDeposit->
GetMap()->size() != 0 ) {
98 std::ostream *myout = &
G4cout;
100 std::map<G4int,G4double*>::iterator itr = DoseDeposit->
GetMap()->begin();
101 for(; itr != DoseDeposit->
GetMap()->end(); itr++) {
102 fileout << itr->first
103 <<
" " << *(itr->second)
105 G4cout <<
" " << itr->first
106 <<
" " << std::setprecision(6) << *(itr->second) <<
" Gy"
109 G4cout <<
"============================================="<<
G4endl;
112 G4cout <<
" closed file " << fname <<
" for dose output" <<
G4endl;
120 std::vector<G4String> vecScoreName;
121 vecScoreName.push_back(
"DoseDeposit");
127 *out << std::setw(10) <<
"Voxel" <<
" |";
128 for (std::vector<G4String>::iterator it = vecScoreName.begin();
129 it != vecScoreName.end(); it++) {
135 *out << std::setw(fFieldValue) << (*it) <<
" |";
144 std::string
fname(
"");
145 G4int k = n - name.size();
149 fname += std::string(k,c);
152 fname = std::string(k,c);