135 "\n--------------------End of Global Run-----------------------" <<
143 "\n--------------------End of Local Run------------------------" <<
149 G4cout <<
"============================================================="
151 G4cout <<
"============================================================="
154 std::ostream *myout = &
G4cout;
157 for (
G4int iz = 0; iz < 20; iz++){
158 G4double* SumCollisions = (*Collisions)[iz];
159 G4double* SumCollWeight = (*CollWeight)[iz];
160 G4double* Populations = (*Population)[iz];
161 G4double* TrackEnters = (*TrackEnter)[iz];
167 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
168 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
169 if ( !Populations ) Populations =
new G4double(0.0);
170 if ( !TrackEnters ) TrackEnters =
new G4double(0.0);
171 if ( !SLs ) SLs =
new G4double(0.0);
172 if ( !SLWs ) SLWs =
new G4double(0.0);
173 if ( !SLWEs ) SLWEs =
new G4double(0.0);
174 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
175 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
179 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
180 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
181 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
185 << std::setw(
fFieldValue) << (*TrackEnters) <<
" |"
186 << std::setw(
fFieldValue) << (*Populations) <<
" |"
187 << std::setw(
fFieldValue) << (*SumCollisions) <<
" |"
188 << std::setw(
fFieldValue) << (*SumCollWeight) <<
" |"
189 << std::setw(
fFieldValue) << NumWeightedEnergy <<
" |"
190 << std::setw(
fFieldValue) << FluxWeightedEnergy <<
" |"
191 << std::setw(
fFieldValue) << AverageTrackWeight <<
" |"
199 G4cout <<
"============================================="<<
G4endl;
207 std::vector<G4String> vecScoreName;
208 vecScoreName.push_back(
"Tr.Entering");
209 vecScoreName.push_back(
"Population");
210 vecScoreName.push_back(
"Collisions");
211 vecScoreName.push_back(
"Coll*WGT");
212 vecScoreName.push_back(
"NumWGTedE");
213 vecScoreName.push_back(
"FluxWGTedE");
214 vecScoreName.push_back(
"Av.Tr.WGT");
215 vecScoreName.push_back(
"SL");
216 vecScoreName.push_back(
"SLW");
217 vecScoreName.push_back(
"SLW_v");
218 vecScoreName.push_back(
"SLWE");
219 vecScoreName.push_back(
"SLWE_v");
225 *out << std::setw(
fFieldValue) <<
"Volume" <<
" |";
226 for (std::vector<G4String>::iterator it = vecScoreName.begin();
227 it != vecScoreName.end(); it++) {
243 std::string fname(
"");
244 G4int k = n - name.size();
248 fname += std::string(k,c);
251 fname = std::string(k,c);
static G4RunManager * GetRunManager()
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)
virtual void EndOfRunAction(const G4Run *)
std::vector< G4String > fSDName
G4int GetNumberOfEvent() const
Definition of the B01Run class.
static const G4double * SL[nLA]
virtual G4Run * GenerateRun()
void PrintHeader(std::ostream *out)
virtual void BeginOfRunAction(const G4Run *)
G4GLOB_DLL std::ostream G4cout
Definition of the B01DetectorConstruction class.
G4THitsMap< G4double > * GetHitsMap(G4int i)
Definition of the B01RunAction class.
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4String GetCellName(G4int i)