142 "\n--------------------End of Global Run-----------------------" <<
150 "\n--------------------End of Local Run------------------------" <<
156 G4cout <<
"============================================================="
158 G4cout <<
"============================================================="
161 std::ostream *myout = &
G4cout;
164 for (
G4int iz = 0; iz < 20; iz++){
165 G4double* SumCollisions = (*Collisions)[iz];
166 G4double* SumCollWeight = (*CollWeight)[iz];
167 G4double* Populations = (*Population)[iz];
168 G4double* TrackEnters = (*TrackEnter)[iz];
174 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
175 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
176 if ( !Populations ) Populations =
new G4double(0.0);
177 if ( !TrackEnters ) {
G4cout <<
" NO TRACKS - WHY? " <<
G4endl;
179 if ( !SLs ) SLs =
new G4double(0.0);
180 if ( !SLWs ) SLWs =
new G4double(0.0);
181 if ( !SLWEs ) SLWEs =
new G4double(0.0);
182 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
183 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
187 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
188 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
189 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
193 << std::setw(
fFieldValue) << (*TrackEnters) <<
" |"
194 << std::setw(
fFieldValue) << (*Populations) <<
" |"
195 << std::setw(
fFieldValue) << (*SumCollisions) <<
" |"
196 << std::setw(
fFieldValue) << (*SumCollWeight) <<
" |"
197 << std::setw(
fFieldValue) << NumWeightedEnergy <<
" |"
198 << std::setw(
fFieldValue) << FluxWeightedEnergy <<
" |"
199 << std::setw(
fFieldValue) << AverageTrackWeight <<
" |"
207 G4cout <<
"============================================="<<
G4endl;
215 std::vector<G4String> vecScoreName;
216 vecScoreName.push_back(
"Tr.Entering");
217 vecScoreName.push_back(
"Population");
218 vecScoreName.push_back(
"Collisions");
219 vecScoreName.push_back(
"Coll*WGT");
220 vecScoreName.push_back(
"NumWGTedE");
221 vecScoreName.push_back(
"FluxWGTedE");
222 vecScoreName.push_back(
"Av.Tr.WGT");
223 vecScoreName.push_back(
"SL");
224 vecScoreName.push_back(
"SLW");
225 vecScoreName.push_back(
"SLW_v");
226 vecScoreName.push_back(
"SLWE");
227 vecScoreName.push_back(
"SLWE_v");
233 *out << std::setw(
fFieldValue) <<
"Volume" <<
" |";
234 for (std::vector<G4String>::iterator
it = vecScoreName.begin();
235 it != vecScoreName.end();
it++) {
251 std::string
fname(
"");
252 G4int k = n - name.size();
256 fname += std::string(k,c);
259 fname = std::string(k,c);