137 "\n--------------------End of Global Run-----------------------" <<
145 "\n--------------------End of Local Run------------------------" <<
151 G4cout <<
"============================================================="
153 G4cout <<
"============================================================="
156 std::ostream *myout = &
G4cout;
159 for (
G4int iz = 0; iz < 20; iz++){
160 G4double* SumCollisions = (*Collisions)[iz];
161 G4double* SumCollWeight = (*CollWeight)[iz];
162 G4double* Populations = (*Population)[iz];
163 G4double* TrackEnters = (*TrackEnter)[iz];
169 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
170 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
171 if ( !Populations ) Populations =
new G4double(0.0);
172 if ( !TrackEnters ) TrackEnters =
new G4double(0.0);
173 if ( !SLs ) SLs =
new G4double(0.0);
174 if ( !SLWs ) SLWs =
new G4double(0.0);
175 if ( !SLWEs ) SLWEs =
new G4double(0.0);
176 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
177 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
181 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
182 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
183 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
187 << std::setw(
fFieldValue) << (*TrackEnters) <<
" |"
188 << std::setw(
fFieldValue) << (*Populations) <<
" |"
189 << std::setw(
fFieldValue) << (*SumCollisions) <<
" |"
190 << std::setw(
fFieldValue) << (*SumCollWeight) <<
" |"
191 << std::setw(
fFieldValue) << NumWeightedEnergy <<
" |"
192 << std::setw(
fFieldValue) << FluxWeightedEnergy <<
" |"
193 << std::setw(
fFieldValue) << AverageTrackWeight <<
" |"
201 G4cout <<
"============================================="<<
G4endl;
209 std::vector<G4String> vecScoreName;
210 vecScoreName.push_back(
"Tr.Entering");
211 vecScoreName.push_back(
"Population");
212 vecScoreName.push_back(
"Collisions");
213 vecScoreName.push_back(
"Coll*WGT");
214 vecScoreName.push_back(
"NumWGTedE");
215 vecScoreName.push_back(
"FluxWGTedE");
216 vecScoreName.push_back(
"Av.Tr.WGT");
217 vecScoreName.push_back(
"SL");
218 vecScoreName.push_back(
"SLW");
219 vecScoreName.push_back(
"SLW_v");
220 vecScoreName.push_back(
"SLWE");
221 vecScoreName.push_back(
"SLWE_v");
227 *out << std::setw(
fFieldValue) <<
"Volume" <<
" |";
228 for (std::vector<G4String>::iterator it = vecScoreName.begin();
229 it != vecScoreName.end(); it++) {
245 std::string fname(
"");
246 G4int k = n - name.size();
250 fname += std::string(k,c);
253 fname = std::string(k,c);
void PrintHeader(std::ostream *out)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4THitsMap< G4double > * GetHitsMap(G4int i)
G4String GetCellName(G4int i)
const char * name(G4int ptype)
Definition of the B02DetectorConstruction class.
std::vector< G4String > fSDName
Definition of the B02RunAction class.
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
virtual G4Run * GenerateRun()
virtual void BeginOfRunAction(const G4Run *)
static G4RunManager * GetRunManager()
virtual void EndOfRunAction(const G4Run *)
static const G4double * SL[nLA]
Definition of the B02Run class.
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)
Definition of the B02ImportanceDetectorConstruction class.