143 "\n--------------------End of Global Run-----------------------" <<
151 "\n--------------------End of Local Run------------------------" <<
157 G4cout <<
"============================================================="
159 G4cout <<
"============================================================="
162 std::ostream *myout = &
G4cout;
165 for (
G4int iz = 0; iz < 20; iz++){
166 G4double* SumCollisions = (*Collisions)[iz];
167 G4double* SumCollWeight = (*CollWeight)[iz];
168 G4double* Populations = (*Population)[iz];
169 G4double* TrackEnters = (*TrackEnter)[iz];
175 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
176 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
177 if ( !Populations ) Populations =
new G4double(0.0);
178 if ( !TrackEnters ) {
G4cout <<
" NO TRACKS - WHY? " <<
G4endl;
180 if ( !SLs ) SLs =
new G4double(0.0);
181 if ( !SLWs ) SLWs =
new G4double(0.0);
182 if ( !SLWEs ) SLWEs =
new G4double(0.0);
183 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
184 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
188 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
189 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
190 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
194 << std::setw(
fFieldValue) << (*TrackEnters) <<
" |"
195 << std::setw(
fFieldValue) << (*Populations) <<
" |"
196 << std::setw(
fFieldValue) << (*SumCollisions) <<
" |"
197 << std::setw(
fFieldValue) << (*SumCollWeight) <<
" |"
198 << std::setw(
fFieldValue) << NumWeightedEnergy <<
" |"
199 << std::setw(
fFieldValue) << FluxWeightedEnergy <<
" |"
200 << std::setw(
fFieldValue) << AverageTrackWeight <<
" |"
208 G4cout <<
"============================================="<<
G4endl;
216 std::vector<G4String> vecScoreName;
217 vecScoreName.push_back(
"Tr.Entering");
218 vecScoreName.push_back(
"Population");
219 vecScoreName.push_back(
"Collisions");
220 vecScoreName.push_back(
"Coll*WGT");
221 vecScoreName.push_back(
"NumWGTedE");
222 vecScoreName.push_back(
"FluxWGTedE");
223 vecScoreName.push_back(
"Av.Tr.WGT");
224 vecScoreName.push_back(
"SL");
225 vecScoreName.push_back(
"SLW");
226 vecScoreName.push_back(
"SLW_v");
227 vecScoreName.push_back(
"SLWE");
228 vecScoreName.push_back(
"SLWE_v");
234 *out << std::setw(
fFieldValue) <<
"Volume" <<
" |";
235 for (std::vector<G4String>::iterator it = vecScoreName.begin();
236 it != vecScoreName.end(); it++) {
252 std::string fname(
"");
253 G4int k = n - name.size();
257 fname += std::string(k,c);
260 fname = std::string(k,c);
virtual void EndOfRunAction(const G4Run *)
static G4RunManager * GetRunManager()
std::vector< G4String > fSDName
G4THitsMap< G4double > * GetHitsMap(G4int i)
virtual G4Run * GenerateRun()
G4int GetNumberOfEvent() const
Definition of the B03Run class.
Definition of the B03RunAction class.
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)
G4String GetCellName(G4int i)
Definition of the B03ImportanceDetectorConstruction class.
static const G4double * SL[nLA]
G4GLOB_DLL std::ostream G4cout
void PrintHeader(std::ostream *out)
virtual void BeginOfRunAction(const G4Run *)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const