136 "\n--------------------End of Global Run-----------------------" <<
144 "\n--------------------End of Local Run------------------------" <<
150 G4cout <<
"============================================================="
152 G4cout <<
"============================================================="
155 std::ostream *myout = &
G4cout;
168 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
169 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
170 if ( !Populations ) Populations =
new G4double(0.0);
171 if ( !TrackEnters ) TrackEnters =
new G4double(0.0);
172 if ( !SLs ) SLs =
new G4double(0.0);
173 if ( !SLWs ) SLWs =
new G4double(0.0);
174 if ( !SLWEs ) SLWEs =
new G4double(0.0);
175 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
176 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
180 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
181 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
182 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
186 << std::setw(
fFieldValue) << (*TrackEnters) <<
" |"
187 << std::setw(
fFieldValue) << (*Populations) <<
" |"
188 << std::setw(
fFieldValue) << (*SumCollisions) <<
" |"
189 << std::setw(
fFieldValue) << (*SumCollWeight) <<
" |"
190 << std::setw(
fFieldValue) << NumWeightedEnergy <<
" |"
191 << std::setw(
fFieldValue) << FluxWeightedEnergy <<
" |"
192 << std::setw(
fFieldValue) << AverageTrackWeight <<
" |"
200 G4cout <<
"============================================="<<
G4endl;
208 std::vector<G4String> vecScoreName;
209 vecScoreName.push_back(
"Tr.Entering");
210 vecScoreName.push_back(
"Population");
211 vecScoreName.push_back(
"Collisions");
212 vecScoreName.push_back(
"Coll*WGT");
213 vecScoreName.push_back(
"NumWGTedE");
214 vecScoreName.push_back(
"FluxWGTedE");
215 vecScoreName.push_back(
"Av.Tr.WGT");
216 vecScoreName.push_back(
"SL");
217 vecScoreName.push_back(
"SLW");
218 vecScoreName.push_back(
"SLW_v");
219 vecScoreName.push_back(
"SLWE");
220 vecScoreName.push_back(
"SLWE_v");
226 *out << std::setw(
fFieldValue) <<
"Volume" <<
" |";
227 for (std::vector<G4String>::iterator it = vecScoreName.begin();
228 it != vecScoreName.end(); it++) {
244 std::string fname(
"");
245 G4int k = n - name.size();
249 fname += std::string(k,c);
252 fname = std::string(k,c);
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
Definition of the B01DetectorConstruction class.
void PrintHeader(std::ostream *out)
virtual void EndOfRunAction(const G4Run *)
Definition of the B01RunAction class.
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
virtual G4Run * GenerateRun()
G4String GetCellName(G4int i)
virtual void BeginOfRunAction(const G4Run *)
static G4RunManager * GetRunManager()
G4THitsMap< G4double > * GetHitsMap(G4int i)
std::vector< G4String > fSDName
static const G4double * SL[nLA]
Definition of the B01Run class.