138 "\n--------------------End of Global Run-----------------------" <<
146 "\n--------------------End of Local Run------------------------" <<
152 G4cout <<
"============================================================="
154 G4cout <<
"============================================================="
157 std::ostream *myout = &
G4cout;
170 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
171 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
172 if ( !Populations ) Populations =
new G4double(0.0);
173 if ( !TrackEnters ) TrackEnters =
new G4double(0.0);
174 if ( !SLs ) SLs =
new G4double(0.0);
175 if ( !SLWs ) SLWs =
new G4double(0.0);
176 if ( !SLWEs ) SLWEs =
new G4double(0.0);
177 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
178 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
182 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
183 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
184 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
188 << std::setw(
fFieldValue) << (*TrackEnters) <<
" |"
189 << std::setw(
fFieldValue) << (*Populations) <<
" |"
190 << std::setw(
fFieldValue) << (*SumCollisions) <<
" |"
191 << std::setw(
fFieldValue) << (*SumCollWeight) <<
" |"
192 << std::setw(
fFieldValue) << NumWeightedEnergy <<
" |"
193 << std::setw(
fFieldValue) << FluxWeightedEnergy <<
" |"
194 << std::setw(
fFieldValue) << AverageTrackWeight <<
" |"
202 G4cout <<
"============================================="<<
G4endl;
210 std::vector<G4String> vecScoreName;
211 vecScoreName.push_back(
"Tr.Entering");
212 vecScoreName.push_back(
"Population");
213 vecScoreName.push_back(
"Collisions");
214 vecScoreName.push_back(
"Coll*WGT");
215 vecScoreName.push_back(
"NumWGTedE");
216 vecScoreName.push_back(
"FluxWGTedE");
217 vecScoreName.push_back(
"Av.Tr.WGT");
218 vecScoreName.push_back(
"SL");
219 vecScoreName.push_back(
"SLW");
220 vecScoreName.push_back(
"SLW_v");
221 vecScoreName.push_back(
"SLWE");
222 vecScoreName.push_back(
"SLWE_v");
228 *out << std::setw(
fFieldValue) <<
"Volume" <<
" |";
229 for (std::vector<G4String>::iterator it = vecScoreName.begin();
230 it != vecScoreName.end(); it++) {
246 std::string fname(
"");
247 G4int k = n - name.size();
251 fname += std::string(k,c);
254 fname = std::string(k,c);
void PrintHeader(std::ostream *out)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4THitsMap< G4double > * GetHitsMap(G4int i)
G4String GetCellName(G4int i)
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.